/* ============================================================
   ITALWINE · CANTINE DIGITALI — style.css
   ============================================================ */

/* ---------- DESIGN TOKENS (CLAUDE.md §5) ---------- */
:root {
  /* Core palette */
  --ink:           #0B0F14;
  --ink-soft:      #13181F;
  --gold:          #C8A24A;
  --gold-light:    #E2BC6E;
  --gold-dim:      rgba(200, 162, 74, 0.15);
  --gold-dark:     #9a7a2e;   /* shimmer gradient only */
  --cream:         #F5F1E8;
  --cream-muted:   #A89F8C;
  --wine:          #5A1E1E;
  --border:        rgba(200, 162, 74, 0.2);
  /* Shadows & gradients */
  --shadow-gold:   0 0 40px rgba(200, 162, 74, 0.15), 0 2px 8px rgba(0,0,0,0.4);
  --shadow-card:   0 4px 24px rgba(0, 0, 0, 0.4);
  --gradient-gold: linear-gradient(135deg, #C8A24A 0%, #E2BC6E 50%, #C8A24A 100%);
  --gradient-hero: linear-gradient(to bottom, rgba(11,15,20,0.7) 0%, rgba(11,15,20,0.3) 50%, rgba(11,15,20,1) 100%);
  /* Type scale */
  --text-xs:   0.625rem;
  --text-sm:   0.75rem;
  --text-base: 1rem;
  --text-lg:   1.25rem;
  --text-xl:   clamp(2rem, 4vw, 3.5rem);
  --text-hero: clamp(3.5rem, 10vw, 9rem);
  /* Spacing */
  --space-xs:  0.5rem;
  --space-sm:  1rem;
  --space-md:  2rem;
  --space-lg:  4rem;
  --space-xl:  8rem;
  --space-2xl: 12rem;
  /* Utilities */
  --radius:    4px;
  --radius-lg: 12px;
  --transition: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ---------- RESET ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  background: var(--ink);
  color: var(--cream);
  font-family: 'DM Sans', system-ui, sans-serif;
  line-height: 1.65;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
ul { list-style: none; }

/* ---------- GLOBAL FOCUS STATES (accessibility) ---------- */
:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
[tabindex]:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  border-radius: var(--radius);
}

/* ---------- TYPOGRAPHY ---------- */
.serif { font-family: 'Cormorant Garamond', Georgia, serif; }
h1, h2, h3 { font-family: 'Cormorant Garamond', Georgia, serif; font-weight: 600; line-height: 1.15; }
h1 { font-size: clamp(2.8rem, 6vw, 5.5rem); }
h2 { font-size: clamp(2rem, 4vw, 3.2rem); }
h3 { font-size: clamp(1.4rem, 2.5vw, 2rem); }
p { font-size: clamp(0.95rem, 1.5vw, 1.05rem); }

.gold { color: var(--gold); }
.gold-shimmer {
  background: linear-gradient(90deg, var(--gold-dark) 0%, var(--gold-light) 40%, var(--gold) 60%, var(--gold-dark) 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: shimmer 4s linear infinite;
}
@keyframes shimmer {
  0% { background-position: 0% center; }
  100% { background-position: 200% center; }
}

.small-caps {
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 500;
}

/* ---------- UTILITY ---------- */
.container { max-width: 1180px; margin: 0 auto; padding: 0 clamp(1.2rem, 4vw, 2.5rem); }
.section__label {
  display: inline-block;
  color: var(--gold);
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 600;
  margin-bottom: 1rem;
}
.divider {
  width: 48px; height: 2px;
  background: linear-gradient(90deg, var(--gold), transparent);
  margin: 1.2rem 0 2rem;
}

/* ---------- SCROLL REVEAL ---------- */
.js-reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.js-reveal.is-visible { opacity: 1; transform: translateY(0); }
.js-reveal--d1 { transition-delay: 0.1s; }
.js-reveal--d2 { transition-delay: 0.2s; }
.js-reveal--d3 { transition-delay: 0.3s; }
.js-reveal--d4 { transition-delay: 0.4s; }

/* ---------- BUTTONS ---------- */
.btn--gold {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 2rem;
  background: linear-gradient(135deg, var(--gold-dark), var(--gold), var(--gold-light));
  background-size: 200% auto;
  color: var(--ink);
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-radius: var(--radius);
  transition: background-position var(--transition), transform var(--transition), box-shadow var(--transition);
}
.btn--gold:hover {
  background-position: right center;
  transform: translateY(-2px);
  box-shadow: var(--shadow-gold);
}
.btn--outline {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 2rem;
  border: 1.5px solid var(--gold);
  color: var(--cream);
  font-weight: 500;
  font-size: 0.9rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-radius: var(--radius);
  transition: background var(--transition), color var(--transition), transform var(--transition);
}
.btn--outline:hover {
  background: rgba(200, 162, 74, 0.12);
  transform: translateY(-2px);
}
.btn--whatsapp {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.85rem 1.8rem;
  background: rgba(37, 211, 102, 0.15);
  border: 1.5px solid rgba(37, 211, 102, 0.5);
  color: #25d366;
  font-weight: 600;
  font-size: 0.9rem;
  border-radius: var(--radius);
  transition: background var(--transition), transform var(--transition);
}
.btn--whatsapp:hover {
  background: rgba(37, 211, 102, 0.25);
  transform: translateY(-2px);
}
.btn--whatsapp svg { width: 20px; height: 20px; fill: #25d366; }
.btn--full { width: 100%; justify-content: center; }
.btn--whatsapp--block { display: inline-flex; margin-top: var(--space-xs); }

/* ---------- UTILITY CLASSES ---------- */
.section__cta { text-align: center; margin-top: var(--space-md); }
.section__lead {
  color: var(--cream-muted);
  max-width: 500px;
  margin: 1rem auto 0;
  font-size: 0.95rem;
}
.section__lead--sm { max-width: 540px; font-size: 0.85rem; }
.divider--header { margin: 1.2rem auto 0; }
.header__mobile-cta { margin-top: var(--space-sm); }
.experience__badges { display: flex; gap: 1rem; flex-wrap: wrap; }
.experience__demo-wrap { margin-top: var(--space-md); }
.form__optional { font-weight: 400; opacity: 0.6; }
.contact__divider--hidden { display: none; margin-bottom: 0; }

/* ---------- HEADER ---------- */
#site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 900;
  padding: 0 clamp(1.2rem, 4vw, 2.5rem);
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  backdrop-filter: blur(18px) saturate(1.4);
  -webkit-backdrop-filter: blur(18px) saturate(1.4);
  background: rgba(11, 15, 20, 0.65);
  border-bottom: 1px solid rgba(200, 162, 74, 0.12);
  transition: background var(--transition);
}
.logo {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}
.logo__name {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--cream);
  letter-spacing: 0.02em;
}
.logo__name span { color: var(--gold); }
.logo__tagline {
  font-size: 0.6rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 500;
}
.header__nav {
  align-items: center;
  gap: 2rem;
}
.header__nav a {
  font-size: 0.82rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--cream-muted);
  font-weight: 500;
  transition: color var(--transition);
  position: relative;
}
.header__nav a::after {
  content: '';
  position: absolute;
  bottom: -3px; left: 0;
  width: 0; height: 1px;
  background: var(--gold);
  transition: width var(--transition);
}
.header__nav a:hover { color: var(--gold); }
.header__nav a:hover::after { width: 100%; }
.header__cta { margin-left: 1rem; }

