/* ============================================================
   DiVino in Vino — Design System (ui-ux-pro-max SKILL)
   Style: Elegant Luxury Wine Event
   Palette: "Tramonto a Palazzo" 
   Typography: Playfair Display + Outfit
   ============================================================ */

/* ── 0. CSS Custom Properties (Design Tokens) ────────────── */
:root {
  /* Colors — Primary Palette */
  --alabaster:        #FAF9F6;
  --anthracite:       #2A2A35;
  --terracotta-400:   #D57C6F;
  --terracotta-500:   #C45B4D;
  --terracotta-600:   #A34639;
  --terracotta-900:   #54221A;

  /* Colors — Warm Neutrals */
  --peach-50:         #FDF7F4;
  --peach-100:        #FAE8DF;
  --peach-200:        #F7CAB1;
  --peach-300:        #F4AC83;

  /* Colors — Gold Accents */
  --sunset-400:       #EDB983;
  --sunset-500:       #E6AA68;
  --sunset-600:       #D4944C;

  /* Colors — Semantic */
  --color-bg:         var(--alabaster);
  --color-bg-alt:     var(--peach-50);
  --color-bg-card:    #FFFFFF;
  --color-bg-dark:    var(--anthracite);
  --color-text:       var(--anthracite);
  --color-text-muted: rgba(42, 42, 53, 0.6);
  --color-text-light: rgba(255, 255, 255, 0.9);
  --color-text-light-muted: rgba(255, 255, 255, 0.65);
  --color-accent:     var(--terracotta-500);
  --color-accent-hover: var(--terracotta-600);
  --color-accent-light: var(--terracotta-400);
  --color-gold:       var(--sunset-500);
  --color-gold-hover: var(--sunset-600);
  --color-border:     rgba(196, 91, 77, 0.08);
  --color-border-light: rgba(255, 255, 255, 0.5);

  /* Typography — Scale (base 16px) */
  --fs-xs:   0.75rem;   /* 12px */
  --fs-sm:   0.875rem;  /* 14px */
  --fs-base: 1rem;      /* 16px */
  --fs-lg:   1.125rem;  /* 18px */
  --fs-xl:   1.25rem;   /* 20px */
  --fs-2xl:  1.5rem;    /* 24px */
  --fs-3xl:  2rem;      /* 32px */
  --fs-4xl:  3rem;      /* 48px */
  --fs-5xl:  4rem;      /* 64px */
  --fs-6xl:  5rem;      /* 80px */

  /* Typography — Line Heights */
  --lh-tight:   1.1;
  --lh-snug:    1.25;
  --lh-normal:  1.5;
  --lh-relaxed: 1.75;

  /* Typography — Weights */
  --fw-light:    300;
  --fw-regular:  400;
  --fw-medium:   500;
  --fw-semibold: 600;
  --fw-bold:     700;

  /* Spacing — 4/8dp system */
  --sp-1:  0.25rem;  /* 4px */
  --sp-2:  0.5rem;   /* 8px */
  --sp-3:  0.75rem;  /* 12px */
  --sp-4:  1rem;     /* 16px */
  --sp-5:  1.25rem;  /* 20px */
  --sp-6:  1.5rem;   /* 24px */
  --sp-8:  2rem;     /* 32px */
  --sp-10: 2.5rem;   /* 40px */
  --sp-12: 3rem;     /* 48px */
  --sp-16: 4rem;     /* 64px */
  --sp-20: 5rem;     /* 80px */
  --sp-24: 6rem;     /* 96px */
  --sp-32: 8rem;     /* 128px */

  /* Shadows — Elevation Scale */
  --shadow-sm:   0 4px 12px -2px rgba(196, 91, 77, 0.06);
  --shadow-md:   0 12px 24px -6px rgba(196, 91, 77, 0.1);
  --shadow-lg:   0 20px 40px -10px rgba(196, 91, 77, 0.14);
  --shadow-xl:   0 30px 60px -15px rgba(196, 91, 77, 0.18);
  --shadow-glow: 0 15px 30px -5px rgba(196, 91, 77, 0.3);

  /* Radii */
  --radius-sm:   0.75rem;  /* 12px */
  --radius-md:   1.25rem;  /* 20px */
  --radius-lg:   2rem;     /* 32px */
  --radius-xl:   2.5rem;   /* 40px */
  --radius-full: 9999px;

  /* Transitions */
  --ease-out:    cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --duration-fast:   150ms;
  --duration-normal: 300ms;
  --duration-slow:   500ms;
  --duration-reveal: 800ms;

  /* Z-Index Scale */
  --z-base:    0;
  --z-card:    10;
  --z-sticky:  20;
  --z-overlay: 40;
  --z-nav:     100;
  --z-modal:   1000;

  /* Layout */
  --container-max:  1400px;
  --container-narrow: 900px;
  --nav-height:     80px;
}


