/* ===========================================================
   Osteria da Nando — Aosta, dal 1957
   Palette derivata dai colori reali della sala (arco in pietra
   color terracotta, legno scuro, tovaglie color crema).
   =========================================================== */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,300;0,9..144,400;0,9..144,500;0,9..144,600;1,9..144,400;1,9..144,500&family=Archivo:wght@400;500;600;700&display=swap');

:root{
  --clay:        #a35a3c;
  --clay-dark:   #7a4029;
  --clay-deep:   #4f2818;
  --cream:       #f6ede1;
  --cream-2:     #efe0cc;
  --paper:       #fbf6ee;
  --charcoal:    #241a15;
  --wood:        #3d2b22;
  --gold:        #c9974f;
  --line:        rgba(36, 26, 21, 0.12);

  --font-display: 'Fraunces', serif;
  --font-body: 'Archivo', sans-serif;

  --container: 1180px;
}

*, *::before, *::after{ box-sizing: border-box; }

html{ scroll-behavior: smooth; }

body{
  margin: 0;
  background: var(--cream);
  color: var(--charcoal);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img{ max-width: 100%; display: block; }

a{ color: inherit; text-decoration: none; }

.container{
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 32px;
}

h1, h2, h3{
  font-family: var(--font-display);
  font-weight: 500;
  margin: 0;
  color: var(--wood);
}

.eyebrow{
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.72rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--clay-dark);
  font-weight: 600;
  margin-bottom: 18px;
}
.eyebrow::before{
  content: "";
  width: 28px;
  height: 1px;
  background: var(--clay);
  display: inline-block;
}

/* ---------- Buttons ---------- */
.btn{
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 30px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.88rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.35s ease, box-shadow 0.35s ease, background 0.35s ease, color 0.35s ease;
}
.btn-primary{
  background: var(--clay);
  color: var(--paper);
  box-shadow: 0 10px 24px -10px rgba(122, 64, 41, 0.65);
}
.btn-primary:hover{
  background: var(--clay-dark);
  transform: translateY(-2px);
  box-shadow: 0 16px 30px -12px rgba(122, 64, 41, 0.75);
}
.btn-ghost{
  background: transparent;
  color: var(--paper);
  border-color: rgba(251, 246, 238, 0.5);
}
.btn-ghost:hover{
  background: rgba(251, 246, 238, 0.12);
  border-color: var(--paper);
}
.btn-outline{
  background: transparent;
  color: var(--clay-dark);
  border-width: 1.5px;
  border-color: var(--clay-dark);
}
.btn-outline:hover{
  background: var(--clay-dark);
  color: var(--paper);
}

/* ---------- Header ---------- */
.site-header{
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 40px;
  transition: background 0.4s ease, padding 0.4s ease, box-shadow 0.4s ease;
}
.site-header.is-scrolled{
  background: rgba(246, 237, 225, 0.92);
  backdrop-filter: blur(10px);
  padding: 14px 40px;
  box-shadow: 0 8px 24px -18px rgba(36,26,21,0.5);
}

.brand{
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-display);
  font-size: 1.3rem;
  letter-spacing: 0.02em;
  color: var(--paper);
  transition: color 0.4s ease;
}
.site-header.is-scrolled .brand{ color: var(--wood); }

.brand-badge{
  width: 40px;
  aspect-ratio: 766 / 900;
  flex-shrink: 0;
  background: var(--wood);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4px;
  overflow: hidden;
}
.brand-mark{
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}
.brand .since{
  display: block;
  font-family: var(--font-body);
  font-size: 0.6rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  opacity: 0.75;
  font-weight: 600;
}

.main-nav{
  display: flex;
  align-items: center;
  gap: 40px;
}
.main-nav a{
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--paper);
  position: relative;
  padding-bottom: 4px;
  transition: color 0.4s ease;
}
.main-nav a.btn{ padding-bottom: 15px; }
.site-header.is-scrolled .main-nav a{ color: var(--wood); }
.main-nav a::after{
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 0; height: 2px;
  background: var(--gold);
  transition: width 0.3s ease;
}
.main-nav a:hover::after{ width: 100%; }