/* ---------- LANGUAGE SWITCHER ---------- */
.lang-switcher {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  margin-left: 1.5rem;
}
.lang-switcher__link {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--cream-muted);
  transition: color var(--transition);
  padding: 0.1em 0.2em;
}
.lang-switcher__link:hover,
.lang-switcher__link--active {
  color: var(--gold);
}
.lang-switcher__sep {
  font-size: 0.65rem;
  color: rgba(200, 162, 74, 0.35);
  pointer-events: none;
}
.hamburger {
  flex-direction: column;
  gap: 5px;
  padding: 6px;
}
.hamburger span {
  display: block;
  width: 24px; height: 2px;
  background: var(--cream);
  transition: transform var(--transition), opacity var(--transition);
}
.hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }
.header__mobile-nav {
  display: none;
  position: fixed;
  inset: 72px 0 0;
  background: rgba(11, 15, 20, 0.97);
  backdrop-filter: blur(20px);
  z-index: 890;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2.5rem;
}
.header__mobile-nav.open { display: flex; }
.header__mobile-nav a {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 2rem;
  color: var(--cream);
  transition: color var(--transition);
}
.header__mobile-nav a:hover { color: var(--gold); }

/* ---------- HERO ---------- */
#hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.hero__bg {
  position: absolute;
  inset: 0;
  background-image: url('https://images.unsplash.com/photo-1506377247377-2a5b3b417ebb?w=1920&q=80');
  background-size: cover;
  background-position: center 60%;
  will-change: transform;
}
.hero__bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(10,8,6,0.55) 0%,
    rgba(10,8,6,0.35) 40%,
    rgba(10,8,6,0.65) 75%,
    rgba(10,8,6,0.92) 100%
  );
}
.hero__grain {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  opacity: 0.06;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23n)' opacity='1'/%3E%3C/svg%3E");
}
.hero__content {
  position: relative;
  z-index: 2;
  max-width: 900px;
}
.hero__eyebrow {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin-bottom: 1.5rem;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 0.8s ease 0.2s forwards;
}
.hero__eyebrow-line {
  width: 40px; height: 1px;
  background: var(--gold);
}
.hero__eyebrow-text {
  font-size: 0.72rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 600;
}
.hero__title {
  font-size: clamp(3.5rem, 8vw, 7rem);
  font-weight: 700;
  line-height: 1.02;
  margin-bottom: 1.5rem;
  opacity: 0;
  transform: translateY(24px);
  animation: fadeUp 0.9s ease 0.4s forwards;
}
.hero__subtitle {
  font-size: clamp(1.1rem, 2.2vw, 1.35rem);
  color: var(--cream-muted);
  max-width: 560px;
  margin-bottom: 1rem;
  font-weight: 300;
  opacity: 0;
  transform: translateY(24px);
  animation: fadeUp 0.9s ease 0.6s forwards;
}
.hero__outcomes {
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  color: var(--gold);
  margin-bottom: 2.5rem;
  opacity: 0;
  transform: translateY(24px);
  animation: fadeUp 0.9s ease 0.75s forwards;
}
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  opacity: 0;
  transform: translateY(24px);
  animation: fadeUp 0.9s ease 0.9s forwards;
}
@keyframes fadeUp {
  to { opacity: 1; transform: translateY(0); }
}
.hero__scroll {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  opacity: 0;
  animation: fadeUp 1s ease 1.4s forwards;
}
.hero__scroll span {
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--cream-muted);
}
.hero__scroll-line {
  width: 1px;
  height: 48px;
  background: linear-gradient(to bottom, var(--gold), transparent);
  animation: scrollLine 2s ease-in-out infinite;
}
@keyframes scrollLine {
  0%, 100% { transform: scaleY(1); opacity: 1; }
  50% { transform: scaleY(0.5); opacity: 0.4; }
}