/* ── 1. Reset & Base ─────────────────────────────────────── */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  font-size: 16px;
}

body {
  font-family: 'Outfit', system-ui, -apple-system, sans-serif;
  font-weight: var(--fw-regular);
  font-size: var(--fs-base);
  line-height: var(--lh-normal);
  color: var(--color-text);
  background-color: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

::selection {
  background: var(--terracotta-500);
  color: white;
}

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

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--duration-normal) var(--ease-out);
}

ul, ol {
  list-style: none;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: var(--fw-medium);
  line-height: var(--lh-tight);
  letter-spacing: -0.02em;
  color: var(--color-text);
}


/* ── 2. Skip Link (Accessibility) ────────────────────────── */
.skip-link {
  position: absolute;
  top: -100%;
  left: var(--sp-4);
  z-index: calc(var(--z-modal) + 1);
  padding: var(--sp-3) var(--sp-6);
  background: var(--color-accent);
  color: white;
  font-weight: var(--fw-bold);
  border-radius: var(--radius-full);
  transition: top var(--duration-fast);
}
.skip-link:focus {
  top: var(--sp-4);
}


/* ── 3. Container & Layout ───────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--sp-4);
}

.container--narrow {
  max-width: var(--container-narrow);
}

.section {
  padding-block: var(--sp-16);
  position: relative;
}

.section--alt {
  background-color: var(--color-bg-alt);
}

.section--dark {
  background-color: var(--color-bg-dark);
  color: var(--color-text-light);
}

.section-header {
  text-align: center;
  margin-bottom: var(--sp-16);
}

.section-label {
  display: inline-block;
  font-family: 'Outfit', sans-serif;
  font-size: var(--fs-xs);
  font-weight: var(--fw-bold);
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--color-accent);
  margin-bottom: var(--sp-4);
}

.section--dark .section-label {
  color: var(--sunset-500);
}

.section-title {
  font-size: clamp(var(--fs-3xl), 6vw, var(--fs-5xl));
  margin-bottom: var(--sp-6);
  letter-spacing: -0.03em;
}

.section-subtitle {
  font-family: 'Outfit', sans-serif;
  font-size: var(--fs-lg);
  font-weight: var(--fw-light);
  color: var(--color-text-muted);
  max-width: 60ch;
  margin-inline: auto;
  line-height: var(--lh-relaxed);
}

.section--dark .section-subtitle {
  color: var(--color-text-light-muted);
}


/* ── 4. Navigation — Glass Island ────────────────────────── */
.nav-island {
  position: fixed;
  top: var(--sp-6);
  left: 50%;
  transform: translateX(-50%);
  z-index: var(--z-nav);
  width: 90%;
  max-width: 56rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--sp-3) var(--sp-4);
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.6);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    var(--shadow-md);
  transition: all var(--duration-slow) var(--ease-out);
}

.nav-island.scrolled {
  background: rgba(255, 255, 255, 0.96);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    var(--shadow-lg);
}

.nav-logo {
  font-family: 'Playfair Display', serif;
  font-size: var(--fs-2xl);
  font-weight: var(--fw-regular);
  color: var(--color-text);
  letter-spacing: -0.02em;
  display: flex;
  align-items: center;
  gap: var(--sp-1);
}

.nav-logo__accent {
  color: var(--color-accent);
  font-style: italic;
  font-weight: var(--fw-medium);
}

.nav-links {
  display: none;
  align-items: center;
  gap: var(--sp-6);
}

.nav-link {
  font-size: var(--fs-xs);
  font-weight: var(--fw-medium);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--color-text-muted);
  transition: color var(--duration-normal) var(--ease-out);
  padding: var(--sp-2) 0;
}

.nav-link:hover,
.nav-link:focus-visible {
  color: var(--color-accent);
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  padding: var(--sp-2) var(--sp-5);
  background: var(--color-accent);
  color: white;
  font-size: var(--fs-xs);
  font-weight: var(--fw-bold);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  border-radius: var(--radius-full);
  border: none;
  cursor: pointer;
  box-shadow: 0 10px 20px -10px rgba(196, 91, 77, 0.5);
  transition: all var(--duration-normal) var(--ease-out);
}

.nav-cta:hover {
  transform: scale(1.05);
  box-shadow: var(--shadow-glow);
}
.nav-cta:active {
  transform: scale(0.96);
}

/* Mobile menu button */
.nav-mobile-group {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
}