.lang-switch{
  display: flex;
  align-items: center;
  gap: 8px;
  padding-left: 8px;
  margin-left: 4px;
  border-left: 1px solid rgba(251, 246, 238, 0.35);
  transition: border-color 0.4s ease;
}
.site-header.is-scrolled .lang-switch{ border-left-color: var(--line); }
.main-nav .lang-switch a{
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  padding-bottom: 0;
  opacity: 0.55;
}
.main-nav .lang-switch a::after{ display: none; }
.main-nav .lang-switch a:hover{ opacity: 1; }
.main-nav .lang-switch a.active{
  opacity: 1;
  color: var(--gold);
}

.nav-toggle{
  display: none;
  position: relative;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}
.nav-toggle span, .nav-toggle::before, .nav-toggle::after{
  content: "";
  display: block;
  position: absolute;
  left: 7px;
  width: 26px;
  height: 2px;
  background: var(--paper);
  transition: background 0.3s ease, transform 0.3s ease, opacity 0.2s ease;
}
.nav-toggle::before{ top: 12px; }
.nav-toggle span{ top: 19px; }
.nav-toggle::after{ top: 26px; }
.site-header.is-scrolled .nav-toggle span,
.site-header.is-scrolled .nav-toggle::before,
.site-header.is-scrolled .nav-toggle::after{ background: var(--wood); }

/* Menu aperto: hamburger diventa una X scura, leggibile sul pannello chiaro */
.nav-toggle.is-open span{ opacity: 0; }
.nav-toggle.is-open::before{ transform: translateY(7px) rotate(45deg); }
.nav-toggle.is-open::after{ transform: translateY(-7px) rotate(-45deg); }
.nav-toggle.is-open::before,
.nav-toggle.is-open::after,
.site-header.is-scrolled .nav-toggle.is-open::before,
.site-header.is-scrolled .nav-toggle.is-open::after{ background: var(--wood); }

/* ---------- Hero ---------- */
.hero{
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  color: var(--paper);
}
.hero-media{
  position: absolute;
  inset: 0;
}
.hero-media img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.16);
}
.hero-media::after{
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(36,20,14,0.55) 0%, rgba(36,20,14,0.35) 35%, rgba(24,14,10,0.88) 100%);
}
.hero-content{
  position: relative;
  z-index: 2;
  padding: 0 40px 110px;
  max-width: 920px;
}
.hero-content .eyebrow{ color: #f0c893; }
.hero-content .eyebrow::before{ background: var(--gold); }
.hero-content h1{
  color: var(--paper);
  font-size: clamp(2.6rem, 6vw, 4.6rem);
  line-height: 1.05;
  font-weight: 500;
  letter-spacing: -0.01em;
}
.hero-content h1 em{
  font-style: italic;
  font-weight: 400;
  color: #f0c893;
}
.hero-content p{
  margin: 26px 0 38px;
  max-width: 540px;
  font-size: 1.05rem;
  color: rgba(251, 246, 238, 0.86);
}
.hero-actions{
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}

.hero-scroll{
  position: absolute;
  right: 40px;
  bottom: 44px;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  color: rgba(251,246,238,0.7);
  font-size: 0.68rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}
.hero-scroll .line{
  width: 1px;
  height: 46px;
  background: linear-gradient(180deg, rgba(251,246,238,0.9), transparent);
  animation: scrollLine 2.2s ease-in-out infinite;
}
@keyframes scrollLine{
  0%{ transform: scaleY(0); transform-origin: top; }
  50%{ transform: scaleY(1); transform-origin: top; }
  50.1%{ transform-origin: bottom; }
  100%{ transform: scaleY(0); transform-origin: bottom; }
}

/* ---------- Arch divider ---------- */
.arch-divider{
  width: 100%;
  height: 64px;
  display: block;
  fill: var(--cream);
}
.arch-divider.flip{ transform: rotate(180deg); }
.section-cream .arch-divider{ fill: var(--cream); }
.section-paper .arch-divider{ fill: var(--paper); }

/* ---------- Sections generic ---------- */
section{ position: relative; }
.section-pad{ padding: 120px 0; }
.section-paper{ background: var(--paper); }
.section-cream{ background: var(--cream); }
.section-dark{ background: var(--wood); color: var(--cream-2); }

.section-head{
  max-width: 640px;
  margin-bottom: 64px;
}
.section-head.center{ margin-left: auto; margin-right: auto; text-align: center; }
.section-head h2{
  font-size: clamp(2rem, 3.6vw, 2.9rem);
  line-height: 1.15;
}
.section-head p{
  margin-top: 18px;
  color: #5a4a40;
  font-size: 1.02rem;
}
.section-dark .section-head p{ color: rgba(239, 224, 204, 0.78); }
.section-head h2.nowrap-title{
  white-space: nowrap;
  width: max-content;
  max-width: none;
  position: relative;
  left: 50%;
  transform: translateX(-50%);
}

/* ---------- Storia ---------- */
.storia{
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 80px;
  align-items: center;
}
.storia-copy p{
  color: #4a3b32;
  margin: 0 0 20px;
  font-size: 1.02rem;
}
.storia-copy p:last-of-type{ margin-bottom: 0; }
.storia-copy strong{ color: var(--wood); }
.storia-copy .lede{
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.5rem;
  color: var(--clay-dark);
  line-height: 1.4;
  margin-bottom: 26px;
}
.storia-frame{
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 36px;
  max-width: 380px;
  margin-left: auto;
}
.storia-frame .old-photo{
  border-radius: 4px;
  box-shadow: 0 30px 60px -25px rgba(36,26,21,0.5);
  transform: rotate(-3deg);
}
.storia-frame .old-photo img{
  width: 100%; height: auto; display: block; border-radius: 4px;
}
.storia-frame .now-photo{
  border-radius: 4px;
  box-shadow: 0 30px 60px -25px rgba(36,26,21,0.5);
  transform: rotate(2deg);
}
.storia-frame .now-photo img{
  width: 100%;
  height: auto;
  display: block;
  border-radius: 4px;
}

/* ---------- Piatti / gallery ---------- */
.piatti-grid{
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  grid-auto-rows: 14vw;
  gap: 20px;
}
.piatto{
  position: relative;
  overflow: hidden;
  border-radius: 18px;
  cursor: default;
}
.piatto img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s ease;
}
.piatto:hover img{ transform: scale(1.08); }
.piatto::after{
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(36,20,14,0) 45%, rgba(24,14,10,0.85) 100%);
}
.piatto-label{
  position: absolute;
  left: 20px;
  right: 20px;
  bottom: 16px;
  z-index: 2;
  color: var(--paper);
}
.piatto-label .tag{
  display: block;
  font-size: 0.64rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #f0c893;
  margin-bottom: 4px;
}
.piatto-label .name{
  font-family: var(--font-display);
  font-size: 1.15rem;
}