/* ---------- STATS STRIP ---------- */
#stats {
  background: var(--ink);
  border-top: 1px solid rgba(200, 162, 74, 0.15);
  border-bottom: 1px solid rgba(200, 162, 74, 0.15);
  padding: 3rem 0;
}
.stats__grid {
  display: grid;
  gap: 0;
}
.stats__item {
  text-align: center;
  padding: 1.5rem 1rem;
  border-right: 1px solid rgba(200, 162, 74, 0.12);
}
.stats__item:last-child { border-right: none; }
.stats__number {
  display: block;
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: clamp(2.5rem, 4vw, 3.8rem);
  font-weight: 700;
  color: var(--gold);
  line-height: 1;
  margin-bottom: 0.5rem;
}
.stats__label {
  font-size: 0.82rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--cream-muted);
  font-weight: 400;
}

/* ---------- PROBLEMA ---------- */
#problema {
  padding: clamp(5rem, 10vw, 9rem) 0;
}
.problema__header { text-align: center; margin-bottom: 4rem; }
.problema__header h2 { max-width: 700px; margin: 0 auto; }
.problema__split {
  display: grid;
  gap: 2rem;
  align-items: stretch;
}
.ba-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
}
.ba-card__img {
  width: 100%;
  height: 320px;
  object-fit: cover;
  transition: transform 0.6s ease;
}
.ba-card:hover .ba-card__img { transform: scale(1.04); }
.ba-card.before .ba-card__img {
  filter: grayscale(1) brightness(0.55);
}
.ba-card.after {
  box-shadow: 0 0 0 2px var(--gold), 0 12px 60px rgba(200, 162, 74, 0.2);
}
.ba-card__body {
  padding: 1.8rem;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.07);
  border-top: none;
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
}
.ba-card.after .ba-card__body {
  background: rgba(201,168,76,0.06);
  border-color: rgba(201,168,76,0.2);
}
.ba-card__label {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border-radius: 2px;
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-weight: 700;
  margin-bottom: 1rem;
}
.before .ba-card__label { background: rgba(255,255,255,0.1); color: var(--cream-muted); }
.after .ba-card__label { background: rgba(201,168,76,0.2); color: var(--gold); }
.ba-card__list li {
  padding: 0.45rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  font-size: 0.92rem;
  color: var(--cream-muted);
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
}
.ba-card__list li::before { content: '—'; color: var(--gold); flex-shrink: 0; }
.after .ba-card__list li { color: var(--cream); }