.nav-hamburger {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: var(--radius-full);
  background: var(--peach-100);
  border: none;
  cursor: pointer;
  color: var(--color-text);
  font-size: var(--fs-lg);
  transition: color var(--duration-normal) var(--ease-out);
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}
.nav-hamburger:hover {
  color: var(--color-accent);
}
.nav-hamburger:focus-visible {
  outline: 3px solid var(--color-accent);
  outline-offset: 2px;
}

/* Mobile Menu Dropdown */
.mobile-menu {
  position: fixed;
  top: calc(var(--sp-6) + var(--nav-height) + var(--sp-2));
  left: 50%;
  transform: translateX(-50%) translateY(-12px);
  z-index: calc(var(--z-nav) - 1);
  width: 90%;
  max-width: 24rem;
  border-radius: var(--radius-xl);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.6);
  box-shadow: var(--shadow-xl);
  padding: var(--sp-6) var(--sp-8);
  opacity: 0;
  pointer-events: none;
  transition: all var(--duration-normal) var(--ease-out);
}

.mobile-menu.open {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

.mobile-menu__link {
  display: block;
  padding: var(--sp-3) 0;
  font-size: var(--fs-sm);
  font-weight: var(--fw-medium);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--color-text-muted);
  transition: color var(--duration-normal) var(--ease-out);
}
.mobile-menu__link:hover {
  color: var(--color-accent);
}


/* ── 5. Hero Section ─────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding-top: calc(var(--nav-height) + var(--sp-16));
  padding-bottom: var(--sp-16);

  /* Mesh gradient background */
  background-color: var(--color-bg);
  background-image:
    radial-gradient(at 40% 20%, hsla(28, 100%, 74%, 0.35) 0px, transparent 50%),
    radial-gradient(at 85% 50%, hsla(6, 63%, 56%, 0.12) 0px, transparent 50%),
    radial-gradient(at 80% 100%, hsla(28, 88%, 66%, 0.25) 0px, transparent 50%);
  animation: meshFlow 18s ease-in-out infinite alternate;
}

@keyframes meshFlow {
  0%   { background-position: 0% 0%; }
  100% { background-position: 100% 100%; }
}

.hero__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-12);
  align-items: center;
  width: 100%;
}

.hero__content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  order: 2; /* Appear after image globally */
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-3);
  padding: var(--sp-2) var(--sp-5);
  background: rgba(255, 255, 255, 0.45);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(196, 91, 77, 0.1);
  border-radius: var(--radius-full);
  margin-bottom: var(--sp-8);
  box-shadow: 0 10px 30px -10px rgba(213, 124, 111, 0.15);
  align-self: center; /* Center on mobile */
}

.hero__badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-accent);
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%      { opacity: 0.5; transform: scale(0.85); }
}

.hero__badge-text {
  font-size: var(--fs-xs);
  font-weight: var(--fw-bold);
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--terracotta-600);
}

.hero__title {
  font-size: clamp(2.5rem, 8vw, 5.5rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin-bottom: var(--sp-6);
}

.hero__title-accent {
  font-style: italic;
  font-weight: var(--fw-light);
  opacity: 0.9;
  background: linear-gradient(135deg, var(--sunset-500) 0%, var(--terracotta-400) 50%, var(--terracotta-500) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero__desc {
  font-size: var(--fs-lg);
  font-weight: var(--fw-light);
  color: var(--color-text-muted);
  line-height: var(--lh-relaxed);
  max-width: 55ch;
  margin-bottom: var(--sp-10);
  border-left: 3px solid var(--terracotta-400);
  padding-left: var(--sp-6);
}

.hero__actions {
  display: flex;
  flex-direction: column;
  gap: var(--sp-4);
  width: 100%;
}

/* Hero Image */
.hero__visual {
  position: relative;
  width: 100%;
  min-height: 420px;
  height: 60vh;
  order: 1; /* Appear before text globally */
}

.hero__image-frame {
  position: absolute;
  inset: 0;
  /* Outer wrapper handles the transform — NO overflow:hidden here */
  transform: rotate(1deg);
  transition: transform 1s var(--ease-out);
}

.hero__image-frame::before {
  /* Decorative border effect */
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: clamp(6rem, 35vw, 12rem) clamp(6rem, 35vw, 12rem) var(--radius-lg) var(--radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.5);
  z-index: 2;
  pointer-events: none;
}

.hero__image-frame:hover {
  transform: rotate(0deg);
}

/* Inner clip container — handles the arch clipping separately from transform */
.hero__image-clip {
  position: absolute;
  inset: 0;
  border-radius: clamp(6rem, 35vw, 12rem) clamp(6rem, 35vw, 12rem) var(--radius-lg) var(--radius-lg);
  overflow: hidden;
  /* Isolation trick: forces a new stacking context for reliable clipping */
  isolation: isolate;
  -webkit-mask-image: -webkit-radial-gradient(white, black); /* Safari clip fix */
  mask-image: radial-gradient(white, black);
  box-shadow: var(--shadow-xl);
}

.hero__image-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1);
  display: block;
}

.hero__image-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top-right, rgba(84, 34, 26, 0.4), transparent, transparent);
  pointer-events: none;
}