.p1{ grid-column: span 3; grid-row: span 2; }
.p2{ grid-column: span 3; grid-row: span 1; }
.p3{ grid-column: span 3; grid-row: span 1; }
.p4{ grid-column: span 2; grid-row: span 2; }
.p5{ grid-column: span 2; grid-row: span 2; }
.p6{ grid-column: span 2; grid-row: span 2; }

.piatti-actions{
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 28px;
}

/* ---------- Cucina a vista ---------- */
.cucina-vista{
  display: grid;
  grid-template-columns: 1fr 0.7fr;
  gap: clamp(28px, 5vw, 56px);
  align-items: center;
  margin-top: 56px;
}
.cucina-vista-copy{ order: 1; }
.cucina-vista-frame{ order: 2; }
.cucina-vista-frame{
  border-radius: 22px;
  overflow: hidden;
  box-shadow: 0 40px 70px -30px rgba(36, 26, 21, 0.45);
}
.cucina-vista-frame img{
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 5 / 6;
  object-fit: cover;
}
.cucina-vista-copy p{
  color: #5a4a40;
  max-width: 46ch;
  margin: 0;
  font-size: 1.02rem;
}

/* ---------- Cantina (dentro la sezione Sala) ---------- */
.cantina-grid{
  display: grid;
  margin-top: 56px;
  grid-template-columns: 0.8fr 1fr;
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
}
.cantina-frame{
  border-radius: 22px;
  overflow: hidden;
  box-shadow: 0 40px 70px -30px rgba(36, 26, 21, 0.45);
}
.cantina-frame img{
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}
.cantina-copy p{
  color: #5a4a40;
  max-width: 46ch;
  margin: 0 0 28px;
}

/* ---------- Sala: cucina a vista, cantina, ambiente ---------- */
.sala{ background: var(--paper); }
.sala .section-head{ margin-bottom: 8px; }

