/* =========================================================
   Altrenotti - Made-in-Italy Manufacturing (BI Skin)
   Path: /html/theme/basic/skin/content/bi/style.css

   최종 반영 사항:
   - HERO: 강한 그라데이션(확실히 보이게) + 텍스트 가로/세로 중앙정렬
   - Videos 섹션: 배경 제거
   - Videos: 상단 마진 기본 100px, 첫 줄만 20px (반응형 고려)
   - Thumbs: 라운드 제거, 320x569 고정(모바일은 비율 유지)
   - WATCH THE VIDEO: 이탈리아 사이트처럼 썸네일 하단 베이지 바(버튼)
   - 모바일: 썸네일/버튼 중앙정렬
========================================================= */

/* Base */
.amfg { background:#fff; }
.amfg-wrap { max-width:1200px; margin:0 auto; padding:0 24px; }
@media (max-width:768px){ .amfg-wrap{ padding:0 16px; } }

/* Sections */
.amfg-sec{ padding:70px 0; }
@media (max-width:768px){ .amfg-sec{ padding:56px 0; } }

/* 1) videos 섹션 배경 삭제 */
.amfg-sec--alt{ background:transparent !important; }

/* =========================
   HERO
========================= */
.amfg-hero{
  position:relative;
  min-height:600px;                 /* 필요시 조정 */
  background-size:cover;
  background-position:center;
  background-repeat:no-repeat;

  /* 2) 텍스트 가로/세로 중앙정렬 */
  display:flex;
  align-items:center;
  justify-content:center;

  overflow:hidden;
  isolation:isolate;
  border-bottom:1px solid rgba(17,17,17,.10);
}
@media (max-width:768px){
  .amfg-hero{ min-height:600px; }
}

/* 1) 그라데이션이 확실히 보이게 */
.amfg-hero__overlay{
  position:absolute;
  inset:0;
  z-index:0;
  pointer-events:none;
  background:
    radial-gradient(1200px 520px at 50% 35%, rgba(0,0,0,.25), rgba(0,0,0,0) 55%),
    linear-gradient(180deg, rgba(0,0,0,.60) 0%, rgba(0,0,0,.42) 20%, rgba(0,0,0,.70) 100%);
}

.amfg-hero__content{
  position:relative;
  z-index:1;
  text-align:center;
  max-width:900px;
}

/* =========================
   Typography (요청 스펙)
========================= */
.amfg-title{
  font-family:'Noto Serif Display',serif;
  font-size:32px;
  color:#c9bca0;
  margin:0 0 14px;
  line-height:1.35;
  font-weight:500;
  letter-spacing:-0.01em;
}

.amfg-desc{
  font-family:'Noto Sans KR',sans-serif;
  font-size:16px;
  color:#666666;
  line-height:1.85;
  margin:0;
}

/* HERO에서 설명 가독성 확보 */
.amfg-title--hero{ margin-bottom:16px; }
.amfg-desc--hero{
  max-width:860px;
  margin:0 auto;
  color:rgba(255,255,255,.88);
}

/* =========================
   VIDEOS GRID
   - 3열에서 320px 카드 고정
========================= */
.amfg-videoGrid{
  display:grid;
  grid-template-columns: repeat(3, 320px);
  gap:28px 20px;
  justify-content:center;
}

@media (max-width:1024px){
  .amfg-videoGrid{ grid-template-columns: repeat(2, 320px); }
}
@media (max-width:720px){
  .amfg-videoGrid{ grid-template-columns: 1fr; }
}

/* 2) 비디오 상단 마진 100px, 3) 첫째줄은 20px */
.amfg-videoItem{ margin-top:100px; }
.amfg-videoItem:nth-child(-n+3){ margin-top:20px; } /* 3열 첫줄 */

@media (max-width:1024px){
  .amfg-videoItem:nth-child(-n+3){ margin-top:100px; } /* 초기화 */
  .amfg-videoItem:nth-child(-n+2){ margin-top:20px; }  /* 2열 첫줄 */
}
@media (max-width:720px){
  .amfg-videoItem{ margin-top:20px; } /* 모바일 1열은 자연스럽게 */
}

/* =========================
   THUMB (320x569, 라운드 제거)
========================= */
.amfg-thumb{
  display:block;
  width:320px;
  height:569px;

  margin-top:0;
  margin-bottom:0;                 /* 버튼이 바로 붙게 */
  overflow:hidden;

  border:none;
  border-radius:0;                 /* 라운드 제거 */
  background:#f3f3f3;
}

@media (max-width:720px){
  .amfg-thumb{
    width:100%;
    height:auto;
    aspect-ratio: 320 / 569;
    margin-left:auto;
    margin-right:auto;
  }
}

.amfg-thumb img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}