.hero__image-panel {
  position: absolute;
  bottom: var(--sp-6);
  left: var(--sp-6);
  right: var(--sp-6);
  padding: var(--sp-6);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.6);
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.hero__panel-label {
  font-size: 10px;
  font-weight: var(--fw-bold);
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--terracotta-600);
  margin-bottom: var(--sp-1);
}

.hero__panel-title {
  font-family: 'Playfair Display', serif;
  font-size: var(--fs-lg);
  color: var(--color-text);
}

.hero__panel-icon {
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  border: 1px solid rgba(196, 91, 77, 0.2);
  background: white;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-accent);
  font-size: var(--fs-xl);
  box-shadow: var(--shadow-sm);
  flex-shrink: 0;
}


/* ── 6. Buttons ──────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
  padding: var(--sp-3) var(--sp-6);
  font-family: 'Outfit', sans-serif;
  font-size: var(--fs-sm);
  font-weight: var(--fw-bold);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  border-radius: var(--radius-full);
  border: none;
  cursor: pointer;
  transition: all var(--duration-normal) var(--ease-out);
  position: relative;
  overflow: hidden;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  min-height: 48px; /* touch target ≥ 44pt */
}

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

.btn:focus-visible {
  outline: 3px solid var(--color-accent);
  outline-offset: 3px;
}

/* Primary */
.btn--primary {
  background: var(--color-accent);
  color: white;
  box-shadow: 0 15px 30px -5px rgba(196, 91, 77, 0.3);
}
.btn--primary::after {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--color-accent-hover);
  transform: scaleY(0);
  transform-origin: bottom center;
  transition: transform var(--duration-normal) var(--ease-out);
  z-index: -1;
}
.btn--primary:hover {
  transform: scale(1.02);
  box-shadow: 0 20px 40px -5px rgba(196, 91, 77, 0.4);
}
.btn--primary:hover::after {
  transform: scaleY(1);
}
.btn--primary > * {
  position: relative;
  z-index: 1;
}

/* Secondary / Outline */
.btn--outline {
  background: rgba(255, 255, 255, 0.4);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.6);
  color: var(--terracotta-600);
  box-shadow: var(--shadow-sm);
}
.btn--outline:hover {
  background: white;
  color: var(--terracotta-900);
  transform: scale(1.02);
  box-shadow: var(--shadow-md);
}

/* Gold (dark sections) */
.btn--gold-outline {
  background: transparent;
  border: 1px solid var(--sunset-500);
  color: var(--sunset-500);
  min-height: 48px;
}
.btn--gold-outline:hover {
  background: var(--sunset-500);
  color: var(--anthracite);
}

.btn--gold {
  background: var(--sunset-500);
  color: var(--anthracite);
  font-weight: var(--fw-bold);
  box-shadow: 0 12px 24px -6px rgba(230, 170, 104, 0.3);
}
.btn--gold:hover {
  background: var(--sunset-400);
  box-shadow: 0 16px 32px -6px rgba(230, 170, 104, 0.4);
}

/* Download */
.btn--download {
  background: var(--peach-50);
  border: 1px solid var(--peach-200);
  color: var(--terracotta-600);
}
.btn--download:hover {
  background: var(--color-accent);
  color: white;
  border-color: var(--color-accent);
}

.btn__icon {
  font-size: var(--fs-lg);
  transition: transform var(--duration-normal) var(--ease-out);
}
.btn:hover .btn__icon--arrow {
  transform: translateX(4px);
}
.btn:hover .btn__icon--download {
  transform: translateY(-3px);
}


/* ── 7. Evento Section ───────────────────────────────────── */
.evento__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-12);
  align-items: center;
}

.evento__image-wrap {
  position: relative;
  padding: var(--sp-4);
}

.evento__image {
  aspect-ratio: 4 / 5;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
  border: 4px solid white;
  position: relative;
  z-index: var(--z-card);
}

.evento__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1s var(--ease-out);
}
.evento__image-wrap:hover .evento__image img {
  transform: scale(1.05);
}