/* ---------- SOLUZIONE ---------- */
#soluzione {
  padding: clamp(5rem, 10vw, 9rem) 0;
  background: linear-gradient(180deg, rgba(61,12,17,0.12) 0%, transparent 100%);
}
.soluzione__header { text-align: center; margin-bottom: 4rem; }
.services__grid {
  display: grid;
  gap: 1.5rem;
}
.service-card {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius-lg);
  padding: 2.5rem 2rem;
  position: relative;
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
  cursor: default;
}
.service-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  transform: scaleX(0);
  transition: transform var(--transition);
}
.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-gold);
  border-color: rgba(201,168,76,0.3);
}
.service-card:hover::before { transform: scaleX(1); }
.service-card__number {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 4rem;
  font-weight: 700;
  color: rgba(201,168,76,0.15);
  line-height: 1;
  margin-bottom: 1.2rem;
  transition: color var(--transition);
}
.service-card:hover .service-card__number { color: var(--gold); }
.service-card__title {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.5rem;
  margin-bottom: 0.8rem;
  color: var(--cream);
}
.service-card__desc {
  font-size: 0.9rem;
  color: var(--cream-muted);
  line-height: 1.7;
  margin-bottom: 1.5rem;
}
.service-card__features {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.service-card__features li {
  font-size: 0.82rem;
  color: var(--cream-muted);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.service-card__features li::before {
  content: '';
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--gold);
  flex-shrink: 0;
}

/* ---------- QR / WINE EXPERIENCE ---------- */
#qr-experience {
  padding: clamp(5rem, 10vw, 9rem) 0;
}
.experience__inner {
  display: grid;
  align-items: center;
}
.experience__visual {
  position: relative;
  display: flex;
  justify-content: center;
}
.experience__bottle {
  width: 280px;
  height: 560px;
  object-fit: cover;
  border-radius: 80px 80px 20px 20px;
  box-shadow: var(--shadow-card);
  animation: float 5s ease-in-out infinite;
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-14px); }
}
.experience__scan-btn {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, var(--gold-dark), var(--gold));
  color: var(--ink);
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.75rem 1.8rem;
  border-radius: 40px;
  box-shadow: 0 0 0 0 rgba(200, 162, 74, 0.4);
  animation: pulse-gold 2.5s ease-in-out infinite;
}
@keyframes pulse-gold {
  0%, 100% { box-shadow: 0 0 0 0 rgba(200, 162, 74, 0.5); }
  50% { box-shadow: 0 0 0 14px rgba(200, 162, 74, 0); }
}
.experience__content { padding: 1rem 0; }
.experience__content h2 { margin-bottom: 1rem; }
.experience__content p { color: var(--cream-muted); margin-bottom: 2rem; font-size: 1rem; }
.experience__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  border: 1px solid rgba(201,168,76,0.3);
  border-radius: 40px;
  font-size: 0.75rem;
  color: var(--gold);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* ---------- MODAL ---------- */
.modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(11, 15, 20, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}
.modal.open {
  display: flex;
  animation: fadeIn 0.3s ease;
}
.modal__box {
  background: var(--ink);
  border: 1px solid rgba(200, 162, 74, 0.25);
  border-radius: var(--radius-lg);
  max-width: 580px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  animation: scaleIn 0.35s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes scaleIn { from { opacity: 0; transform: scale(0.9); } to { opacity: 1; transform: scale(1); } }
.modal__close {
  position: absolute;
  top: 1.2rem; right: 1.2rem;
  width: 36px; height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,0.07);
  color: var(--cream-muted);
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition), color var(--transition);
}
.modal__close:hover { background: rgba(201,168,76,0.2); color: var(--gold); }
.modal__eyebrow {
  font-size: 0.65rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 600;
  margin-bottom: 0.5rem;
}
.modal__title {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 2rem;
  margin-bottom: 1rem;
  line-height: 1.15;
}
.modal__desc { color: var(--cream-muted); font-size: 0.95rem; margin-bottom: 1.5rem; line-height: 1.7; }
.modal__pairings {
  margin-bottom: 1.5rem;
}
.modal__pairings h4 {
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.8rem;
}
.modal__pairings ul { display: flex; flex-direction: column; gap: 0.4rem; }
.modal__pairings li {
  font-size: 0.9rem;
  color: var(--cream);
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.modal__pairings li::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--gold);
  flex-shrink: 0;
}
.modal__quote {
  border-left: 2px solid var(--gold);
  padding-left: 1.2rem;
  margin-bottom: 2rem;
  font-style: italic;
  color: var(--cream-muted);
  font-size: 0.95rem;
  line-height: 1.7;
}
.modal__actions { display: flex; gap: 1rem; flex-wrap: wrap; }

