/* Edonè — bozza 2026-10 */
:root {
  --ink: #15140f;
  --ink-2: #1e1c17;
  --ivory: #f3eee5;
  --paper: #faf7f1;
  --muted: #7a7468;
  --line: rgba(21, 20, 15, .14);
  --bronze: #a88b5c;
  --serif: 'Cormorant Garamond', 'Times New Roman', serif;
  --sans: 'Jost', 'Helvetica Neue', Arial, sans-serif;
  --gut: clamp(20px, 5vw, 72px);
  --ease: cubic-bezier(.22, .61, .36, 1);
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--ivory); color: var(--ink-2);
  font: 300 17px/1.7 var(--sans); -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { font-family: var(--serif); font-weight: 300; line-height: 1.08; margin: 0; }
h2 { font-size: clamp(40px, 6vw, 84px); letter-spacing: -.01em; }
h2 em, .lead { font-style: italic; }
p { margin: 0 0 1em; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* segnaposto contenuti da ricevere */
.todo { outline: 1px dashed #18b3c4; outline-offset: 2px; color: inherit; }

/* logo come maschera: prende il colore del testo */
.logo {
  display: block; aspect-ratio: 289 / 126; background: currentColor;
  -webkit-mask: url(img/logo.svg) center / contain no-repeat; mask: url(img/logo.svg) center / contain no-repeat;
}

.kicker {
  font: 400 12px/1 var(--sans); letter-spacing: .32em; text-transform: uppercase;
  color: var(--bronze); margin-bottom: 28px;
}

.btn {
  display: inline-flex; align-items: center; gap: .6em; padding: 15px 30px;
  font: 400 12px/1 var(--sans); letter-spacing: .24em; text-transform: uppercase;
  border: 1px solid currentColor; transition: background .4s var(--ease), color .4s var(--ease);
}
.btn--solid { background: var(--ivory); color: var(--ink); border-color: var(--ivory); }
.btn--solid:hover { background: transparent; color: var(--ivory); }
.btn--line:hover { background: currentColor; }
.btn--line:hover { color: var(--ink); background: var(--ivory); border-color: var(--ivory); }
.link { border-bottom: 1px solid currentColor; padding-bottom: 2px; }

/* immagini segnaposto: se la foto manca resta un fondo caldo con l'etichetta */
.ph { position: relative; overflow: hidden; background: linear-gradient(135deg, #2a2620, #14130f 70%); margin: 0; }
.ph::before {
  content: attr(data-label); position: absolute; inset: auto 16px 16px 16px;
  font: 400 11px/1.4 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: rgba(243, 238, 229, .35);
}
.ph img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

/* HEADER */
.top {
  position: fixed; inset: 0 0 auto; z-index: 50; display: flex; align-items: center; gap: 40px;
  padding: 22px var(--gut); color: var(--ivory); transition: background .5s var(--ease), padding .5s var(--ease), color .5s;
}
.top.is-solid { background: rgba(243, 238, 229, .94); backdrop-filter: blur(10px); color: var(--ink); padding-block: 14px; box-shadow: 0 1px 0 var(--line); }
.top__logo { width: 92px; }
.top__nav { display: flex; gap: 34px; margin-left: auto; font-size: 12px; letter-spacing: .24em; text-transform: uppercase; }
.top__nav a { position: relative; padding: 6px 0; }
.top__nav a::after { content: ''; position: absolute; left: 0; right: 100%; bottom: 0; height: 1px; background: currentColor; transition: right .4s var(--ease); }
.top__nav a:hover::after { right: 0; }
.lang { display: flex; gap: 14px; padding-left: 30px; border-left: 1px solid currentColor; border-color: rgba(127, 120, 108, .45); }
.top__nav .lang a { opacity: .55; transition: opacity .3s; }
.top__nav .lang a:hover, .top__nav .lang a[aria-current] { opacity: 1; }
.top__nav .lang a::after { display: none; }
.top__cta { padding: 12px 22px; }
.top.is-solid .top__cta:hover { background: var(--ink); color: var(--ivory); border-color: var(--ink); }
.top__burger { display: none; }

/* HERO */
.hero { position: relative; height: 100svh; min-height: 560px; display: grid; place-items: center; color: var(--ivory); text-align: center; overflow: hidden; }
.hero__media { position: absolute; inset: 0; }
.hero__media img { transform: scale(1.08); animation: zoom 14s var(--ease) forwards; }
.hero__media::after { content: ''; position: absolute; inset: 0; background: radial-gradient(ellipse at center, rgba(10, 9, 7, .35), rgba(10, 9, 7, .72)); }
.hero__inner { position: relative; z-index: 1; padding: 0 var(--gut); }
.hero__logo { width: min(620px, 78vw); margin: 0 auto 26px; }
.hero__claim { font: italic 300 clamp(22px, 2.6vw, 32px)/1.3 var(--serif); }
.hero__scroll { position: absolute; bottom: 34px; left: 50%; width: 1px; height: 64px; background: rgba(243, 238, 229, .25); overflow: hidden; }
.hero__scroll span { position: absolute; inset: 0; background: var(--ivory); animation: drip 2.2s var(--ease) infinite; }
.logo--draw { animation: draw 2.4s var(--ease) .3s both; }
@keyframes draw { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
@keyframes zoom { to { transform: scale(1); } }
@keyframes drip { from { transform: translateY(-100%); } to { transform: translateY(100%); } }

/* MANIFESTO */
.manifesto { padding: clamp(100px, 16vw, 200px) var(--gut); text-align: center; max-width: 1200px; margin: 0 auto; }
.manifesto__word { font: 300 18px/1 var(--serif); color: var(--muted); margin-bottom: 40px; }
.manifesto__word em { font-size: 26px; color: var(--ink-2); }
.manifesto__word span { margin: 0 .6em; color: var(--bronze); }
.manifesto__text { font: 300 clamp(26px, 3vw, 42px)/1.3 var(--serif); margin: 0 auto; max-width: 980px; }
.manifesto__sub { font: italic 300 clamp(19px, 1.8vw, 24px)/1.5 var(--serif); color: var(--muted); max-width: 720px; margin: clamp(36px, 4vw, 56px) auto 0; }
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 56px; margin-top: clamp(80px, 10vw, 140px); text-align: left; }
.pillars > div { border-top: 1px solid var(--line); padding-top: 28px; }
.pillars__n { font: italic 300 20px var(--serif); color: var(--bronze); }
.pillars h3 { font-size: 34px; margin: 10px 0 14px; }
.pillars p { color: var(--muted); }

.wide { height: clamp(320px, 70vh, 760px); }

/* CHEF */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 7vw, 120px); align-items: center; padding: clamp(100px, 13vw, 180px) var(--gut); max-width: 1440px; margin: 0 auto; }
.split__media { aspect-ratio: 4 / 5; }
.split__text h2 { margin-bottom: 36px; }
.split .lead { font: italic 300 clamp(24px, 2.4vw, 32px)/1.35 var(--serif); color: var(--ink); margin-bottom: 28px; }
.split p { color: var(--muted); max-width: 520px; }
.career { list-style: none; margin: 34px 0 0; padding: 0; max-width: 520px; border-top: 1px solid var(--line); }
.career li { display: flex; justify-content: space-between; gap: 20px; padding: 13px 0; border-bottom: 1px solid var(--line); font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
.career span { font: italic 300 21px/1.2 var(--serif); letter-spacing: 0; text-transform: none; color: var(--ink); }
.sign { font: italic 400 30px var(--serif); color: var(--ink) !important; margin-top: 30px; }

/* MENÙ */
.menus { background: var(--paper); padding: clamp(100px, 13vw, 180px) var(--gut); }
.section-head { text-align: center; max-width: 760px; margin: 0 auto clamp(56px, 7vw, 90px); }
.section-head h2 { margin-bottom: 22px; }
.section-head p:last-child { color: var(--muted); }
.section-head__lead { font: italic 300 clamp(22px, 2.3vw, 30px)/1.4 var(--serif); color: var(--ink); margin: 0 auto 26px; }
.menus__grid { display: grid; grid-template-columns: repeat(3, 1fr); max-width: 1240px; margin: 0 auto; border: 1px solid var(--line); }
.menus__grid--single { grid-template-columns: 1fr; max-width: 780px; }
/* scheda scura al passaggio: tutti i testi diventano chiari */
.menu-card:hover .courses h4 { color: var(--ivory); }
.menu-card:hover .courses p { color: rgba(243, 238, 229, .7); }
.menu-card:hover .courses li { border-color: rgba(243, 238, 229, .16); }
.courses { list-style: none; margin: 46px auto 10px; padding: 0; max-width: 560px; }
.courses li { padding: 22px 0; border-top: 1px solid var(--line); }
.courses li:last-child { border-bottom: 1px solid var(--line); }
.course__n { display: block; font: italic 300 15px var(--serif); color: var(--bronze); margin-bottom: 4px; }
.courses h4 { font: 400 clamp(22px, 2.4vw, 27px)/1.2 var(--serif); margin: 0 0 6px; color: var(--ink); }
.courses p { margin: 0; font-size: 14px; color: var(--muted); }
.menu-tabs { display: flex; justify-content: center; gap: 0; margin: 0 auto 44px; }
.menu-tabs button {
  font: 400 12px/1 var(--sans); letter-spacing: .26em; text-transform: uppercase; color: var(--muted);
  background: none; border: 1px solid var(--line); padding: 16px 30px; cursor: pointer; transition: background .4s var(--ease), color .4s var(--ease);
}
.menu-tabs button + button { border-left: 0; }
.menu-tabs button[aria-selected="true"] { background: var(--ink); color: var(--ivory); border-color: var(--ink); }
.has-tabs .menu-panel[hidden] { display: none; }
.menu-panel + .menu-panel { margin-top: 40px; }
.has-tabs .menu-panel + .menu-panel { margin-top: 0; }
.menu-panel:not([hidden]) { animation: fadein .7s var(--ease); }
@keyframes fadein { from { opacity: 0; transform: translateY(12px); } }
.carta:hover h5, .carta:hover .dish__price { color: var(--ivory); }
.carta:hover li p { color: rgba(243, 238, 229, .7); }
.carta:hover ul, .carta:hover li { border-color: rgba(243, 238, 229, .16); }
.carta__group { margin: 50px auto 0; max-width: 600px; text-align: left; }
.carta__group h4 { font: italic 300 30px/1 var(--serif); color: var(--bronze); text-align: center; margin: 0 0 18px; }
.carta__group ul { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.carta__group li { display: flex; align-items: baseline; gap: 24px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.carta__group li > div { flex: 1; }
.carta__group h5 { font: 400 clamp(20px, 2.2vw, 24px)/1.2 var(--serif); margin: 0 0 4px; color: var(--ink); }
.carta__group li p { margin: 0; font-size: 14px; color: var(--muted); }
.dish__price { font: 300 24px/1 var(--serif); color: var(--ink); white-space: nowrap; }
.menu-card { padding: 64px clamp(28px, 6vw, 72px) 56px; }
.menus__grid--single .menu-card > p:not([class]) { min-height: 0; max-width: 560px; margin-inline: auto; }
.menus__grid--single h3 { font-size: clamp(40px, 5vw, 56px); }
.menu-card { padding: 54px 44px 48px; text-align: center; transition: background .5s var(--ease), color .5s var(--ease); }
.menu-card + .menu-card { border-left: 1px solid var(--line); }
.menu-card:hover { background: var(--ink); color: var(--ivory); }
.menu-card__n { font: italic 300 18px var(--serif); color: var(--bronze); }
.menu-card h3 { font-size: 48px; margin: 6px 0 8px; }
.menu-card__sub { font-size: 11px; letter-spacing: .3em; text-transform: uppercase; color: var(--muted); margin-bottom: 26px; }
.menu-card > p:not([class]) { min-height: 5.1em; color: var(--muted); }
.menu-card:hover > p:not([class]), .menu-card:hover .menu-card__sub { color: rgba(243, 238, 229, .65); }
.menu-card__price { font: 300 54px/1 var(--serif); margin: 26px 0 12px; }
.menu-card__price--sm { font-size: 40px; padding-top: 14px; }
.menu-card__pair { font-size: 13px; color: var(--bronze); margin: 0; }
.menu-card__note { margin: 40px auto 0; padding-top: 26px; border-top: 1px solid var(--line); max-width: 560px; text-align: center; font-size: 14px; color: var(--muted); }
.menu-card:hover .menu-card__note { color: rgba(243, 238, 229, .65); border-color: rgba(243, 238, 229, .16); }
.menus__note { text-align: center; color: var(--muted); font-size: 14px; margin-top: 40px; }

/* GALLERIA */
.gallery { padding: 0 0 clamp(100px, 12vw, 160px); background: var(--paper); overflow: hidden; }
.gallery__track { display: flex; gap: 22px; padding: 0 var(--gut); overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; cursor: grab; }
.gallery__track::-webkit-scrollbar { display: none; }
.gallery figure { flex: 0 0 clamp(250px, 28vw, 400px); aspect-ratio: 3 / 4; scroll-snap-align: start; }
.gallery figure img { transition: transform 1.2s var(--ease); }
.gallery figure:hover img { transform: scale(1.05); }
.gallery figcaption { position: absolute; left: 20px; top: 20px; color: var(--ivory); font: italic 300 22px var(--serif); z-index: 1; }

/* CANTINA */
.cellar { display: grid; grid-template-columns: 1.1fr 1fr; background: var(--ink); color: var(--ivory); min-height: 90vh; }
.cellar__media { min-height: 460px; }
.cellar__text { padding: clamp(80px, 10vw, 150px) clamp(28px, 7vw, 110px); align-self: center; }
.cellar__text h2 { margin-bottom: 34px; }
.cellar__text p { color: rgba(243, 238, 229, .7); max-width: 500px; }
.terroirs { margin: 34px 0 0; display: grid; gap: 18px; max-width: 500px; }
.terroirs dt { font-size: 11px; letter-spacing: .28em; text-transform: uppercase; color: var(--bronze); margin-bottom: 6px; }
.terroirs dd { margin: 0; font: italic 300 20px/1.5 var(--serif); color: rgba(243, 238, 229, .85); }
.stats { display: flex; gap: 48px; margin: 50px 0 0; padding-top: 34px; border-top: 1px solid rgba(243, 238, 229, .16); }
.stats dt { font: 300 46px/1 var(--serif); }
.stats dd { margin: 8px 0 0; font-size: 11px; letter-spacing: .28em; text-transform: uppercase; color: var(--bronze); }

/* SALA */
.room { padding: clamp(100px, 13vw, 180px) var(--gut); }
.room__grid { display: grid; grid-template-columns: 1fr 1.1fr 1fr; gap: clamp(28px, 4vw, 64px); align-items: center; max-width: 1440px; margin: 0 auto; }
.room__grid figure:first-child { aspect-ratio: 3 / 4; }
.room__grid figure:last-child { aspect-ratio: 4 / 5; margin-top: 160px; }
.room__text { text-align: center; }
.room__text h2 { font-size: clamp(38px, 4.4vw, 64px); margin-bottom: 28px; }
.room__text p:last-child { color: var(--muted); }

/* PRENOTA */
.book { background: var(--ink); color: var(--ivory); text-align: center; padding: clamp(100px, 13vw, 170px) var(--gut); position: relative; overflow: hidden; }
.book__logo { position: absolute; width: min(1100px, 120vw); left: 50%; top: 50%; translate: -50% -50%; opacity: .05; }
.book h2 { position: relative; margin-bottom: 22px; }
.book p { position: relative; color: rgba(243, 238, 229, .65); max-width: 480px; margin: 0 auto 44px; }
.book__actions { position: relative; display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* INFO + FOOTER */
.info { display: grid; grid-template-columns: repeat(3, 1fr); gap: 56px; max-width: 1240px; margin: 0 auto; padding: clamp(80px, 10vw, 130px) var(--gut); }
.info h3 { font-size: 30px; margin-bottom: 18px; }
.info p { color: var(--muted); }
.info a:hover { color: var(--ink); }
.info__note { font: italic 300 19px/1.4 var(--serif); color: var(--ink) !important; }
.foot { border-top: 1px solid var(--line); padding: 50px var(--gut); display: flex; align-items: center; gap: 30px; font-size: 13px; color: var(--muted); }
.foot p { margin: 0; }
.foot p:last-child { margin-left: auto; }
.foot__logo { width: 84px; color: var(--ink); }

/* comparsa allo scroll */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 1.1s var(--ease), transform 1.1s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
.hero .reveal { transition-delay: 1.2s; }
.hero .kicker.reveal { transition-delay: .2s; }

@media (max-width: 960px) {
  .top { gap: 16px; }
  .top__nav {
    position: fixed; inset: 0; z-index: -1; flex-direction: column; justify-content: center; align-items: center; gap: 26px;
    background: var(--ink); color: var(--ivory); font: 300 34px var(--serif); letter-spacing: 0; text-transform: none;
    opacity: 0; pointer-events: none; transition: opacity .5s var(--ease);
  }
  .menu-open .top__nav { opacity: 1; pointer-events: auto; }
  .lang { padding: 26px 0 0; border-left: 0; gap: 28px; font: 400 13px var(--sans); letter-spacing: .24em; }
  .menu-open .top { color: var(--ivory); background: transparent; box-shadow: none; }
  .top__cta { margin-left: auto; }
  .top__burger { display: grid; gap: 7px; background: none; border: 0; padding: 8px 0; cursor: pointer; color: inherit; }
  .top__burger span { width: 28px; height: 1px; background: currentColor; transition: transform .4s var(--ease); }
  .menu-open .top__burger span:first-child { transform: translateY(4px) rotate(45deg); }
  .menu-open .top__burger span:last-child { transform: translateY(-4px) rotate(-45deg); }
  .pillars, .menus__grid, .info { grid-template-columns: 1fr; }
  .pillars { gap: 40px; }
  .menu-card + .menu-card { border-left: 0; border-top: 1px solid var(--line); }
  .split, .cellar { grid-template-columns: 1fr; }
  .room__grid { grid-template-columns: 1fr 1fr; }
  .room__text { grid-column: 1 / -1; grid-row: 1; margin-bottom: 20px; }
  .room__grid figure:last-child { margin-top: 60px; }
  .foot { flex-direction: column; text-align: center; gap: 14px; }
  .foot p:last-child { margin-left: 0; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .top__cta { padding: 10px 16px; }
  .top__logo { width: 78px; }
  .stats { gap: 28px; }
  .book .btn { width: 100%; justify-content: center; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}