.evento__image-deco {
  position: absolute;
  inset: 0;
  background: rgba(196, 91, 77, 0.04);
  border-radius: var(--radius-xl);
  z-index: 0;
  transition: transform var(--duration-slow) var(--ease-out);
}
.evento__image-wrap:hover .evento__image-deco {
  transform: rotate(3deg) scale(0.98);
}

.evento__text {
  display: flex;
  flex-direction: column;
  gap: var(--sp-8);
}

.evento__title {
  font-size: clamp(var(--fs-3xl), 4vw, var(--fs-5xl));
  line-height: var(--lh-snug);
  letter-spacing: -0.02em;
}

.evento__title-accent {
  font-style: italic;
  font-weight: var(--fw-light);
  color: var(--terracotta-600);
  border-bottom: 1px solid var(--peach-200);
  padding-bottom: var(--sp-1);
}

.evento__body {
  font-size: var(--fs-base);
  font-weight: var(--fw-light);
  color: var(--color-text-muted);
  line-height: var(--lh-relaxed);
  text-align: justify;
}

.evento__body p + p {
  margin-top: var(--sp-5);
}

.evento__body strong {
  color: var(--color-text);
  font-weight: var(--fw-medium);
}

/* Info Box */
.info-box {
  display: flex;
  flex-direction: column;
  gap: var(--sp-4);
  background: white;
  border: 1px solid var(--peach-100);
  border-radius: var(--radius-lg);
  padding: var(--sp-8);
  box-shadow: var(--shadow-md);
  transition: transform var(--duration-slow) var(--ease-out);
}
.info-box:hover {
  transform: scale(1.01);
}

.info-box__icon {
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 50%;
  background: var(--peach-50);
  border: 1px solid var(--peach-100);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-accent);
  font-size: var(--fs-3xl);
  flex-shrink: 0;
  box-shadow: var(--shadow-sm);
}

.info-box__title {
  font-size: var(--fs-xl);
  letter-spacing: -0.01em;
}

.info-box__desc {
  font-size: var(--fs-sm);
  font-weight: var(--fw-light);
  color: var(--color-text-muted);
}

.info-box__highlight {
  color: var(--terracotta-600);
  font-weight: var(--fw-medium);
}


/* ── 8. Locandina Section ────────────────────────────────── */
.locandina__wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--sp-12);
}

.locandina__frame {
  width: 100%;
  max-width: 28rem;
  background: white;
  border-radius: var(--radius-xl);
  padding: var(--sp-5);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--peach-50);
  overflow: hidden;
}

.locandina__inner {
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--peach-50);
}

.locandina__inner img {
  width: 100%;
  height: auto;
  transition: transform 1.5s ease-out;
}
.locandina__frame:hover .locandina__inner img {
  transform: scale(1.03);
}


/* ── 9. Cantine Grid ─────────────────────────────────────── */
.cantine-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-6);
}

.winery-card {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--sp-8);
  display: flex;
  flex-direction: column;
  height: 100%;
  position: relative;
  overflow: hidden;
  transition: all 0.6s var(--ease-out);
  will-change: transform, box-shadow;
}

.winery-card:hover {
  transform: translateY(-6px) scale(1.01);
  box-shadow: var(--shadow-xl);
  border-color: rgba(213, 124, 111, 0.2);
}

/* Glow on hover */
.winery-card__glow {
  position: absolute;
  right: -3rem;
  top: -3rem;
  width: 12rem;
  height: 12rem;
  background: rgba(196, 91, 77, 0.08);
  border-radius: 50%;
  filter: blur(40px);
  opacity: 0;
  transition: opacity 0.7s var(--ease-out);
  pointer-events: none;
  z-index: 0;
}
.winery-card:hover .winery-card__glow {
  opacity: 1;
}

.winery-card__body {
  flex: 1;
  position: relative;
  z-index: var(--z-card);
}

.winery-card__region {
  font-size: 10px;
  font-weight: var(--fw-bold);
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--terracotta-400);
  margin-bottom: var(--sp-2);
}

.winery-card__name {
  font-size: var(--fs-2xl);
  margin-bottom: var(--sp-3);
  letter-spacing: -0.01em;
}

.winery-card__desc {
  font-size: var(--fs-sm);
  font-weight: var(--fw-light);
  color: var(--color-text-muted);
  line-height: var(--lh-relaxed);
  display: -webkit-box;
  -webkit-line-clamp: 4;
  line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: all var(--duration-normal);
}
.winery-card:hover .winery-card__desc {
  -webkit-line-clamp: unset;
  line-clamp: unset;
}

.winery-card__footer {
  margin-top: auto;
  padding-top: var(--sp-5);
  border-top: 1px solid var(--peach-50);
  position: relative;
  z-index: var(--z-card);
}