.sala-ambiente{
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: clamp(28px, 5vw, 56px);
  align-items: center;
  margin-top: 56px;
}
.sala-ambiente-frame{
  border-radius: 22px;
  overflow: hidden;
  box-shadow: 0 40px 70px -30px rgba(36, 26, 21, 0.45);
}
.sala-ambiente-frame img{
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}
.sala-ambiente-copy p{
  color: #5a4a40;
  max-width: 46ch;
  margin: 0;
  font-size: 1.02rem;
}
.sala-ambiente-copy .sala-quote{
  margin-top: 26px;
  padding-left: 22px;
  border-left: 2px solid var(--gold);
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.2rem;
  color: var(--clay-dark);
}

/* ---------- Dicono di noi (Rai, recensioni) ---------- */

.tv-card{
  margin-bottom: 80px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 40px;
}
.tv-card h3{
  font-size: clamp(1.4rem, 2.2vw, 1.8rem);
  margin-bottom: 14px;
}
.tv-card > p{
  color: #5a4a40;
  margin-bottom: 26px;
  max-width: 640px;
}
.tv-card .video-frame{ margin: 0; max-width: none; }
.tv-card .press-meta{ margin: 26px 0 0; max-width: none; }

.reviews-head{ margin-bottom: 40px; }
.reviews-head h3{
  font-size: clamp(1.5rem, 2.6vw, 2rem);
  line-height: 1.15;
}
.reviews-grid{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
  margin-bottom: 40px;
}
.review-card{
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 30px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.review-card .stars{
  color: var(--gold);
  letter-spacing: 2px;
  font-size: 1rem;
}
.review-text{
  font-family: var(--font-display);
  font-style: italic;
  color: var(--wood);
  font-size: 0.98rem;
  line-height: 1.5;
  flex-grow: 1;
}
.review-author{
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--clay-dark);
}
.reviews-cta{ text-align: center; }

/* ---------- Clip video dei piatti ---------- */
.clips-block{ margin-bottom: 80px; }
.clips-grid{
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
}
.clip-card{
  margin: 0;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 22px;
  overflow: hidden;
}
.clip-video{
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  background: var(--wood);
}
/* Prima del play si vede solo la copertina con il tasto play */
.clip-facade{
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: var(--wood);
  cursor: pointer;
  aspect-ratio: 16 / 9;
  overflow: hidden;
}
.clip-facade img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}
.clip-facade::after{
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(36,26,21,0.15) 0%, rgba(36,26,21,0.35) 100%);
}
.clip-facade:hover img{ transform: scale(1.03); }
.clip-play{
  position: absolute;
  inset: 0;
  z-index: 2;
  margin: auto;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  border: 2px solid var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  color: var(--gold);
  transition: background 0.2s ease, color 0.2s ease;
}
.clip-facade:hover .clip-play{
  background: var(--gold);
  color: var(--wood);
}
.clip-card figcaption{
  padding: 16px 22px;
  font-family: var(--font-display);
  font-size: 1.05rem;
  color: var(--wood);
}

.gift-block{ margin-bottom: 80px; }
.gift-head{ margin-bottom: 28px; }
.gift-head h3{
  font-size: clamp(1.4rem, 2.2vw, 1.8rem);
  margin: 10px 0 14px;
}
.gift-intro{
  color: #5a4a40;
  max-width: 640px;
  margin: 0 auto;
}
.gift-grid{
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
}
.gift-card{
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 36px;
  text-align: center;
  display: flex;
  flex-direction: column;
}
.gift-card h4{
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.2rem;
  margin: 0 0 12px;
}
.gift-card p{
  color: #5a4a40;
  margin: 0 0 24px;
  flex: 1;
}
.gift-card .btn{ align-self: center; }


