/* Misure rilevate a 1440 px (desktop) e 390 px (mobile). Sotto 992 px si passa al layout mobile. */
:root {
  --azione: #B4A163;
  --azione-hover: #CEB464;
  --accento: #7D2B2E;
  --avorio: #F7F7F7;
  --scuro: #1A1A1A;
  --scuro-2: #222222;
  --testo-2: #424242;
  --bordo: #E2E2E2;
  --serif: "Playfair Display", Georgia, serif;
  --sans: Montserrat, system-ui, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 130px; }
body { margin: 0; font: 400 16px/24px var(--sans); color: #000; background: #fff; }
h1, h2, h3, p, figure, blockquote, ul, dl, dd { margin: 0; padding: 0; }
ul { list-style: none; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
:focus-visible { outline: 2px solid var(--accento); outline-offset: 2px; }
.salta { position: absolute; left: 8px; top: -60px; z-index: 30; background: #fff; padding: 10px 16px; }
.salta:focus { top: 8px; }
.solo-mobile { display: none !important; }

/* Pulsante: 58 px di altezza, testo 10/12, spaziatura 2 px */
.pulsante { display: inline-block; padding: 23px 40px; background: var(--azione); color: #fff; font: 800 10px/12px var(--sans); letter-spacing: 2px; text-transform: uppercase; text-align: center; transition: all .2s ease; }
.pulsante:hover, .pulsante:focus-visible { background: var(--azione-hover); }
.pulsante.linea { background: var(--avorio); color: #000; box-shadow: 0 0 0 1px #BABABA; }
.pulsante.linea:hover, .pulsante.linea:focus-visible { background: #000; color: #E2E2E2; }

.occhiello { display: block; font: 800 10px/10px var(--sans); letter-spacing: 2px; text-transform: uppercase; }
.titoletto { font: 700 18px/28px var(--sans); text-transform: uppercase; }

/* Testata: 118 px */
.testata { position: sticky; top: 0; z-index: 10; height: 118px; background: #fff; border-bottom: 1px solid var(--bordo); }
.lingua { position: absolute; left: 44px; top: 30px; display: flex; align-items: center; gap: 22px; font-size: 12px; line-height: 17px; }
.marchio { display: flex; flex-direction: column; align-items: center; line-height: 1; white-space: nowrap; }
.marchio small { font: 400 8px/9px var(--sans); letter-spacing: 5.5px; color: #8A8A8A; }
.marchio strong { font: 700 22px/22px var(--serif); letter-spacing: 1px; }
.testata > .marchio { position: absolute; left: 50%; top: 22px; transform: translateX(-50%); }
.strumenti { position: absolute; right: 40px; top: 16px; display: flex; align-items: center; gap: 28px; font-size: 12px; line-height: 13px; }
.icona { width: 44px; height: 44px; display: flex; align-items: center; justify-content: center; }
.voci { position: absolute; left: 0; right: 0; top: 83px; display: flex; justify-content: center; gap: 16px; font-size: 12px; line-height: 15px; }
.voci a, .strumenti a { transition: color .2s ease; }
.voci a:hover, .strumenti a:hover { color: var(--accento); }

/* Hero: 650 px */
.hero { position: relative; height: 650px; background: var(--scuro); }
.hero img { width: 100%; height: 650px; object-fit: cover; }
.hero-testo { position: absolute; right: 40px; bottom: 40px; width: 390px; display: flex; flex-direction: column; align-items: flex-end; text-align: right; color: #fff; }
.hero h1 { margin-top: 32px; font: 400 56px/55px var(--serif); letter-spacing: 2.24px; text-wrap: balance; }
.hero .sotto { margin-top: 16px; font-size: 18px; line-height: 32px; }
.hero .pulsante { margin-top: 40px; }

/* Banner: 1360 x 644, margine 80 */
.banner { position: relative; max-width: 1360px; height: 644px; margin: 80px auto 0; background: var(--scuro-2); color: #fff; }
.banner img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.banner-testo { position: absolute; left: 40px; bottom: 40px; display: flex; flex-direction: column; align-items: flex-start; }
.banner h2 { font: 400 40px/48px var(--serif); }
.banner .guida { margin-top: 16px; width: 553px; font-size: 18px; line-height: 32px; }
.banner .nota { margin-top: 24px; width: 443px; min-height: 72px; }
.banner .pulsante { margin-top: 40px; min-width: 300px; }

/* Coppia: immagini 508 x 504, margine 120 */
.coppia { display: grid; grid-template-columns: repeat(2, minmax(0, 508px)); justify-content: center; column-gap: min(184px, 8vw); padding: 0 40px; margin-top: 120px; text-align: center; }
.coppia article { display: flex; flex-direction: column; align-items: center; }
.coppia img { width: 100%; aspect-ratio: 508 / 504; object-fit: cover; }
.coppia h2 { margin-top: 56px; font: 400 30px/43px var(--serif); }
.coppia .sotto { margin-top: 16px; font-size: 18px; line-height: 32px; }
.coppia .nota { margin-top: 16px; max-width: 443px; min-height: 48px; color: var(--testo-2); }
.coppia .pulsante { margin-top: 40px; }

/* Storia: 710 px, immagine 550 x 550 */
.storia { display: grid; grid-template-columns: minmax(0, 550px) minmax(0, 645px); column-gap: 95px; justify-content: center; align-items: start; margin-top: 120px; min-height: 710px; padding: 80px 46px 80px 104px; background: var(--avorio); }
.storia img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.storia > div { display: flex; flex-direction: column; align-items: center; text-align: center; padding-top: 112px; }
.storia .occhiello { font-size: 16px; line-height: 28px; letter-spacing: 1.6px; color: var(--accento); }
.storia h2 { margin-top: 32px; font: 400 40px/48px var(--serif); }
.storia .nota { margin-top: 24px; max-width: 450px; min-height: 96px; color: var(--testo-2); }
.storia .pulsante { margin-top: 40px; }

/* Gamma: schede 310 x 465, spazio 24 */
.gamma { max-width: 1440px; margin: 24px auto 0; }
.gamma-testa { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; padding: 0 40px; height: 52px; }
.frecce { display: none; gap: 8px; padding-top: 14px; }
.frecce.serve { display: flex; }
.frecce button { width: 36px; height: 28px; display: flex; align-items: center; justify-content: center; transition: color .2s ease; }
.frecce button:hover { color: var(--accento); }
.frecce button:disabled { color: #BABABA; cursor: default; }
.nastro { display: flex; gap: 24px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; scroll-padding-inline: 40px; scrollbar-width: none; padding: 0 40px; }
.nastro::-webkit-scrollbar { display: none; }
.nastro li { flex: 0 0 310px; scroll-snap-align: start; }
.scheda { position: relative; display: flex; flex-direction: column; align-items: center; height: 465px; padding: 58px 32px 32px; text-align: center; border: 1px solid var(--bordo); transition: border-color .6s ease; }
.scheda:hover, .scheda:focus-visible { border-color: var(--azione); }
.scheda img { width: 170px; height: 301px; object-fit: contain; }
.scheda h3 { margin-top: 16px; font: 400 18px/28px var(--serif); }
.etichetta { position: absolute; top: 32px; left: 0; right: 0; font: 800 10px/10px var(--sans); letter-spacing: 2px; text-transform: uppercase; color: var(--accento); }

/* Citazione: testo 665, immagine 668 x 470 */
.citazione { max-width: 1440px; margin: 119px auto 0; padding-left: 270px; padding-right: 270px; }
.citazione figure { max-width: 665px; }
.citazione blockquote { min-height: 259px; font: 400 30px/43.2px var(--serif); color: var(--accento); }
.citazione figcaption { margin-top: 24px; }
.citazione > img { width: min(668px, 100%); aspect-ratio: 668 / 470; object-fit: cover; margin: 40px 0 0 auto; transform: translateX(0); }

/* Territorio: foto 780 x 660, scheda 484 x 579 */
.territorio { display: grid; grid-template-columns: minmax(0, 780fr) minmax(0, 532fr); grid-template-rows: 44px 660px; column-gap: 40px; max-width: 1440px; margin: 121px auto 0; padding: 0 40px; }
.territorio > .titoletto { grid-column: 1 / -1; }
.notizia { position: relative; display: block; background: var(--scuro-2); color: #fff; overflow: hidden; }
.notizia img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.notizia span { position: absolute; left: 0; right: 0; bottom: 0; display: block; padding: 80px 24px 34px; background: linear-gradient(transparent, rgba(0, 0, 0, .78)); }
.notizia strong { display: block; max-width: 410px; font: 800 24px/32px var(--sans); text-transform: uppercase; }
.notizia em { display: block; max-width: 374px; margin-top: 4px; font: 400 14px/20px var(--sans); }
.dati { position: relative; margin: 0 24px; padding-top: 81px; }
.dati::before { content: ""; position: absolute; left: 0; right: 0; top: 56px; border-top: 1px solid #BABABA; }
.dati h3 { font: 800 10px/10px var(--sans); letter-spacing: 2px; text-transform: uppercase; }
.dati dl { height: 579px; margin-top: 8px; padding: 80px 64px; background: #333 url("../img/nuvole.svg") center / cover; color: #fff; font: 700 24px/24px var(--sans); letter-spacing: 4.8px; text-transform: uppercase; }
.dati dl div { display: flex; margin-top: 16px; }
.dati dl div:first-child { margin-top: 0; }
.dati dt { order: 2; }
.dati dd { flex: 0 0 140px; }
.dati .intera dt { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.dati .intera dd { flex: 1; }

/* Invito: 340 px */
.invito { display: grid; grid-template-columns: 610fr 830fr; margin-top: 81px; height: 340px; background: linear-gradient(90deg, transparent 24%, var(--scuro) 40%), url("../img/banner-mobile.svg") left center / 42% auto no-repeat, var(--scuro); color: #fff; }
.sigillo { align-self: center; justify-self: center; display: flex; align-items: center; justify-content: center; width: 96px; height: 96px; margin-right: 24px; border-radius: 10px; background: #2C2C2C; font: 600 38px/1 var(--serif); box-shadow: 0 8px 24px rgba(0, 0, 0, .5); }
.invito > div { padding-top: 63px; max-width: 730px; }
.invito h2 { font: 400 30px/43px var(--serif); }
.invito p { margin-top: 25px; min-height: 48px; max-width: 730px; color: #BABABA; }
.invito .pulsante { margin-top: 40px; }

/* Piede: 1088 px */
.piede { position: relative; min-height: 1088px; padding: 158px 40px 40px; background: var(--scuro); color: #fff; }
.su { position: absolute; right: 40px; top: 24px; width: 54px; height: 54px; border: 1px solid #fff; border-radius: 50%; display: flex; align-items: center; justify-content: center; }
.su svg { transition: transform .3s ease; }
.su:hover svg { transform: scale(1.1) translateY(-2px); }
.piede .marchio { align-items: flex-start; justify-content: center; height: 59px; }
.piede .marchio small { color: #fff; font-size: 11px; line-height: 12px; letter-spacing: 7px; }
.piede .marchio strong { font-size: 27px; line-height: 32px; }
.colonne { display: grid; grid-template-columns: 344fr 440fr 464fr 112fr; min-height: 594px; margin-top: 80px; }
.colonna button, .seguici > span { display: block; font: 400 24px/32px var(--serif); color: #7E7E7E; cursor: default; }
.colonna ul { margin-top: 42px; }
.colonna li { height: 40px; }
.piede a:not(.su) { text-decoration: underline 1px transparent; text-underline-offset: 3px; transition: text-decoration-color .3s ease; }
.piede a:not(.su):hover { text-decoration-color: currentColor; }
.seguici p { display: flex; gap: 16px; margin-top: 42px; }
.legali { display: flex; flex-wrap: wrap; gap: 8px 24px; padding: 40px 0; border-block: 1px solid #333; font-size: 12px; color: #7E7E7E; }
.alcol { max-width: 680px; margin-top: 31px; font-size: 12px; line-height: 20px; font-weight: 700; color: #7E7E7E; }

/* Menu mobile: pannello 374 px, entra da sinistra in 0,3 s */
.velo { position: fixed; inset: 0; z-index: 15; background: rgba(0, 0, 0, .4); }
.menu { position: fixed; top: 0; bottom: 0; left: 0; z-index: 20; width: min(374px, 96vw); display: flex; flex-direction: column; overflow-y: auto; background: #fff; transform: translateX(-100%); visibility: hidden; transition: transform .3s ease-in, visibility 0s linear .3s; }
.menu.aperto { transform: translateX(0); visibility: visible; transition: transform .3s ease-out; }
.menu-testa { position: relative; flex: 0 0 53px; display: flex; align-items: center; justify-content: center; border-bottom: 1px solid var(--bordo); }
.chiudi-menu { position: absolute; left: 4px; top: 4px; }
.menu-cerca { display: flex; align-items: center; gap: 20px; margin: 0 16px; height: 73px; border-bottom: 1px solid var(--bordo); }
.menu-cerca input { flex: 1; min-width: 0; border: 0; font: 400 16px/24px var(--sans); }
.menu nav a { display: flex; align-items: center; height: 81px; margin: 0 16px; border-bottom: 1px solid var(--bordo); font-size: 24px; }
.menu-lingua { margin-top: auto; padding: 24px; font-size: 12px; }

/* ---------- Mobile e tablet ---------- */
@media (max-width: 991.98px) {
  html { scroll-padding-top: 66px; }
  .solo-desktop { display: none !important; }
  .solo-mobile { display: flex !important; }
  .testata { height: 54px; }
  .apri-menu { position: absolute; left: 4px; top: 4px; }
  .testata > .marchio { top: 11px; }
  .strumenti { right: 4px; top: 4px; }

  .hero { height: auto; background: var(--avorio); }
  .hero img { height: 550px; }
  .hero-testo { position: static; width: auto; align-items: center; text-align: center; padding: 40px 16px; min-height: 335px; color: #000; }
  .hero .occhiello { color: var(--accento); }
  .hero h1 { font-size: 30px; line-height: 43px; letter-spacing: 0; }
  .hero .sotto { line-height: 28px; min-height: 56px; }

  .banner { height: auto; margin-top: 40px; max-width: none; }
  .banner img { position: static; height: 545px; }
  .banner-testo { position: static; padding: 40px 16px; }
  .banner h2 { font-size: 28px; line-height: 40px; }
  .banner .guida { width: auto; min-height: 112px; line-height: 28px; }
  .banner .nota { width: auto; min-height: 60px; font-size: 14px; line-height: 20px; }

  .coppia { grid-template-columns: minmax(0, 1fr); row-gap: 50px; margin-top: 80px; padding: 0 16px; }
  .coppia h2 { margin-top: 40px; font-size: 28px; line-height: 40px; }
  .coppia .sotto { line-height: 28px; }
  .coppia .nota { min-height: 40px; font-size: 14px; line-height: 20px; }
  .coppia article + article .sotto { min-height: 56px; }

  .storia { display: flex; flex-direction: column; align-items: center; margin-top: 80px; min-height: 0; padding: 40px 16px; }
  .storia img { width: min(310px, 100%); }
  .storia > div { padding-top: 40px; }
  .storia h2 { font-size: 28px; line-height: 40px; }
  .storia h2, .storia .nota { margin-top: 32px; }
  .storia h2 + .nota { margin-top: 16px; }
  .storia .nota { min-height: 100px; font-size: 14px; line-height: 20px; }

  .gamma-testa { padding: 0 16px; height: 80px; }
  .gamma .titoletto { max-width: 254px; }
  .nastro { padding: 0 16px; scroll-padding-inline: 16px; }
  .nastro li { flex-basis: 270px; }
  .scheda { height: 377px; }
  .scheda img { width: 125px; height: 221px; }
  .scheda h3 { font-size: 16px; line-height: 24px; }

  .citazione { margin-top: 80px; padding: 0 16px; }
  .citazione blockquote { min-height: 400px; font-size: 28px; line-height: 40px; }
  .citazione figcaption { min-height: 40px; font-size: 14px; line-height: 20px; }

  .territorio { display: block; margin-top: 80px; padding: 0 16px; }
  .territorio > .titoletto { margin-bottom: 16px; }
  .notizia { height: 393px; }
  .notizia span { padding: 80px 16px 18px; }
  .notizia strong { font-size: 16px; line-height: 28px; letter-spacing: 1.6px; }
  .dati { margin: 40px 0 0; padding: 0; }
  .dati::before { display: none; }
  .dati dl { height: auto; min-height: 192px; padding: 36px 24px 20px 40px; font-size: 16px; line-height: 19px; letter-spacing: 3.2px; }
  .dati dl div { margin-top: 4px; }
  .dati dd { flex-basis: 100px; }

  .invito { display: flex; flex-direction: column; align-items: center; height: auto; min-height: 532px; margin-top: 40px; padding: 53px 32px 40px; background: var(--scuro); text-align: center; }
  .sigillo { width: 80px; height: 80px; margin: 0; }
  .invito > div { padding-top: 77px; }
  .invito h2 { font-size: 24px; line-height: 32px; }
  .invito p { margin-top: 24px; min-height: 96px; }

  .piede { min-height: 1028px; padding: 150px 16px 40px; text-align: center; }
  .su { right: 16px; }
  .piede .marchio { align-items: center; }
  .colonne { display: block; min-height: 0; margin-top: 40px; text-align: left; }
  .colonna { border-bottom: 1px solid #333; }
  .colonna button { display: flex; justify-content: space-between; align-items: center; width: 100%; height: 72px; cursor: pointer; }
  .colonna button::after { content: "+"; font: 400 20px/1 var(--sans); transition: transform .4s ease; }
  .colonna button[aria-expanded="true"]::after { transform: rotate(45deg); }
  .colonna ul { margin: 0; max-height: 0; overflow: hidden; opacity: 0; visibility: hidden; transform: translateY(-8px); transition: max-height .4s ease, opacity .2s ease, transform .4s ease, visibility 0s linear .4s; }
  .colonna button[aria-expanded="true"] + ul { max-height: 400px; opacity: 1; visibility: visible; transform: translateY(0); transition: max-height .4s ease, opacity .2s ease, transform .4s ease; }
  .seguici { padding: 32px 0; text-align: center; }
  .seguici p { justify-content: center; gap: 24px; margin-top: 16px; }
  .legali { flex-direction: column; align-items: center; gap: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  html, .nastro { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; transition-delay: 0s !important; }
}

@media (min-width: 992px) {
  .strumenti { gap: 18px; }
  .strumenti .separato { padding-left: 24px; border-left: 1px solid #BABABA; }
}
@media (min-width: 992px) and (max-width: 1279.98px) {
  .dati dl { padding: 48px 24px; font-size: 16px; letter-spacing: 3.2px; }
  .dati dd { flex-basis: 96px; }
}