.winery-card__link {
  font-size: var(--fs-xs);
  font-weight: var(--fw-bold);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--color-accent);
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  transition: color var(--duration-normal) var(--ease-out);
}
.winery-card__link:hover {
  color: var(--sunset-500);
}
.winery-card__link i {
  transition: transform var(--duration-normal) var(--ease-out);
}
.winery-card__link:hover i {
  transform: translateX(4px);
}

/* Featured guest badge */
.winery-card--featured {
  border-color: rgba(230, 170, 104, 0.3);
  box-shadow: var(--shadow-md), 0 0 0 1px rgba(230, 170, 104, 0.15);
}
.winery-card--featured:hover {
  border-color: rgba(230, 170, 104, 0.5);
}

.winery-card__badge {
  position: absolute;
  top: 0;
  right: 0;
  background: var(--sunset-500);
  color: var(--anthracite);
  font-size: 10px;
  font-weight: var(--fw-bold);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: var(--sp-1) var(--sp-3);
  border-radius: 0 var(--radius-lg) 0 var(--radius-sm);
  z-index: var(--z-card);
}


/* ── 10. Sponsor Grid ────────────────────────────────────── */
.sponsor-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-8);
}

.sponsor-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  background: var(--peach-50);
  border: 1px solid var(--peach-100);
  border-radius: var(--radius-lg);
  padding: var(--sp-8);
  position: relative;
  overflow: hidden;
  transition: all 0.6s var(--ease-out);
}

.sponsor-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(213, 124, 111, 0.2);
}

.sponsor-card__glow {
  position: absolute;
  right: -3rem;
  top: -3rem;
  width: 12rem;
  height: 12rem;
  background: rgba(230, 170, 104, 0.12);
  border-radius: 50%;
  filter: blur(40px);
  opacity: 0;
  transition: opacity 0.7s var(--ease-out);
  pointer-events: none;
}
.sponsor-card:hover .sponsor-card__glow {
  opacity: 1;
}

.sponsor-card__category {
  font-size: var(--fs-xs);
  font-weight: var(--fw-bold);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--sunset-600);
  margin-bottom: var(--sp-4);
}

.sponsor-card__name {
  font-family: 'Playfair Display', serif;
  font-size: var(--fs-xl);
  color: var(--anthracite);
  margin-bottom: var(--sp-5);
}

.sponsor-card__info {
  font-size: var(--fs-xs);
  color: var(--color-text-muted);
  line-height: var(--lh-relaxed);
  width: 100%;
  padding-bottom: var(--sp-4);
  border-bottom: 1px solid rgba(196, 91, 77, 0.06);
  margin-top: auto;
  font-weight: var(--fw-medium);
}

.sponsor-card__info p + p {
  margin-top: var(--sp-2);
}

.sponsor-card__action {
  margin-top: var(--sp-4);
  font-size: var(--fs-xs);
  font-weight: var(--fw-semibold);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--terracotta-600);
  transition: color var(--duration-normal) var(--ease-out);
}
.sponsor-card__action:hover {
  color: var(--sunset-500);
}

.sponsor-card__action--muted {
  color: var(--color-text-muted);
  cursor: default;
}


/* ── 11. Biglietti / Tickets ─────────────────────────────── */
.biglietti-pattern {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.15);
  opacity: 0.3;
  pointer-events: none;
}

.tickets-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-8);
}

.ticket-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-md);
  padding: var(--sp-6);
  display: flex;
  flex-direction: column;
  backdrop-filter: blur(8px);
  transition: all 0.6s var(--ease-out);
}

.ticket-card:hover {
  transform: translateY(-6px) scale(1.01);
  box-shadow: 0 30px 60px -15px rgba(0, 0, 0, 0.3);
  border-color: rgba(255, 255, 255, 0.2);
}

.ticket-card--premium {
  background: linear-gradient(135deg, rgba(42, 42, 53, 0.9) 0%, rgba(30, 30, 40, 0.95) 100%);
  border-color: rgba(230, 170, 104, 0.4);
  box-shadow: 0 20px 40px -10px rgba(230, 170, 104, 0.1);
  position: relative;
  overflow: hidden;
}

.ticket-card__premium-badge {
  position: absolute;
  top: 0;
  right: 0;
  background: var(--sunset-500);
  color: var(--anthracite);
  font-size: 10px;
  font-weight: var(--fw-bold);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  padding: var(--sp-1) var(--sp-3);
  border-radius: 0 0 0 var(--radius-sm);
  line-height: 1;
}