/* ---------- AI ASSISTANT ---------- */
#ai-assistant {
  padding: clamp(5rem, 10vw, 9rem) 0;
  background: linear-gradient(180deg, transparent, rgba(61,12,17,0.1), transparent);
}
.assistant__header { text-align: center; margin-bottom: 3rem; }
.assistant__inner {
  max-width: 720px;
  margin: 0 auto;
}
.assistant__input-wrap {
  position: relative;
  margin-bottom: 1.2rem;
}
.assistant__icon {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.1rem;
  color: var(--gold);
  pointer-events: none;
}
.assistant__input {
  width: 100%;
  padding: 1rem 4rem 1rem 2.8rem;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(201,168,76,0.25);
  border-radius: 50px;
  color: var(--cream);
  font-family: 'DM Sans', sans-serif;
  font-size: 0.95rem;
  outline: none;
  transition: border-color var(--transition), background var(--transition);
}
.assistant__input::placeholder { color: rgba(245,240,232,0.35); }
.assistant__input:focus {
  border-color: var(--gold);
  background: rgba(255,255,255,0.07);
}
.assistant__send {
  position: absolute;
  right: 0.6rem;
  top: 50%;
  transform: translateY(-50%);
  width: 40px; height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold-dark), var(--gold));
  color: var(--ink);
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform var(--transition), box-shadow var(--transition);
}
.assistant__send:hover { transform: translateY(-50%) scale(1.08); box-shadow: var(--shadow-gold); }
.assistant__presets {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 2rem;
}
.assistant__preset {
  padding: 0.5rem 1rem;
  border: 1px solid rgba(201,168,76,0.25);
  border-radius: 40px;
  font-size: 0.8rem;
  color: var(--cream-muted);
  background: transparent;
  transition: border-color var(--transition), color var(--transition), background var(--transition);
}
.assistant__preset:hover {
  border-color: var(--gold);
  color: var(--gold);
  background: rgba(201,168,76,0.07);
}
.assistant__response {
  display: none;
  background: rgba(255,255,255,0.04);
  border-left: 3px solid var(--gold);
  border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
  padding: 1.5rem 1.8rem;
  margin-top: 1rem;
}
.assistant__response.visible { display: block; animation: fadeIn 0.4s ease; }
.assistant__response-label {
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.8rem;
}
.assistant__response-text {
  font-size: 0.95rem;
  color: var(--cream);
  line-height: 1.75;
  min-height: 1.4rem;
}

/* ---------- NETWORK ---------- */
#network {
  padding: clamp(5rem, 10vw, 9rem) 0;
}
.network__header { text-align: center; margin-bottom: 4rem; }
.network__grid {
  display: grid;
  gap: 1.5rem;
}
.cantina-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.07);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
  cursor: default;
}
.cantina-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-gold);
  border-color: rgba(201,168,76,0.3);
}
.cantina-card__media {
  height: 220px;
  overflow: hidden;
  position: relative;
}
.cantina-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s ease;
}
.cantina-card:hover .cantina-card__media img { transform: scale(1.08); }
.cantina-card__badge {
  position: absolute;
  top: 1rem; right: 1rem;
  background: rgba(201,168,76,0.9);
  color: var(--ink);
  font-size: 0.6rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 700;
  padding: 0.3rem 0.7rem;
  border-radius: 2px;
}
.cantina-card__caption {
  padding: 1.2rem 1.4rem;
}
.cantina-card__region {
  display: block;
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 600;
  margin-bottom: 0.3rem;
}
.cantina-card__name {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.25rem;
  color: var(--cream);
}