/* =========================
   WATCH THE VIDEO (Italy style bar)
   - 썸네일 하단 베이지 바
========================= */
.amfg-watch{
  display:flex;
  align-items:center;
  justify-content:center;

  width:320px;                      /* 데스크탑에서는 썸네일 폭과 동일 */
  height:56px;

  margin-top:0;
  background:#d6cbb0;
  color:#000;

  font-family:'Noto Serif Display', serif;
  font-size:13px;
  letter-spacing:.18em;
  text-transform:uppercase;

  text-decoration:none;
  border:none;
  border-radius:0;

  transition: background .15s ease, opacity .15s ease;
}

.amfg-watch:hover{
  background:#cbbf9f;
  opacity:1;
}

@media (max-width:720px){
  .amfg-watch{
    width:100%;
    margin-left:auto;
    margin-right:auto;
  }
}

/* Video title */
.amfg-videoTitle{
  margin:18px 0 10px;
  font-family:'Noto Serif Display',serif;
  font-size:22px;
  line-height:1.25;
  font-weight:500;
  color:#c9bca0;
}

/* Video description */
.amfg-desc--video{ margin-top:0; }

/* 5) 모바일 중앙정렬 */
@media (max-width:720px){
  .amfg-videoItem{ text-align:center; }
  
}

@media (min-width:1025px){
  .amfg-videoGrid{
    gap:60px 40px;   /* 기존: 28px 20px → 여유 있게 확장 */
  }
}
@media (max-width:720px){
  .amfg-videoItem{
    margin-top:50px;   /* 기존 20px → 50px */
  }
}

/* * 1) WATCH THE VIDEO 텍스트 폰트 변경 */ */
.amfg-watch{
  font-family:'Noto Sans KR', sans-serif;  /* 변경 */
  font-weight:500;                          /* 가독성 보정 */
  letter-spacing:.18em;                     /* 기존 톤 유지 */
}

/* 2) Intro title 폭을 amfg-wrap과 동일하게 */
#amfg-journey .amfg-title{
  max-width:1200px;                         /* amfg-wrap과 동일 */
  margin-left:auto;
  margin-right:auto;
}
@media (max-width:768px){
  #amfg-journey .amfg-title{
    padding-left:16px;                      /* 모바일에서 wrap 패딩과 일치 */
    padding-right:16px;
  }
}
/* 2) Intro 영역을 Video 썸네일 시작선과 동일하게 정렬 */
#amfg-journey .amfg-wrap{
  max-width: calc(320px * 3 + 40px * 2); /* 비디오 3열 폭과 동일 */
  margin-left: auto;
  margin-right: auto;
}

/* 모바일에서는 다시 일반 wrap 기준으로 */
@media (max-width:1024px){
  #amfg-journey .amfg-wrap{
    max-width: 100%;
    padding-left: 24px;
    padding-right: 24px;
  }
}
@media (max-width:768px){
  #amfg-journey .amfg-wrap{
    padding-left: 16px;
    padding-right: 16px;
  }
}

/* 비디오 섹션 상단 여백 보정 */
#amfg-journey + .amfg-sec{
  padding-top:0;         /* 중복 패딩 제거 */
}

/* 2) amfg-wrap 하단 마진을 100px로 */
.amfg-wrap{
  margin-bottom:100px;
}

/* 모바일에서는 과하지 않게 조정 */
@media (max-width:768px){
  .amfg-wrap{
    margin-bottom:70px;
  }
}

/* WATCH THE VIDEO 텍스트를 Noto Sans KR로 강제 */
a.amfg-watch{
  font-family:'Noto Sans KR', sans-serif !important;
  font-weight:500;        /* 이탈리아 사이트와 유사한 두께 */
  letter-spacing:.18em;   /* 기존 자간 유지 */
}



/* 1) 인트로 섹션 하단 여백 줄이기 */
#amfg-journey{
  padding-bottom:0px;   /* 기존 70px → 40px */
}

/* 2) 인트로 다음에 오는 비디오 섹션 상단 패딩 제거 */
#amfg-journey + .amfg-sec{
  padding-top:0;
}

/* 3) 첫 번째 줄 비디오 카드 상단 마진 추가로 줄이기 */
.amfg-videoItem:nth-child(-n+3){
  margin-top:10px;       /* 기존 20px → 10px */
}

/* 태블릿(2열) 대응 */
@media (max-width:1024px){
  .amfg-videoItem:nth-child(-n+2){
    margin-top:10px;
  }
}

/* 모바일에서는 자연스럽게 */
@media (max-width:720px){
  .amfg-videoItem{
    margin-top:30px;
  }
}

@media (max-width:720px){
  .amfg-desc--video{
    margin-bottom:50px;   /* 하단 여백 +50px */
  }
}