.ticket-card__name {
  font-family: 'Playfair Display', serif;
  font-size: var(--fs-2xl);
  color: var(--sunset-400);
  margin-bottom: var(--sp-2);
}

.ticket-card__price {
  font-family: 'Outfit', sans-serif;
  font-size: var(--fs-4xl);
  font-weight: var(--fw-semibold);
  color: white;
  margin-bottom: var(--sp-6);
}

.ticket-card__price-unit {
  font-size: var(--fs-lg);
  font-weight: var(--fw-regular);
  color: var(--color-text-light-muted);
}

.ticket-card__features {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: var(--sp-4);
  margin-bottom: var(--sp-8);
}

.ticket-feature {
  display: flex;
  align-items: flex-start;
  gap: var(--sp-3);
}

.ticket-feature__icon {
  flex-shrink: 0;
  width: 1.25rem;
  height: 1.25rem;
  color: var(--sunset-500);
  margin-top: 2px;
}

.ticket-feature__text {
  font-size: var(--fs-sm);
  color: var(--color-text-light-muted);
  line-height: var(--lh-relaxed);
}

.ticket-card--premium .ticket-feature__text {
  color: rgba(255, 255, 255, 0.85);
}


/* ── 12. Footer ──────────────────────────────────────────── */
.footer {
  background: var(--color-bg-dark);
  color: var(--color-text-light);
  padding-top: var(--sp-24);
  padding-bottom: var(--sp-12);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-12);
  margin-bottom: var(--sp-16);
  text-align: center;
  justify-items: center;
}

.footer__address-link {
  display: inline-flex;
  align-items: flex-start;
  gap: var(--sp-2);
  color: var(--terracotta-400);
  text-decoration: none;
  font-size: var(--fs-sm);
  transition: opacity var(--duration-normal) var(--ease-out), color var(--duration-normal) var(--ease-out);
  opacity: 0.9;
  text-align: left;
  margin-bottom: var(--sp-2);
}
.footer__address-link:hover {
  opacity: 1;
  color: var(--color-accent);
}

.footer__brand-name {
  font-family: 'Playfair Display', serif;
  font-size: var(--fs-3xl);
  font-weight: var(--fw-bold);
  color: white;
  margin-bottom: var(--sp-6);
  letter-spacing: -0.02em;
}

.footer__brand-accent {
  color: var(--terracotta-400);
  font-style: italic;
  font-weight: var(--fw-medium);
}

.footer__brand-desc {
  font-size: var(--fs-sm);
  font-weight: var(--fw-light);
  line-height: var(--lh-relaxed);
  opacity: 0.8;
  max-width: 30ch;
  margin-bottom: var(--sp-8);
}

.footer__social {
  display: flex;
  gap: var(--sp-4);
  justify-content: center;
  margin-top: var(--sp-6);
}

.footer__social-link {
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: var(--fs-2xl);
  transition: all var(--duration-normal) var(--ease-out);
}
.footer__social-link:hover {
  background: var(--color-accent);
  border-color: var(--color-accent);
}

.footer__heading {
  font-family: 'Outfit', sans-serif;
  font-size: var(--fs-sm);
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--sunset-500);
  margin-bottom: var(--sp-6);
  font-weight: var(--fw-semibold);
}

.footer__list {
  display: flex;
  flex-direction: column;
  gap: var(--sp-4);
  align-items: center;
}

.footer__list-item {
  display: flex;
  align-items: flex-start;
  gap: var(--sp-3);
  font-size: var(--fs-sm);
  opacity: 0.8;
  line-height: var(--lh-relaxed);
}

.footer__list-icon {
  color: var(--sunset-500);
  margin-top: 3px;
  font-size: var(--fs-lg);
  flex-shrink: 0;
}

.footer__nav-link {
  font-size: var(--fs-sm);
  opacity: 0.8;
  transition: all var(--duration-normal) var(--ease-out);
}
.footer__nav-link:hover {
  opacity: 1;
  color: var(--sunset-500);
}

.footer__qr-heading {
  font-weight: var(--fw-bold);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-size: var(--fs-xs);
  color: var(--terracotta-400);
  margin-bottom: var(--sp-6);
}

.footer__qr-frame {
  background: white;
  padding: var(--sp-3);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  display: inline-block;
  transition: transform var(--duration-normal) var(--ease-out);
}
.footer__qr-frame:hover {
  transform: rotate(3deg);
}

.footer__qr-frame img {
  width: 8rem;
  height: 8rem;
  object-fit: contain;
}

.footer__divider {
  border: none;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  margin: 0;
}

.footer__bottom {
  padding-top: var(--sp-8);
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
  font-size: var(--fs-xs);
  opacity: 0.6;
  font-weight: var(--fw-light);
}