/* ---------- CONTACT ---------- */
#contatto {
  padding: clamp(5rem, 10vw, 9rem) 0;
  position: relative;
  overflow: hidden;
}
.contact-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0.12;
  pointer-events: none;
}
.contact__inner {
  position: relative;
  z-index: 1;
  display: grid;
  align-items: center;
}
.contact__content h2 { margin-bottom: 1rem; }
.contact__content p { color: var(--cream-muted); margin-bottom: 2rem; }
.contact__form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.form__group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.form__group label {
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 600;
}
.form__group input, .form__group textarea {
  padding: 0.85rem 1rem;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius);
  color: var(--cream);
  font-family: 'DM Sans', sans-serif;
  font-size: 0.95rem;
  outline: none;
  transition: border-color var(--transition), background var(--transition);
  resize: vertical;
}
.form__group input::placeholder, .form__group textarea::placeholder { color: rgba(245,240,232,0.3); }
.form__group input:focus, .form__group textarea:focus {
  border-color: var(--gold);
  background: rgba(255,255,255,0.07);
}
.contact__divider {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 0.5rem 0;
}
.contact__divider::before, .contact__divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: rgba(255,255,255,0.1);
}
.contact__divider span {
  font-size: 0.75rem;
  color: var(--cream-muted);
  letter-spacing: 0.1em;
}
.contact__success {
  display: none;
  padding: 1rem 1.2rem;
  background: rgba(201,168,76,0.12);
  border: 1px solid rgba(201,168,76,0.3);
  border-radius: var(--radius);
  color: var(--gold);
  font-size: 0.95rem;
  text-align: center;
}
.contact__success.visible { display: block; animation: fadeIn 0.4s ease; }

