/* FONTS (variable) */
@font-face {
  font-family: "Inter";
  src: url("../fonts/Inter.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Kalnia";
  src: url("../fonts/Kalnia.woff2") format("woff2");
  font-weight: 100 700;
  font-stretch: 100% 125%;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Luxurious Script";
  src: url("../fonts/LuxuriousScript-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* TOKENS */
:root {
  --red: #721011;
  --red-deep: #5f0809;
  --red-dark: #630001;
  --red-soft: rgba(114, 16, 17, 0.7);
  --ink: #310001;
  --brown: #4e2b11;
  --paper: #f4f3ef;
  --sand: #e8dcc6;
  --line: #d4d4d8;

  --font-sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-serif: "Kalnia", Georgia, "Times New Roman", serif;
  --font-script: "Luxurious Script", "Brush Script MT", cursive;

  --pad-x: 6.25%;
  --radius: 10px;
  --nav-h: 96px;
  --ease: cubic-bezier(.22, .61, .36, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
}

/* RESET */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-padding-top: 88px;
  -webkit-text-size-adjust: 100%;
  /* spazio della scrollbar sempre riservato: aprire un popup/drawer non sposta la pagina */
  scrollbar-gutter: stable;
}

html.is-locked { overflow: hidden; }

/* SCROLLBAR CUSTOM: sottile, a pillola, senza frecce sopra/sotto */
:root {
  --sb-thumb: rgba(114, 16, 17, 0.34);
  --sb-thumb-hover: rgba(114, 16, 17, 0.58);
}

@supports selector(::-webkit-scrollbar) {
  ::-webkit-scrollbar { width: 12px; height: 12px; }
  ::-webkit-scrollbar-button { display: none; width: 0; height: 0; }
  ::-webkit-scrollbar-corner { background: transparent; }
  ::-webkit-scrollbar-track { background: transparent; }
  html::-webkit-scrollbar-track { background: var(--paper); }

  ::-webkit-scrollbar-thumb {
    min-height: 48px;
    min-width: 48px;
    border: 3px solid transparent;
    border-radius: 9999px;
    background: var(--sb-thumb);
    background-clip: padding-box;
  }

  ::-webkit-scrollbar-thumb:hover,
  ::-webkit-scrollbar-thumb:active { background: var(--sb-thumb-hover); background-clip: padding-box; }
}

@supports not selector(::-webkit-scrollbar) {
  * { scrollbar-width: thin; scrollbar-color: var(--sb-thumb) transparent; }
}

body {
  background: var(--paper);
  font-family: var(--font-sans);
  color: var(--ink);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img, svg, video { display: block; max-width: 100%; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
a { color: inherit; }

:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; }

[hidden] { display: none !important; }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* ICON: box rosso con freccia */
.arrow-box {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
}

/* NAV */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: var(--nav-h);
  padding: 18px 48px;
  transition: background-color .3s ease, box-shadow .3s ease, min-height .3s ease;
}

.nav { pointer-events: none; }
.nav-logo,
.nav-toggle,
.nav-links { pointer-events: auto; }

.nav.is-scrolled {
  min-height: 72px;
  background: rgba(255, 255, 255, 0.92);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  box-shadow: 0 1px 12px rgba(0, 0, 0, 0.08);
}

.nav-logo {
  position: absolute;
  left: 48px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
}

.nav-logo .logo-mark {
  --logo-h: 60px;
  transition: height .3s ease;
}

.nav-logo img { transition: filter .3s ease; }

/* Logo: ritaglio dei soli grappoli dal PNG originale (ha molto margine trasparente) */
.logo-mark {
  position: relative;
  display: block;
  flex-shrink: 0;
  height: var(--logo-h, 60px);
  aspect-ratio: 345 / 471;
  overflow: hidden;
}

.logo-mark img {
  position: absolute;
  top: -97.66%;
  left: -102.61%;
  width: 296.81%;
  max-width: none;
  height: auto;
}

/* logo bianco → bordeaux quando la nav ha sfondo chiaro */
.nav.is-scrolled .nav-logo .logo-mark,
.nav.is-open .nav-logo .logo-mark { --logo-h: 46px; }

.nav.is-scrolled .nav-logo img,
.nav.is-open .nav-logo img {
  filter: brightness(0) saturate(100%) invert(22%) sepia(40%) saturate(5515%) hue-rotate(345deg) brightness(47%) contrast(102%);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 48px;
  list-style: none;
}

.nav-links a {
  font-size: 16px;
  color: var(--brown);
  text-decoration: none;
  transition: opacity .2s, color .3s;
}

.nav-links a:hover { opacity: .7; }

.nav-links a.active {
  text-decoration: underline;
  text-decoration-color: currentColor;
  text-underline-offset: 4px;
  text-shadow: 0 5px 5px rgba(114, 16, 17, 0.25);
}

/* variante per pagine con hero bordeaux (shop) */
.nav--inverse .nav-links a { color: rgba(255, 255, 255, 0.85); }
.nav--inverse .nav-links a.active { color: #fff; text-shadow: 0 4px 4px rgba(255, 255, 255, 0.2); }
.nav--inverse.is-scrolled .nav-links a { color: var(--brown); }
.nav--inverse.is-scrolled .nav-links a.active { text-shadow: 0 5px 5px rgba(114, 16, 17, 0.25); }

.nav-toggle {
  display: none;
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 8px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: transform .3s ease, opacity .3s ease, background-color .3s ease;
}

.nav.is-scrolled .nav-toggle span,
.nav.is-open .nav-toggle span { background: var(--red); }

.nav.is-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav.is-open .nav-toggle span:nth-child(2) { opacity: 0; }
.nav.is-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* BUTTONS */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: fit-content;
  height: 36px;
  padding: 0 22px;
  border-radius: 9999px;
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 12px;
  line-height: 1;
  white-space: nowrap;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
  transition:
    background-color .3s var(--ease-out),
    border-color .3s var(--ease-out),
    color .3s var(--ease-out),
    transform .25s var(--ease-out);
  -webkit-tap-highlight-color: transparent;
}

.btn:active { transform: scale(.965); }

.btn-icon {
  flex-shrink: 0;
  width: 14px;
  height: 14px;
  transition: transform .45s var(--ease-out);
}

.icon-down { transform: rotate(90deg); }

/* freccia che "scivola" in avanti all'hover */
.btn:hover .btn-icon,
.pill-btn:hover .btn-icon,
.bar-btn:hover .btn-icon,
.square-btn:hover .btn-icon { transform: translateX(3px); }

.btn:hover .icon-down,
.pill-btn:hover .icon-down,
.bar-btn:hover .icon-down { transform: rotate(90deg) translateX(3px); }

.btn-light {
  background: #fff;
  color: #000;
  border-color: #e7e5e4;
  box-shadow: 0 8px 2px rgba(58, 58, 58, 0.25);
}

.btn-light:hover { background: #efece7; border-color: #d6d3d1; }

.btn-dark {
  background: #1c1917;
  color: #fff;
  border-color: #3c3c3c;
  box-shadow: 0 8px 4px rgba(58, 58, 58, 0.25);
}

.btn-dark:hover { background: #34302d; }

.btn-red {
  background: var(--red);
  color: #fff;
  border-color: #979797;
}

.btn-red:hover { background: var(--red-deep); border-color: var(--red-deep); }

/* stato di invio in corso */
.btn.is-loading { pointer-events: none; color: transparent; }
.btn.is-loading::after {
  content: "";
  position: absolute;
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255, 255, 255, .45);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin .7s linear infinite;
}
.btn.is-loading .btn-icon { opacity: 0; }

@keyframes spin { to { transform: rotate(360deg); } }

/* PAGINA: entrata/uscita e rivelazioni */
.js body { opacity: 0; transition: opacity .5s var(--ease); }
.js.is-loaded body { opacity: 1; }
.js.is-leaving body { opacity: 0; transition-duration: .26s; }

.js [data-reveal] {
  opacity: 0;
  transform: translateY(26px);
}

.js [data-reveal].is-in {
  opacity: 1;
  transform: none;
  transition:
    opacity .9s var(--ease-out) var(--reveal-delay, 0ms),
    transform .9s var(--ease-out) var(--reveal-delay, 0ms);
}

/* HERO */
.hero {
  position: relative;
  height: clamp(560px, 54.6vw, 943px);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #2b2a24;
}

.hero--rounded { border-radius: 0 0 var(--radius) var(--radius); }
.hero--gradient { background: linear-gradient(to bottom, var(--red), #a02d2e); }

.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
  padding: 0 20px;
  text-align: center;
}

.hero-title {
  font-family: var(--font-script);
  font-weight: 400;
  font-size: clamp(64px, 11.5vw, 200px);
  line-height: 1;
  white-space: nowrap;
  color: #fff;
  text-shadow: 0 2px 40px rgba(0, 0, 0, 0.4);
}

/* le maiuscole corsive (S, E) hanno uno svolazzo a sinistra che "mangia" lo spazio:
   compensazione ottica per avere lo stesso respiro di "Tenuta Vinèl" */
.hero-title--swash { word-spacing: .07em; }

/* entrata della hero (identica su tutte le pagine) */
.js .hero-title,
.js .hero-ctas {
  opacity: 0;
  transform: translateY(22px);
}

.js .hero .hero-bg { transform: scale(1.06); }

.hero.is-ready .hero-title,
.hero.is-ready .hero-ctas {
  opacity: 1;
  transform: none;
  transition: opacity 1.1s var(--ease-out), transform 1.1s var(--ease-out);
}

.hero.is-ready .hero-ctas { transition-delay: .25s; }

.hero.is-ready .hero-bg {
  transform: none;
  transition: transform 2.2s var(--ease-out);
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
}

/* CTA della hero */
.hero-ctas .btn {
  height: 54px;
  padding: 0 34px;
  gap: 12px;
  font-size: 16px;
  letter-spacing: -0.01em;
}

.hero-ctas .btn-icon { width: 18px; height: 18px; }

/* SECTIONS */
.main-content { background: var(--paper); }

.section { padding: 80px var(--pad-x); }

.section-header {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-bottom: 48px;
}

.section-marker {
  flex-shrink: 0;
  width: 13px;
  height: 55px;
  background: var(--red-soft);
}

.section-title {
  font-family: var(--font-serif);
  font-weight: 400;
  font-stretch: 100%;
  font-size: clamp(36px, 3.7vw, 64px);
  line-height: 1.1;
  color: var(--red);
}

/* Freccia accanto ai titoli: box bianco con bordo e box rosso */
.title-link {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  margin-top: 0.45em;
  border-radius: 6px;
  background: #fff;
  border: 1px solid #dadada;
  transition: border-color .25s ease, background-color .25s ease;
}

.title-link:hover { border-color: var(--red-soft); background: #f7f4f3; }
.title-link:hover .arrow-box { --ab-bg: var(--red-dark); }

.marker-short {
  flex-shrink: 0;
  width: 13px;
  height: 22px;
  background: var(--red-soft);
}

/* MEDIA */
.media {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  background: #d9d3c7;
}

.media > img,
.media > video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.media--tall { aspect-ratio: 1073 / 650; }
.media--pair { aspect-ratio: 519 / 505; }
.media--wide { aspect-ratio: 1512 / 666; margin-bottom: 40px; }
/* video della storia: formato 16:9 come il file */
.media--video { aspect-ratio: 16 / 9; }

/* Badge: testo + box freccia con spaziatura uguale sopra/sotto/destra */
.badge {
  position: absolute;
  top: 24px;
  left: 24px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  max-width: calc(100% - 96px);
  height: 28px;
  padding: 0 5px 0 8px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.35);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
}

.badge span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 500;
  font-size: 14px;
  line-height: 1;
  letter-spacing: -0.04em;
  color: #fff;
}

.badge--br { top: auto; left: auto; right: 24px; bottom: 24px; }

/* Box freccia grande (foto laboratorio) */
.glass-arrow {
  position: absolute;
  top: 24px;
  left: 24px;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 4px;
  color: #fff;
  background: rgba(255, 255, 255, 0.3);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  transition: background-color .25s ease;
}

.glass-arrow svg { width: 20px; height: 20px; }
.glass-arrow:hover { background: rgba(255, 255, 255, 0.45); }

/* Play video: cerchio di vetro bianco con triangolo arrotondato */
.play-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 3;
  display: block;
  width: 7.8%;
  min-width: 56px;
  max-width: 84px;
  aspect-ratio: 1 / 1;
  padding: 0;
  translate: -50% -50%;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  -webkit-backdrop-filter: blur(5px);
  backdrop-filter: blur(5px);
  transition: opacity .35s var(--ease), transform .35s var(--ease), background-color .25s ease;
}

.play-btn svg { display: block; width: 100%; height: 100%; }
.play-btn:hover { background: rgba(255, 255, 255, 0.5); }

.media.is-playing .play-btn {
  opacity: 0;
  transform: scale(.85);
  pointer-events: none;
}

.media.is-playing > video { cursor: pointer; }

/* Strumenti del video: ingrandisci e volume */
.media-tools {
  position: absolute;
  top: 24px;
  right: 24px;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 2px;
}

.tool-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border-radius: 50%;
  color: #3d3d3d;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: transform .25s var(--ease-out), background-color .25s ease;
}

.tool-btn--light { color: #fff; }
.tool-btn:hover { background: rgba(255, 255, 255, 0.22); }
.tool-btn:active { transform: scale(.92); }
.tool-btn:focus-visible { outline: 2px solid currentColor; outline-offset: -2px; }
.tool-btn svg { width: 28px; height: 28px; overflow: visible; }

/* Ingrandisci */
.expand-icon {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: .55;
  transition: opacity .3s ease, transform .35s var(--ease-out);
}

.expand-btn:hover .expand-icon { opacity: 1; transform: scale(1.08); transform-origin: 12px 12px; }

/* Volume (muto / attivo) */
.vol-body {
  fill: currentColor;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linejoin: round;
  opacity: .42;
  transition: opacity .35s ease, transform .4s var(--ease-out);
}

.vol-slash,
.vol-cut,
.vol-waves {
  fill: none;
  stroke-linecap: round;
  transition: stroke-dashoffset .35s var(--ease);
}

.vol-slash { stroke: currentColor; stroke-width: 2.2; stroke-dasharray: 23; stroke-dashoffset: 0; }
.vol-cut { stroke: #000; stroke-width: 4.8; stroke-dasharray: 23; stroke-dashoffset: 0; }
.vol-waves { stroke: currentColor; stroke-width: 1.9; stroke-dasharray: 14; stroke-dashoffset: 14; }

.volume-btn.is-on .vol-body { opacity: 1; transform: translateX(-3px); }
.volume-btn.is-on .vol-slash,
.volume-btn.is-on .vol-cut { stroke-dashoffset: 23; }
.volume-btn.is-on .vol-waves { stroke-dashoffset: 0; transition-delay: .15s; }

/* Visore video a schermo quasi intero */
.video-lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3vh 3vw;
  background: rgba(14, 10, 9, 0.9);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  opacity: 0;
  visibility: hidden;
  transition: opacity .35s var(--ease), visibility 0s linear .35s;
}

.video-lightbox.is-open {
  opacity: 1;
  visibility: visible;
  transition: opacity .35s var(--ease), visibility 0s;
}

.video-lightbox__stage {
  width: min(94vw, calc(94vh * 16 / 9));
  aspect-ratio: 16 / 9;
  border-radius: var(--radius);
  overflow: hidden;
  background: #000;
  transform: scale(.96);
  transition: transform .45s var(--ease-out);
}

.video-lightbox.is-open .video-lightbox__stage { transform: none; }

.video-lightbox__stage video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #000;
}

.video-lightbox__close {
  position: absolute;
  top: max(14px, 2.2vh);
  right: max(14px, 2.2vw);
  width: 48px;
  height: 48px;
  color: #fff;
}

.video-lightbox__close svg { width: 24px; height: 24px; }

/* DROPDOWN (stesso design del filtro dello shop) */
.dd { position: relative; display: inline-block; }

.dd-native {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  pointer-events: none;
}

.dd-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  height: 35px;
  padding: 0 14px 0 18px;
  border: 1px solid #e7e5e4;
  border-radius: 9999px;
  background: #fff;
  box-shadow: 0 4px 4px rgba(175, 175, 175, 0.25);
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 13px;
  line-height: 1;
  white-space: nowrap;
  color: #000;
  cursor: pointer;
  transition: border-color .3s var(--ease-out), background-color .3s var(--ease-out), transform .2s var(--ease-out);
}

.dd-toggle:hover { border-color: #cfcac8; background: #faf9f8; }
.dd-toggle:active { transform: scale(.97); }
.dd.is-open .dd-toggle { border-color: #cfcac8; }

.dd-chevron {
  flex-shrink: 0;
  width: 10px;
  height: 6px;
  color: rgba(0, 0, 0, 0.7);
  transition: transform .35s var(--ease-out);
}

.dd.is-open .dd-chevron { transform: rotate(180deg); }

.dd-panel {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  z-index: 60;
  min-width: 100%;
  max-height: 268px;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 6px;
  border: 1px solid #e7e5e4;
  border-radius: 23px;
  background: #fff;
  box-shadow: 0 14px 34px rgba(49, 0, 1, 0.1), 0 2px 6px rgba(0, 0, 0, 0.04);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px) scale(.98);
  transform-origin: top center;
  transition: opacity .22s ease, transform .3s var(--ease-out), visibility 0s linear .3s;
}

/* il pannello si apre verso l'alto quando sotto non c'è spazio */
.dd.is-up .dd-panel {
  top: auto;
  bottom: calc(100% + 6px);
  transform-origin: bottom center;
  transform: translateY(6px) scale(.98);
}

.dd.is-open.is-up .dd-panel { transform: none; }

/* scrollbar del popup: dentro la forma arrotondata, lontana dagli angoli */
.dd-panel::-webkit-scrollbar { width: 14px; }
.dd-panel::-webkit-scrollbar-track { margin: 12px 0; }
.dd-panel::-webkit-scrollbar-thumb { border-width: 4px; }

/* il toggle ha sempre la larghezza dell'opzione più lunga, così gli elementi vicini non si spostano */
.dd-label { display: inline-grid; text-align: left; }
.dd-label > * { grid-area: 1 / 1; }
.dd-ghost { visibility: hidden; height: 0; overflow: hidden; pointer-events: none; }

.dd.is-open .dd-panel {
  opacity: 1;
  visibility: visible;
  transform: none;
  transition-delay: 0s;
}

.dd-option {
  display: block;
  width: 100%;
  padding: 8px 14px;
  border-radius: 9999px;
  text-align: left;
  font-size: 14px;
  line-height: 1.15;
  white-space: nowrap;
  color: #6b6b6b;
  transition: background-color .2s ease, color .2s ease;
}

.dd-option + .dd-option { margin-top: 2px; }
.dd-option:hover,
.dd-option:focus-visible { background: #f4f4f3; color: #000; outline: none; }
.dd-option[aria-selected="true"] { background: #ececec; color: #000; }
.dd-option:disabled { color: #cbcbcb; background: none; cursor: default; }

.form-field.is-invalid .dd-toggle { border-color: #c0392b; }

/* CONFERMA INVIO (form → messaggio) */
.form-body { display: flex; flex-direction: column; gap: 16px; }
.form-success { overflow: hidden; }

.success {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding: 28px 8px;
  text-align: center;
}

.success-icon {
  display: grid;
  place-items: center;
  width: 68px;
  height: 68px;
  border-radius: 50%;
  background: var(--red);
  color: #fff;
  box-shadow: 0 12px 30px rgba(114, 16, 17, 0.28);
}

.success-icon svg { width: 30px; height: 30px; stroke-dasharray: 16; stroke-dashoffset: 0; }

.success-title {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(30px, 2.6vw, 44px);
  line-height: 1.1;
  color: var(--red);
}

.success-text { max-width: 46ch; font-size: 15px; line-height: 1.6; color: var(--ink); }
.success-text strong { font-weight: 600; }

.success-summary {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin: 4px 0 8px;
}

.success-summary > div {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 118px;
  padding: 12px 16px;
  border: 1px solid #e7e5e4;
  border-radius: var(--radius);
  background: #fff;
  box-shadow: 0 4px 4px rgba(175, 175, 175, 0.18);
}

.success-summary dt { font-size: 11px; letter-spacing: .04em; text-transform: uppercase; color: rgba(49, 0, 1, 0.55); }
.success-summary dd { font-family: var(--font-serif); font-size: 18px; color: var(--red); }

.success.is-shown > * { animation: success-in .7s var(--ease-out) both; }
.success.is-shown > *:nth-child(2) { animation-delay: .08s; }
.success.is-shown > *:nth-child(3) { animation-delay: .16s; }
.success.is-shown > *:nth-child(4) { animation-delay: .24s; }
.success.is-shown > *:nth-child(5) { animation-delay: .32s; }
.success.is-shown .success-icon { animation-name: success-pop; }
.success.is-shown .success-icon svg { animation: check-draw .6s var(--ease-out) .3s both; }

@keyframes success-in { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes success-pop { 0% { opacity: 0; transform: scale(.4); } 70% { opacity: 1; transform: scale(1.08); } 100% { transform: scale(1); } }
@keyframes check-draw { from { stroke-dashoffset: 16; } to { stroke-dashoffset: 0; } }

/* PILLOLE / NUMERI / LISTE (Storia, Esperienza) */
.num-circle,
.pill-title {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  height: 52px;
  border: 1px solid #e7e5e4;
  border-radius: 9999px;
  background: #fff;
  box-shadow: 0 4px 4px rgba(175, 175, 175, 0.25);
  font-family: var(--font-serif);
  font-weight: 500;
  line-height: 1;
  white-space: nowrap;
  color: var(--red);
}

.num-circle { width: 52px; font-size: 30px; }
.pill-title { padding: 0 26px; font-size: clamp(22px, 1.75vw, 30px); }

.pill-title--red {
  border-color: var(--red);
  background: var(--red);
  color: #fff;
}

.check-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.check-list li,
.check-text {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 14px;
  line-height: 1.45;
  letter-spacing: -0.01em;
  color: #71717b;
}

.check-icon { flex-shrink: 0; width: 9px; height: 9px; margin-top: 6px; }

.dash-h {
  flex: 1;
  height: 2px;
  background: repeating-linear-gradient(to right, #b9b9b9 0 4px, transparent 4px 8px);
}

/* TEXT BLOCKS */
.text-block { display: flex; flex-direction: column; gap: 16px; }

.block-title {
  display: flex;
  align-items: center;
  gap: 16px;
  font-weight: 600;
  font-size: clamp(20px, 1.4vw, 24px);
  line-height: 1.2;
  color: var(--red);
}

.block-text {
  font-size: 16px;
  line-height: 1.45;
  color: var(--ink);
  max-width: 34ch;
}

.block-text--wide { max-width: 60ch; }
.block-text--narrow { max-width: 46ch; }

/* VINI */
#vini { padding-bottom: 60px; }

.vini-grid {
  display: grid;
  grid-template-columns: 1fr 1.105fr 1fr;
  gap: clamp(24px, 4.4vw, 76px);
  align-items: center;
  margin-bottom: 40px;
}

.vini-card {
  position: relative;
  aspect-ratio: 1 / 1;
  border-radius: var(--radius);
  overflow: hidden;
  background: #d9d3c7;
}

.vini-card > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .6s ease;
}

.vini-card:hover > img { transform: scale(1.03); }

.vini-text {
  max-width: 80ch;
  margin-top: 40px;
  font-size: 16px;
  line-height: 1.35;
}

/* SPLIT LAYOUT (Storia / Cantine) */
.split-layout {
  display: grid;
  grid-template-columns: minmax(0, 71fr) minmax(0, 20fr);
  gap: clamp(32px, 7vw, 130px);
  align-items: start;
}

.side-col {
  display: flex;
  flex-direction: column;
  gap: 56px;
  padding-top: 32px;
}

.side-col--spread { gap: 64px; }

.cantine-media { display: flex; flex-direction: column; gap: 24px; }

.pair-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

/* FEATURE CARD (Experience / Territorio) */
.feature-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 48px;
  padding: 34px;
  border: 1px solid #c3c3c3;
  border-radius: var(--radius);
  background: linear-gradient(67deg, var(--paper) 1%, var(--sand) 110%);
}

.feature-card-text {
  display: flex;
  flex-direction: column;
  gap: 56px;
}

.feature-card-cta { margin-top: auto; }

.feature-card-media { display: flex; flex-direction: column; gap: 20px; }

.feature-card-img {
  aspect-ratio: 755 / 481;
  border-radius: 6px;
  overflow: hidden;
}

.feature-card-img--tall { aspect-ratio: 755 / 537; }
.feature-card-img img { width: 100%; height: 100%; object-fit: cover; }

.bar-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 34px;
  border-radius: 4px;
  background: var(--red-soft);
  color: #fff;
  transition: background-color .35s var(--ease-out), transform .25s var(--ease-out);
}

.bar-btn:hover { background: var(--red); }
.bar-btn:active { transform: scale(.985); }
.bar-btn .btn-icon { width: 16px; height: 16px; }

.square-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 4px;
  background: var(--red-soft);
  color: #fff;
  transition: background-color .35s var(--ease-out), transform .25s var(--ease-out);
}

.square-btn:hover { background: var(--red); }
.square-btn:active { transform: scale(.95); }
.square-btn .btn-icon { width: 18px; height: 18px; }

.vendemmia-head {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-bottom: -16px;
}

.vendemmia-num {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: #fff;
  border: 1px solid #e7e5e4;
  box-shadow: 0 4px 4px rgba(175, 175, 175, 0.25);
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: 32px;
  line-height: 1;
  color: var(--red);
}

.vendemmia-title {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(28px, 2.8vw, 48px);
  line-height: 1.1;
  color: var(--red);
}

/* CENTER SECTIONS (FAQ / Contact) */
.center-section {
  padding: 100px var(--pad-x) 80px;
  text-align: center;
}

.center-title {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(40px, 3.7vw, 64px);
  line-height: 1;
  color: var(--red);
}

/* Titolo centrato con barra allineata a sinistra del titolo */
.center-head {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  width: fit-content;
  max-width: 100%;
  margin: 0 auto 72px;
}

.center-divider {
  display: block;
  max-width: 100%;
  height: 13px;
  margin-top: 10px;
  background: var(--red-soft);
}

.center-divider--sm { width: 88px; }
.center-divider--lg { width: 208px; }
.center-divider--md { width: 248px; }
.center-divider--xl { width: 289px; }
.center-divider--wide { width: 682px; }

/* FAQ */
.faq-list {
  width: min(100%, max(50%, 560px));
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
  text-align: left;
}

.faq-item {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(83deg, var(--paper) 0.4%, rgba(232, 220, 198, 0.8) 242%);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
  overflow: hidden;
  scroll-margin-top: 120px;
}

.faq-question {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 60px;
  padding: 14px 26px 14px 20px;
  cursor: pointer;
  font-size: 14px;
  letter-spacing: -0.02em;
  color: rgba(49, 0, 1, 0.7);
  user-select: none;
}

.faq-question::-webkit-details-marker { display: none; }
.faq-question::marker { content: ""; }

.faq-caret {
  flex-shrink: 0;
  width: 12px;
  height: 8px;
  transition: transform .3s var(--ease);
}

.faq-item[open] .faq-caret { transform: rotate(180deg); }

.faq-answer a { color: var(--red); text-underline-offset: 2px; }

.faq-answer {
  overflow: hidden;
  padding: 0 26px 20px 20px;
  font-size: 14px;
  line-height: 1.6;
  color: rgba(49, 0, 1, 0.8);
}

/* Contact */
.contact-form {
  width: min(100%, max(50%, 560px));
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
  text-align: left;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.form-label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
  font-size: 14px;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.form-optional { font-weight: 400; color: rgba(49, 0, 1, 0.55); }

.form-input,
.form-textarea {
  width: 100%;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
  font-family: var(--font-sans);
  font-size: 14px;
  letter-spacing: -0.02em;
  color: rgba(49, 0, 1, 0.85);
  outline: none;
  transition: border-color .2s, box-shadow .2s;
}

.form-input { height: 36px; padding: 0 12px; }

select.form-input {
  appearance: none;
  padding-right: 36px;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%23721011' stroke-width='1.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right 14px center / 10px 6px;
  cursor: pointer;
}

input[type="date"].form-input { cursor: pointer; }
input[type="date"].form-input::-webkit-calendar-picker-indicator { cursor: pointer; opacity: .6; }
.form-textarea { height: 159px; padding: 12px; resize: vertical; }

.form-input::placeholder,
.form-textarea::placeholder { color: rgba(113, 113, 123, 0.7); }

.form-input:focus,
.form-textarea:focus { border-color: var(--red); box-shadow: 0 0 0 3px rgba(114, 16, 17, .12); }

.form-field.is-invalid .form-input,
.form-field.is-invalid .form-textarea { border-color: #c0392b; }

.form-email-wrapper { position: relative; }
.form-email-wrapper .form-input { padding-right: 40px; }

.form-email-icon {
  position: absolute;
  right: 11px;
  top: 50%;
  width: 16px;
  height: 14px;
  transform: translateY(-50%);
  pointer-events: none;
}

.contact-submit {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 16px;
  margin-top: 8px;
}

.form-status { font-size: 13px; color: var(--ink); }
.form-status.is-error { color: #c0392b; }

/* FOOTER */
.footer { background: var(--red); color: #fff; }

.footer-main {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: 10.4% 26.2% repeat(4, 13.4%) 1fr;
  align-items: start;
  min-height: 576px;
  padding: 75px 0 64px;
}

.footer-glass {
  position: absolute;
  top: 107px;
  left: 30px;
  width: 420px;
  height: 630px;
  max-width: none;
  object-fit: contain;
  opacity: 0.2;
  pointer-events: none;
  user-select: none;
}

.footer-logo {
  position: relative;
  z-index: 1;
  grid-column: 2;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  width: fit-content;
  text-decoration: none;
}

.footer-logo .logo-mark { --logo-h: 40px; }

.footer-logo-name {
  font-family: var(--font-script);
  font-size: 42px;
  line-height: 1;
  color: #fff;
  transform: translateY(4px);
}

.footer-cols {
  position: relative;
  z-index: 1;
  grid-column: 3 / 7;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  row-gap: 40px;
  padding-top: 10px;
}

.footer-col { padding-right: 16px; }

.footer-col-title {
  margin-bottom: 8px;
  font-weight: 500;
  font-size: 14px;
  line-height: 20px;
  color: #fff;
}

.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-col a {
  font-size: 14px;
  line-height: 20px;
  color: #d6c8cd;
  text-decoration: none;
  overflow-wrap: anywhere;
  transition: color .2s;
}

.footer-col a:hover { color: #fff; }

.footer-bottom {
  display: flex;
  align-items: center;
  min-height: 109px;
  padding: 0 9.9%;
  background: var(--red-dark);
}

.footer-social { display: flex; gap: 16px; }
.footer-social a { display: inline-flex; color: #f1f1dd; opacity: .92; transition: opacity .2s; }
.footer-social a:hover { opacity: 1; }
.social-icon { width: 16px; height: 16px; }

/* CAROSELLI + FOOTER MOBILE (default desktop) */
.carousel-dots { display: none; }
.feature-card-img[data-carousel] > img:not(:first-child) { display: none; }
.footer-mobile { display: none; }
.carousel-dot {
  width: 6px;
  height: 6px;
  padding: 0;
  border-radius: 9999px;
  background: #c9c4c4;
  transition: width .35s var(--ease-out), background-color .35s var(--ease-out);
}
.carousel-dot.is-active { width: 18px; background: var(--red); }

/* RESPONSIVE */
@media (max-width: 1100px) {
  .split-layout { grid-template-columns: 1fr; }

  .side-col,
  .side-col--spread {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 40px;
    padding-top: 0;
  }

  .block-text { max-width: 60ch; }

  .feature-card { grid-template-columns: 1fr; }
  .feature-card-text { gap: 32px; }

  .footer-main {
    grid-template-columns: 6.25% 1fr 6.25%;
    row-gap: 48px;
    min-height: 0;
    padding: 64px 0 72px;
  }

  .footer-logo,
  .footer-cols { grid-column: 2; }

  .footer-cols { grid-template-columns: repeat(3, minmax(0, 1fr)); padding-top: 0; }

  .footer-glass { left: auto; right: -60px; top: 40px; width: 320px; height: 480px; }
  .footer-bottom { padding: 0 6.25%; }
}

@media (max-width: 768px) {
  :root { --pad-x: 5%; --nav-h: 72px; }

  .nav { justify-content: flex-start; padding: 12px 20px; }
  .nav-logo { position: static; transform: none; }
  .nav-logo .logo-mark { --logo-h: 46px; }
  .nav-toggle { display: flex; }

  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px 20px 16px;
    background: rgba(255, 255, 255, 0.97);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.08);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity .25s ease, transform .25s ease, visibility .25s;
  }

  .nav-links a,
  .nav--inverse .nav-links a,
  .nav--inverse .nav-links a.active { display: block; padding: 12px 0; color: var(--brown); text-shadow: none; }

  .nav.is-open { background: rgba(255, 255, 255, 0.97); }
  .nav.is-open .nav-links { opacity: 1; visibility: visible; transform: none; }

  /* HERO mobile: titolo su due righe, bottoni larghi in basso */
  .hero { height: 100svh; min-height: 600px; }

  .hero-content {
    position: absolute;
    inset: 0;
    justify-content: flex-end;
    gap: 12px;
    padding: 96px 44px 11svh;
  }

  .hero-title {
    margin: auto 0;
    font-size: clamp(76px, 24vw, 112px);
    line-height: .92;
    white-space: normal;
    word-spacing: 100vw;
  }

  .hero-title--long { font-size: clamp(64px, 19vw, 96px); }

  .hero-ctas {
    flex-direction: column;
    align-items: stretch;
    width: min(100%, 300px);
    gap: 14px;
  }

  .hero-ctas .btn { width: 100%; height: 52px; padding: 0 28px; font-size: 16px; }
  .hero-ctas .btn-icon { width: 18px; height: 18px; }

  .section { padding: 60px var(--pad-x); }
  .section-header { align-items: flex-start; gap: 16px; margin-bottom: 32px; }
  .section-marker { height: 40px; margin-top: 4px; }
  .title-link { margin-top: 10px; }

  .vini-grid { grid-template-columns: 1fr; }
  .vini-card { aspect-ratio: 4 / 3; }

  .media--tall,
  .media--wide { aspect-ratio: 4 / 3; }
  .media--video { aspect-ratio: 16 / 9; }

  .pair-grid { grid-template-columns: 1fr; }

  .badge { top: 16px; left: 16px; max-width: calc(100% - 80px); }
  .badge--br { top: auto; left: auto; right: 16px; bottom: 16px; }
  .glass-arrow { top: 16px; left: 16px; width: 48px; height: 48px; }
  .media-tools { top: 8px; right: 8px; }
  .tool-btn { width: 40px; height: 40px; }
  .tool-btn svg { width: 24px; height: 24px; }
  .play-btn { width: 64px; min-width: 64px; }

  .feature-card { padding: 20px; gap: 28px; }

  .center-section { padding: 72px var(--pad-x) 56px; }
  .center-head { margin-bottom: 48px; }

  .form-row { grid-template-columns: 1fr; }
  .contact-submit { flex-direction: column-reverse; align-items: flex-end; }

  .footer-main { grid-template-columns: 5% 1fr 5%; padding: 56px 0; }
  .footer-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 32px; }
  .footer-glass { width: 240px; height: 360px; right: -70px; }
  .footer-bottom { min-height: 80px; padding: 0 5%; }
}

@media (max-width: 768px) {
  .hide-mobile { display: none; }

  /* caroselli a scorrimento orizzontale */
  [data-carousel] {
    position: relative;
    display: flex;
    gap: 12px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    overscroll-behavior-x: contain;
  }
  [data-carousel]::-webkit-scrollbar { display: none; }
  [data-carousel] > * { flex: 0 0 100%; scroll-snap-align: start; }
  .feature-card-img[data-carousel] { gap: 0; aspect-ratio: auto; }
  .feature-card-img[data-carousel] > img { display: block !important; aspect-ratio: 1 / 1; height: auto; }
  .feature-card-img--tall[data-carousel] > img { aspect-ratio: 4 / 5; }
  .carousel-dots { display: flex; justify-content: center; gap: 6px; margin-top: 14px; }

  /* home: vini in carosello */
  .vini-grid { display: flex; margin-bottom: 0; }
  .vini-card { aspect-ratio: 1 / 1; }
  #vini .carousel-dots { margin-bottom: 28px; }
  .vini-text { margin-top: 24px; }

  /* card esperienza / vendemmia */
  .feature-card-media { gap: 14px; }
  .feature-card .bar-btn { display: none; }

  /* footer semplificato */
  .footer-cols { display: none; }
  .footer-main { row-gap: 40px; }
  .footer-mobile {
    position: relative;
    z-index: 1;
    grid-column: 2;
    display: flex;
    flex-direction: column;
    gap: 14px;
    font-size: 14px;
    line-height: 1.5;
    color: #fff;
  }
  .footer-mobile a { color: #d6c8cd; text-decoration: none; }
  .footer-mobile .footer-accent,
  .footer-copy { color: #f1d9a0; }
  .footer-mobile-title { margin-top: 26px; font-weight: 500; }
}

@media (max-width: 420px) {
  .badge span { font-size: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