.video-frame{
  max-width: 860px;
  margin: 0 auto;
  border-radius: 22px;
  overflow: hidden;
  box-shadow: 0 40px 70px -30px rgba(36, 26, 21, 0.45);
  aspect-ratio: 16 / 9;
  background: var(--wood);
}
.video-frame iframe{
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}
.video-facade{
  width: 100%;
  height: 100%;
  border: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  background:
    linear-gradient(180deg, rgba(36,26,21,0.35) 0%, rgba(36,26,21,0.55) 100%),
    url("assets/images/video-poster-linea-verde.jpg") center/cover no-repeat;
  color: var(--paper);
  cursor: pointer;
  font-family: var(--font-body);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 0.9rem;
  transition: transform 0.3s ease;
}
.video-facade:hover{ transform: scale(1.01); }
.video-facade .video-play-icon{
  width: 64px;
  height: 64px;
  border-radius: 50%;
  border: 2px solid var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  color: var(--gold);
  transition: background 0.2s ease, color 0.2s ease;
}
.video-facade:hover .video-play-icon{
  background: var(--gold);
  color: var(--wood);
}

.press-meta{
  max-width: 860px;
  margin: 30px auto 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}
.press-meta p{
  margin: 0;
  color: #5a4a40;
  font-size: 0.92rem;
  max-width: 480px;
}

/* ---------- Info / Contatti ---------- */
.info-grid{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 22px;
  overflow: hidden;
}
.info-card{
  background: var(--paper);
  padding: 44px 38px;
}
.info-card .icon{
  width: 40px; height: 40px;
  margin-bottom: 22px;
  color: var(--clay);
}
.info-card h3{
  font-size: 1.2rem;
  margin-bottom: 14px;
}
.info-card p, .info-card address{
  font-style: normal;
  color: #5a4a40;
  font-size: 0.95rem;
  line-height: 1.75;
  margin: 0;
}
.info-card a.link{
  color: var(--clay-dark);
  font-weight: 600;
  border-bottom: 1px solid var(--clay);
}
.hours-row{
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 4px 0;
}
.hours-row span:first-child{ color: var(--wood); font-weight: 600; }
.hours-row.closed span:last-child{ color: var(--clay); font-style: italic; }

.map-frame{
  margin-top: 40px;
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: 0 30px 50px -30px rgba(36, 26, 21, 0.35);
}
.map-frame iframe{
  width: 100%;
  height: 380px;
  display: block;
}

.cta-band{
  margin-top: 70px;
  border-radius: 26px;
  background: linear-gradient(120deg, var(--clay-deep), var(--clay-dark));
  padding: 56px 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  flex-wrap: wrap;
  color: var(--paper);
  position: relative;
  overflow: hidden;
}
.cta-band::before{
  content: "";
  position: absolute;
  width: 320px; height: 320px;
  border-radius: 50%;
  border: 1px solid rgba(251,246,238,0.15);
  right: -80px; top: -120px;
}
.cta-band h3{
  color: var(--paper);
  font-size: clamp(1.5rem, 2.6vw, 2rem);
  max-width: 480px;
  position: relative; z-index: 1;
}
.cta-band .btn{ position: relative; z-index: 1; }

/* ---------- Footer ---------- */
.site-footer{
  background: var(--charcoal);
  color: rgba(246,237,225,0.7);
  padding: 64px 0 30px;
}
.footer-top{
  display: flex;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(246,237,225,0.12);
}
.footer-brand{
  font-family: var(--font-display);
  font-size: 1.4rem;
  color: var(--paper);
  display: flex;
  align-items: center;
  gap: 12px;
}
.footer-brand .brand-badge{ width: 32px; background: var(--gold); }
.footer-cols{
  display: flex;
  gap: 70px;
  flex-wrap: wrap;
}
.footer-col h4{
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 16px;
  font-weight: 600;
}
.footer-col a, .footer-col p{
  display: block;
  margin: 0 0 10px;
  font-size: 0.92rem;
  color: rgba(246,237,225,0.75);
}
.footer-col a:hover{ color: var(--paper); }
.footer-bottom{
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  padding-top: 26px;
  font-size: 0.8rem;
}
.footer-credit{
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
  text-decoration-color: rgba(201, 151, 79, 0.6);
  transition: color 0.2s ease, text-decoration-color 0.2s ease;
}
.footer-credit:hover{
  color: var(--gold);
  text-decoration-color: var(--gold);
}

.socials{ display: flex; gap: 16px; }
.hero-socials{ margin-top: 34px; }
.socials a{
  width: 38px; height: 38px;
  border: 1px solid rgba(246,237,225,0.25);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.3s ease, border-color 0.3s ease;
}
.socials a:hover{ background: var(--clay); border-color: var(--clay); }
.socials svg{ width: 16px; height: 16px; fill: currentColor; }