/* ---------- FOOTER ---------- */
footer {
  background: rgba(0,0,0,0.6);
  border-top: 1px solid rgba(201,168,76,0.12);
  padding: 3rem 0 1.5rem;
}
.footer__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  text-align: center;
}
.footer__logo .logo__name { font-size: 1.4rem; }
.footer__nav {
  display: flex;
  flex-wrap: wrap;
}
.footer__nav a {
  font-size: 0.8rem;
  color: var(--cream-muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: color var(--transition);
}
.footer__nav a:hover { color: var(--gold); }
.footer__copy {
  font-size: 0.78rem;
  color: rgba(245,240,232,0.35);
  letter-spacing: 0.06em;
}
.footer__legal {
  font-size: 0.75rem;
  color: rgba(245, 241, 232, 0.35);
  line-height: 1.7;
  letter-spacing: 0.04em;
  text-align: center;
}

/* ---------- WhatsApp FAB ---------- */
.fab,
.whatsapp-fab {
  position: fixed;
  bottom: 1.8rem;
  right: 1.8rem;
  z-index: 800;
  width: 58px; height: 58px;
  border-radius: 50%;
  background: #25d366;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 24px rgba(37,211,102,0.4);
  animation: pulse-wa 2.8s ease-in-out infinite;
  transition: transform var(--transition);
}
.fab:hover,
.whatsapp-fab:hover { transform: scale(1.1); }
.fab svg,
.whatsapp-fab svg { width: 28px; height: 28px; fill: #fff; }
@keyframes pulse-wa {
  0%, 100% { box-shadow: 0 4px 24px rgba(37,211,102,0.4); }
  50% { box-shadow: 0 4px 40px rgba(37,211,102,0.7), 0 0 0 10px rgba(37,211,102,0.08); }
}

/* ---------- COOKIE BANNER ---------- */
#cookie-banner {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 950;
  background: rgba(11, 15, 20, 0.97);
  border-top: 1px solid rgba(201,168,76,0.2);
  backdrop-filter: blur(12px);
  padding: 1.2rem clamp(1rem, 4vw, 3rem);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
  transition: transform 0.4s ease;
}
#cookie-banner.hidden { transform: translateY(100%); pointer-events: none; }
.cookie__text {
  font-size: 0.82rem;
  color: var(--cream-muted);
  flex: 1;
  min-width: 260px;
}
.cookie__text a { color: var(--gold); text-decoration: underline; }
/* Both buttons equal visual weight per Garante 2026 */
.cookie__actions { display: flex; gap: 0.8rem; flex-shrink: 0; }
.cookie__actions .btn--gold   { padding: 0.6rem 1.4rem; font-size: 0.78rem; }
.cookie__actions .btn--outline { padding: 0.6rem 1.4rem; font-size: 0.78rem; }

/* ---------- AI DISCLOSURE (EU AI Act 2026) ---------- */
.ai-disclosure {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: var(--space-md);
  padding: 0.75rem 1.25rem;
  background: rgba(200, 162, 74, 0.06);
  border: 1px solid rgba(200, 162, 74, 0.18);
  border-radius: var(--radius);
  font-size: 0.8rem;
  color: var(--cream-muted);
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
  line-height: 1.5;
}

/* ---------- COOKIE TABLE (cookie.html) ---------- */
.cookie-table-wrap {
  overflow-x: auto;
  margin: 1.5rem 0;
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.cookie-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.82rem;
  color: var(--cream-muted);
}
.cookie-table th {
  background: rgba(200, 162, 74, 0.08);
  color: var(--gold);
  font-weight: 600;
  text-align: left;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}
.cookie-table td {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid rgba(200, 162, 74, 0.08);
  vertical-align: top;
  line-height: 1.5;
}
.cookie-table tr:last-child td { border-bottom: none; }
.cookie-table code {
  background: rgba(200, 162, 74, 0.1);
  color: var(--gold);
  padding: 0.1em 0.4em;
  border-radius: 3px;
  font-size: 0.85em;
}

/* ---------- PAGE HEADER (privacy/termini) ---------- */
.page-hero {
  min-height: 40vh;
  display: flex;
  align-items: flex-end;
  padding-bottom: 3rem;
  background: linear-gradient(to bottom, var(--wine), var(--ink));
  border-bottom: 1px solid rgba(201,168,76,0.12);
  padding-top: 72px;
}
.page-hero h1 { font-size: clamp(2.2rem, 5vw, 3.5rem); }
.page-hero .small-caps { color: var(--gold); margin-bottom: 0.5rem; }
.page-hero__label { color: var(--gold); margin-bottom: 0.5rem; }
.page-hero__sub {
  color: var(--cream-muted);
  margin-top: 0.8rem;
  font-size: 0.9rem;
}
.link--gold { color: var(--gold); text-decoration: underline; }

/* ---------- GRAZIE PAGE ---------- */
.grazie__content {
  max-width: 580px;
  margin: 0 auto;
  padding: var(--space-lg) var(--space-sm) var(--space-xl);
  text-align: center;
}
.grazie__icon {
  font-size: 4rem;
  margin-bottom: var(--space-md);
  line-height: 1;
}
.grazie__title {
  font-size: var(--text-lg);
  margin-bottom: var(--space-sm);
  color: var(--cream);
}
.grazie__steps {
  text-align: left;
  max-width: 480px;
  margin: 0 auto var(--space-lg);
  line-height: 2;
  color: var(--cream-muted);
  padding-left: 1.5rem;
}
.grazie__note {
  margin-top: var(--space-md);
  font-size: 0.8rem;
  color: var(--cream-muted);
}

/* ---------- LEGAL CONTENT ---------- */
/* ---------- LEGAL / PAGE CONTENT (.page-content) ----------
   Scoped heading sizes prevent global hero-scale h1/h2/h3
   from bleeding into legal pages.
   ---------------------------------------------------------- */
.legal,
.page-content {
  max-width: 800px;
  margin: 0 auto;
  padding: clamp(3rem, 6vw, 5rem) clamp(1.2rem, 4vw, 2.5rem);
}

/* h1 override — was inheriting clamp(2.8rem,6vw,5.5rem) */
.legal h1,
.page-content h1 {
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  margin-bottom: 0.5rem;
  color: var(--cream);
  line-height: 1.2;
}

.legal h2,
.page-content h2 {
  font-size: clamp(1.3rem, 2.5vw, 1.8rem);
  margin-top: 2.5rem;
  margin-bottom: 0.8rem;
  color: var(--gold);
  font-weight: 600;
  line-height: 1.3;
}

.legal h3,
.page-content h3 {
  font-size: 1.2rem;
  margin-top: 1.8rem;
  margin-bottom: 0.5rem;
  color: var(--cream);
  font-weight: 600;
}

.legal p,
.legal li,
.page-content p,
.page-content li {
  font-size: 1rem;
  color: var(--cream-muted);
  line-height: 1.8;
  margin-bottom: 0.8rem;
}

.legal ul,
.page-content ul { padding-left: 1.5rem; list-style: disc; }

.legal ol,
.page-content ol { padding-left: 1.5rem; list-style: decimal; }

.legal ul li,
.legal ol li,
.page-content ul li,
.page-content ol li { color: var(--cream-muted); margin-bottom: 0.4rem; }

.legal strong,
.page-content strong { color: var(--cream); }

.legal hr,
.page-content hr {
  border: none;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  margin: 2.5rem 0;
}

/* Last section before footer gets extra bottom breathing room */
.legal > *:last-child,
.page-content > *:last-child { margin-bottom: 0; }

.legal-meta,
.legal__meta {
  font-size: 0.8rem;
  color: rgba(245, 240, 232, 0.4);
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

/* ---------- STATS DISCLAIMER ---------- */
.stats__disclaimer {
  text-align: center;
  font-size: var(--text-xs);
  color: rgba(200, 162, 74, 0.45);
  letter-spacing: 0.08em;
  margin-top: 1.2rem;
}

/* ---------- GEO PARAGRAPH ---------- */
.problema__intro {
  color: var(--cream-muted);
  max-width: 580px;
  margin: 0 auto;
}
.problema__geo {
  max-width: 720px;
  margin: 1.5rem auto 0;
  font-size: 0.88rem;
  color: rgba(168, 159, 140, 0.6);
  line-height: 1.7;
  font-style: italic;
}

/* ---------- FAQ ---------- */
.faq {
  padding: clamp(5rem, 10vw, 9rem) 0;
  background: linear-gradient(180deg, rgba(90,30,30,0.06) 0%, transparent 100%);
}
.faq__header { text-align: center; margin-bottom: 3rem; }
.faq__list {
  max-width: 780px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.faq__question {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: clamp(1.1rem, 2vw, 1.3rem);
  font-weight: 600;
  color: var(--cream);
  padding: 1.4rem 0 0.6rem;
  border-top: 1px solid var(--border);
  cursor: default;
}
.faq__question:first-of-type { border-top: none; }
.faq__answer {
  font-size: 0.95rem;
  color: var(--cream-muted);
  line-height: 1.75;
  padding: 0 0 1.4rem;
  max-width: 680px;
}

/* ==========================================================
   RESPONSIVE — Mobile-first (min-width breakpoints)
   Base styles = mobile (320px+)
   ========================================================== */

/* --- Mobile-first base overrides (applied to all sizes, overridden up) --- */
.header__nav  { display: none; }
.header__cta  { display: none; }
.hamburger    { display: flex; }

.hero__content {
  padding: 0 1.5rem;
  padding-top: 72px;
}
.stats__grid {
  grid-template-columns: 1fr 1fr;
}
.stats__item {
  border-right: none;
  border-bottom: 1px solid rgba(200, 162, 74, 0.12);
}
.problema__split    { grid-template-columns: 1fr; }
.services__grid     { grid-template-columns: 1fr; }
.experience__inner  { grid-template-columns: 1fr; gap: 3rem; }
.experience__visual { order: -1; }
.network__grid      { grid-template-columns: 1fr; }
.contact__inner     { grid-template-columns: 1fr; gap: 3rem; }
.footer__nav        { flex-direction: column; gap: 1rem; align-items: center; }
.assistant__presets { justify-content: center; }
#cookie-banner      { flex-direction: column; }
.modal__box         { padding: 2rem 1.5rem; }

/* --- Tablet: 481px+ --- */
@media (min-width: 481px) {
  .network__grid { grid-template-columns: 1fr 1fr; }
}

/* --- Desktop: 769px+ --- */
@media (min-width: 769px) {
  .header__nav  { display: flex; }
  .header__cta  { display: inline-flex; }
  .hamburger    { display: none; }

  .hero__content {
    padding: 0 clamp(1.2rem, 6vw, 6rem);
    padding-top: 72px;
  }
  .stats__grid {
    grid-template-columns: repeat(4, 1fr);
  }
  .stats__item {
    border-right: 1px solid rgba(200, 162, 74, 0.12);
    border-bottom: none;
  }
  .problema__split   { grid-template-columns: 1fr 1fr; }
  .services__grid    { grid-template-columns: 1fr 1fr; }
  .experience__inner { grid-template-columns: 1fr 1fr; gap: 5rem; }
  .experience__visual { order: 0; }
  .network__grid     { grid-template-columns: 1fr 1fr; }
  .footer__nav       { flex-direction: row; gap: 2rem; align-items: center; }
  .assistant__presets { justify-content: flex-start; }
  #cookie-banner     { flex-direction: row; }
  .modal__box        { padding: 3rem 2.5rem; }
}

/* --- Large desktop: 1025px+ --- */
@media (min-width: 1025px) {
  .services__grid { grid-template-columns: repeat(3, 1fr); }
  .network__grid  { grid-template-columns: repeat(3, 1fr); }
  .contact__inner { grid-template-columns: 1fr 1fr; gap: 5rem; }
}

/* ---------- Accessibility: reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .hero__bg { transform: none !important; }
  .js-reveal { opacity: 1 !important; transform: none !important; }
  .js-reveal.is-visible { opacity: 1; transform: none; }
  [data-count] { transition: none !important; }
}