.footer__bottom a {
  font-weight: var(--fw-medium);
  transition: color var(--duration-normal) var(--ease-out);
}
.footer__bottom a:hover {
  color: var(--terracotta-400);
}

.mobile-br {
  display: block;
}
.footer__donation-text {
  text-align: center;
  width: 100%;
}
@media (min-width: 768px) {
  .mobile-br {
    display: none;
  }
  .footer__donation-text {
    text-align: left;
    width: auto;
  }
}

/* ── 13. Animations — Scroll Reveal ──────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(32px) scale(0.98);
  transition: 
    opacity var(--duration-reveal) var(--ease-out),
    transform var(--duration-reveal) var(--ease-out);
  will-change: opacity, transform;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* Stagger children */
.stagger > .reveal:nth-child(1) { transition-delay: 0ms; }
.stagger > .reveal:nth-child(2) { transition-delay: 60ms; }
.stagger > .reveal:nth-child(3) { transition-delay: 120ms; }
.stagger > .reveal:nth-child(4) { transition-delay: 180ms; }
.stagger > .reveal:nth-child(5) { transition-delay: 240ms; }
.stagger > .reveal:nth-child(6) { transition-delay: 300ms; }
.stagger > .reveal:nth-child(7) { transition-delay: 360ms; }

/* Hero stagger */
.hero__content > .reveal:nth-child(1) { transition-delay: 200ms; }
.hero__content > .reveal:nth-child(2) { transition-delay: 400ms; }
.hero__content > .reveal:nth-child(3) { transition-delay: 600ms; }
.hero__content > .reveal:nth-child(4) { transition-delay: 800ms; }

.hero__visual.reveal { transition-delay: 1000ms; }


/* ── 14. 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;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }

  .hero {
    animation: none;
  }
}


/* ── 15. Responsive — Mobile First ───────────────────────── */

/* ≥ 480px (Small) */
@media (min-width: 480px) {
  .hero__actions {
    flex-direction: row;
    width: auto;
  }

  .info-box {
    flex-direction: row;
    align-items: center;
  }

  .cantine-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .sponsor-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ≥ 768px (Tablet) */
@media (min-width: 768px) {
  .container {
    padding-inline: var(--sp-12);
  }

  .section {
    padding-block: var(--sp-32);
  }

  .section-title {
    font-size: clamp(var(--fs-4xl), 6vw, var(--fs-6xl));
  }

  .nav-island {
    padding: var(--sp-4) var(--sp-6);
  }

  .tickets-grid {
    grid-template-columns: 1fr;
    max-width: 28rem;
    margin-inline: auto;
  }

  .ticket-card--premium {
    transform: translateY(-8px);
  }

  .footer__grid {
    grid-template-columns: repeat(2, 1fr);
    text-align: left;
    justify-items: start;
  }
  
  .footer__social {
    justify-content: flex-start;
    margin-top: var(--sp-8); /* Add extra breathing room on desktop */
  }
  
  .footer__list {
    align-items: flex-start;
  }

  .footer__bottom {
    flex-direction: row;
    justify-content: space-between;
  }
}

/* ≥ 1024px (Desktop) */
@media (min-width: 1024px) {
  .nav-links {
    display: flex;
  }

  .nav-mobile-group {
    display: none;
  }

  .hero__grid {
    grid-template-columns: 5fr 7fr;
  }
  
  .hero__content {
    order: 2;
  }

  .hero__visual {
    order: 1;
    height: 75vh;
  }
  
  .hero__badge {
    align-self: flex-start; /* Restore left alignment on desktop */
  }

  .hero__visual {
    height: 75vh;
  }

  .hero {
    padding-top: 0;
    padding-bottom: var(--sp-16);
  }

  .evento__grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--sp-16);
  }

  .evento__image-wrap {
    padding: var(--sp-8);
  }

  .cantine-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: var(--sp-8);
  }

  .sponsor-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: var(--sp-10);
  }

  /* Center the last card if it is alone on the last row */
  .cantine-grid > :last-child:nth-child(3n + 1),
  .sponsor-grid > :last-child:nth-child(3n + 1) {
    grid-column: 2;
  }

  .footer__grid {
    grid-template-columns: 1.5fr 1fr auto;
    gap: var(--sp-8);
  }
}

/* ≥ 1440px (Wide) */
@media (min-width: 1440px) {
  .container {
    padding-inline: var(--sp-6);
  }
}


/* ── 16. Focus & A11y Utilities ──────────────────────────── */
:focus-visible {
  outline: 3px solid var(--color-accent);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}

/* sr-only: screen reader only */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}