/* ---------- Responsive ---------- */
@media (max-width: 980px){
  .storia{ grid-template-columns: 1fr; gap: 56px; }
  .storia-frame{ max-width: 420px; margin: 0 auto; width: 100%; }
  .info-grid{ grid-template-columns: 1fr; }
  .piatti-grid{ grid-template-columns: repeat(2, 1fr); grid-auto-rows: 220px; }
  .p1,.p2,.p3,.p4,.p5,.p6{ grid-column: span 1; grid-row: span 1; }
  .p1{ grid-column: span 2; }
  .p6{ grid-column: span 2; }
  .reviews-grid{ grid-template-columns: 1fr; }
  .section-head h2.nowrap-title{ white-space: normal; width: auto; max-width: 100%; position: static; left: auto; transform: none; }
}

@media (max-width: 760px){
  .site-header{ padding: 18px 22px; }
  .main-nav{
    position: fixed;
    top: 0; right: -100%;
    width: min(78vw, 320px);
    height: 100vh;
    background: var(--paper);
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    padding: 40px;
    gap: 26px;
    transition: right 0.4s ease;
    box-shadow: -20px 0 40px rgba(0,0,0,0.2);
  }
  .main-nav.open{ right: 0; }
  .main-nav a{ color: var(--wood) !important; font-size: 1rem; }
  .lang-switch{
    border-left: none;
    border-top: 1px solid var(--line);
    padding-left: 0;
    padding-top: 22px;
    margin-left: 0;
    width: 100%;
  }
  .main-nav .lang-switch a{ font-size: 0.8rem; }
  .nav-toggle{ display: block; z-index: 200; }
  .container{ padding: 0 22px; }
  .section-pad{ padding: 84px 0; }
  .hero{ align-items: flex-start; }
  .hero-content{ padding: 120px 22px 90px; }
  .hero-scroll{ display: none; }
  .cucina-vista{ grid-template-columns: 1fr; gap: 24px; margin-top: 40px; }
  .cucina-vista-frame{ order: 1; }
  .cucina-vista-copy{ order: 2; }
  .cucina-vista-frame{ max-width: 280px; margin: 0 auto; }
  .cucina-vista-copy{ text-align: center; }
  .cucina-vista-copy p{ max-width: 100%; }
  .cantina-grid{ grid-template-columns: 1fr; gap: 28px; }
  .sala-ambiente{ grid-template-columns: 1fr; gap: 24px; margin-top: 40px; }
  .sala-ambiente-frame{ order: 1; }
  .sala-ambiente-copy{ order: 2; text-align: center; }
  .sala-ambiente-copy p{ max-width: 100%; }
  .sala-quote{ text-align: left; }
  .cantina-frame{ max-width: 280px; margin: 0 auto; }
  .cantina-copy{ text-align: center; }
  .cantina-copy p{ max-width: 100%; }
  .clips-grid{ grid-template-columns: 1fr; }
  .gift-grid{ grid-template-columns: 1fr; }
  .gift-card{ padding: 28px 22px; }
  .cta-band{ flex-direction: column; align-items: flex-start; padding: 40px 28px; }
  .map-frame iframe{ height: 280px; }
  .footer-top, .footer-bottom{ flex-direction: column; align-items: flex-start; }
  .footer-cols{ gap: 40px; }
  .tv-card{ padding: 28px 22px; }
  .cookie-banner{ left: 12px; right: 12px; bottom: 12px; padding: 20px; }
  .cookie-banner-actions{ width: 100%; }
  .cookie-banner-actions .btn{ flex: 1; justify-content: center; }
  .legal-section{ padding: 140px 0 72px; }

  /* Storia: interleave photos between paragraphs, smaller & uncropped */
  .storia-copy, .storia-frame{ display: contents; }
  .storia-copy > .eyebrow{ order: 1; }
  .storia-copy > h2{ order: 2; }
  .storia-copy > .lede{ order: 3; }
  .storia-copy > .storia-p1{ order: 4; }
  .storia-frame > .old-photo{ order: 5; max-width: 240px; margin: 0 auto; }
  .storia-copy > .storia-p2{ order: 6; }
  .storia-frame > .now-photo{ order: 7; max-width: 240px; margin: 0 auto; }

  /* Reviews: horizontal snap slider instead of stacked cards */
  .reviews-grid{
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    gap: 16px;
    margin: 0 -22px;
    padding: 0 22px 10px;
  }
  .review-card{ flex: 0 0 84%; scroll-snap-align: center; }

  /* Info / Contatti: slightly more compact */
  .info-card{ padding: 26px 22px; }
  .info-card .icon{ width: 32px; height: 32px; margin-bottom: 14px; }
  .info-card h3{ font-size: 1.05rem; margin-bottom: 8px; }
  .info-card p, .info-card address{ font-size: 0.88rem; line-height: 1.6; }
  .hours-row{ padding: 3px 0; font-size: 0.88rem; }
}

/* ---------- Map consent gate ---------- */
.map-consent{
  background: var(--paper);
  padding: 52px 32px;
  text-align: center;
}
.map-consent-text{
  max-width: 480px;
  margin: 0 auto 22px;
  color: #5a4a40;
  font-size: 0.95rem;
  line-height: 1.75;
}
.map-frame:has(.map-consent){ box-shadow: none; }

/* ---------- Cookie banner ---------- */
.cookie-banner{
  position: fixed;
  left: 24px;
  right: 24px;
  bottom: 24px;
  z-index: 999;
  background: var(--wood);
  color: var(--cream-2);
  border-radius: 20px;
  box-shadow: 0 30px 60px -22px rgba(36, 26, 21, 0.6);
  padding: 26px 30px;
  display: none;
}
.cookie-banner.is-visible{ display: block; }
.cookie-banner-inner{
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 22px;
  max-width: var(--container);
  margin: 0 auto;
}
.cookie-banner-text{
  flex: 1 1 380px;
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.65;
  color: var(--cream-2);
}
.cookie-banner-text a{
  color: var(--gold);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.cookie-banner-actions{
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  flex-shrink: 0;
}
.btn-cookie-reject{
  background: transparent;
  color: var(--cream-2);
  border-color: rgba(251, 246, 238, 0.35);
}
.btn-cookie-reject:hover{
  background: rgba(251, 246, 238, 0.12);
  border-color: var(--cream-2);
}

/* ---------- Legal pages (Privacy & Cookie) ---------- */
.legal-section{ padding: 190px 0 120px; background: var(--paper); }
.legal-doc{ max-width: 760px; margin: 0 auto; }
.legal-doc .eyebrow{ margin-bottom: 18px; }
.legal-doc h1{ font-size: 2.3rem; line-height: 1.15; margin-bottom: 10px; }
.legal-doc .updated{
  font-family: var(--font-body);
  color: var(--clay-dark);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
  margin-bottom: 52px;
  display: block;
}
.legal-doc h2{
  font-size: 1.35rem;
  margin-top: 52px;
  margin-bottom: 16px;
}
.legal-doc h2:first-of-type{ margin-top: 0; }
.legal-doc h3{
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--clay-dark);
  margin: 30px 0 10px;
}
.legal-doc p, .legal-doc li{
  color: #5a4a40;
  font-size: 0.98rem;
  line-height: 1.8;
  margin: 0 0 16px;
}
.legal-doc ul{ padding-left: 22px; margin: 0 0 20px; }
.legal-doc li{ margin-bottom: 8px; }
.legal-doc strong{ color: var(--wood); }
.legal-doc a{
  color: var(--clay-dark);
  font-weight: 600;
  border-bottom: 1px solid var(--clay);
}
.legal-doc .table-wrap{ overflow-x: auto; margin: 8px 0 32px; }
.legal-doc table{
  width: 100%;
  min-width: 480px;
  border-collapse: collapse;
  font-size: 0.86rem;
}
.legal-doc th, .legal-doc td{
  text-align: left;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
  color: #5a4a40;
}
.legal-doc th{
  font-family: var(--font-body);
  font-weight: 700;
  color: var(--wood);
  background: var(--cream-2);
}
.legal-doc .back-link{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 56px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--clay-dark);
}

/* ===== Scroll reveal ===== */
.reveal{
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.is-visible{
  opacity: 1;
  transform: none;
}
@media (prefers-reduced-motion: reduce){
  .reveal{
    opacity: 1;
    transform: none;
    transition: none;
  }
}
