/* ==========================================================================
   OFIW 2028 — Ostia Fashion International Week
   Design system: navy profondo + oro + avorio · Cormorant Garamond / Montserrat
   ========================================================================== */

:root {
  --navy-950: #060f20;
  --navy-900: #0a1830;
  --navy-800: #0e1e3c;
  --navy-700: #132a52;
  --gold: #c9a24b;
  --gold-light: #e8cf9a;
  --gold-deep: #a87f2e;
  --ivory: #f7f3ea;
  --paper: #fdfbf6;
  --ink: #16233c;
  --muted: #5a6478;
  --line-light: rgba(14, 30, 60, 0.1);
  --line-gold: rgba(201, 162, 75, 0.35);

  --font-display: "Cormorant Garamond", "Times New Roman", serif;
  --font-body: "Montserrat", "Helvetica Neue", Arial, sans-serif;

  --container: 1200px;
  --header-h: 84px;
  --radius: 12px;
  --shadow: 0 18px 50px -18px rgba(10, 24, 48, 0.25);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.7;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, p { margin: 0; }
button { font: inherit; background: none; border: 0; cursor: pointer; color: inherit; }
sup { font-size: 0.55em; }

::selection { background: var(--gold); color: var(--navy-900); }

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

.container {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 4vw, 2.5rem);
}

/* ---------- Elementi ricorrenti ---------- */
.eyebrow {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--gold-deep);
  margin-bottom: 1.1rem;
}
.eyebrow::before {
  content: "";
  width: 30px;
  height: 1px;
  background: var(--gold);
  flex: none;
}
.eyebrow-gold { color: var(--gold-light); }

.section-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2.1rem, 4.4vw, 3.2rem);
  line-height: 1.12;
  letter-spacing: 0.01em;
  color: var(--navy-800);
  max-width: 21ch;
}
.section-intro {
  max-width: 640px;
  margin-top: 1.2rem;
  color: var(--muted);
  font-weight: 300;
  font-size: 1.05rem;
}

.section {
  padding-block: clamp(4rem, 9vw, 7.5rem);
  scroll-margin-top: calc(var(--header-h) - 12px);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.95rem 2.1rem;
  border-radius: 3px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-gold {
  background: linear-gradient(120deg, var(--gold-light), var(--gold) 55%, var(--gold-deep));
  color: var(--navy-900);
  box-shadow: 0 10px 26px -10px rgba(201, 162, 75, 0.65);
}
.btn-gold:hover { box-shadow: 0 16px 32px -10px rgba(201, 162, 75, 0.75); }
.btn-ghost {
  border: 1px solid var(--line-gold);
  color: #fff;
  background: rgba(255, 255, 255, 0.04);
}
.btn-ghost:hover { border-color: var(--gold-light); background: rgba(201, 162, 75, 0.12); }
.btn-sm { padding: 0.6rem 1.4rem; font-size: 0.72rem; }

/* ---------- Logo OFIW ---------- */
.brand { display: inline-flex; align-items: center; line-height: 1; }
.brand-logo {
  height: 58px;
  width: auto;
  filter: drop-shadow(0 4px 14px rgba(0, 0, 0, 0.35));
  transition: height 0.35s ease;
}
.site-header.is-scrolled .brand-logo { height: 44px; }
.site-footer .brand-logo { height: 84px; filter: none; }

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  transition: background-color 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
  border-bottom: 1px solid transparent;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding-block: 1.1rem;
  transition: padding 0.35s ease;
}
.site-header.is-scrolled {
  background: rgba(6, 15, 32, 0.92);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-bottom-color: rgba(201, 162, 75, 0.22);
}
.site-header.is-scrolled .header-inner { padding-block: 0.7rem; }

.site-nav { display: flex; gap: 2.1rem; }
.site-nav a {
  position: relative;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.85);
  padding-block: 0.35rem;
  transition: color 0.25s ease;
}
.site-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}
.site-nav a:hover { color: var(--gold-light); }
.site-nav a:hover::after { transform: scaleX(1); }

.header-actions { display: flex; align-items: center; gap: 1rem; }

.lang-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: rgba(255, 255, 255, 0.55);
  padding: 0.4rem 0.2rem;
}
.lang-toggle .lang { transition: color 0.25s ease; padding: 0.15rem 0.1rem; }
.lang-toggle .lang.is-active { color: var(--gold-light); }
.lang-toggle:hover .lang { color: var(--gold-light); }
.lang-sep { color: rgba(255, 255, 255, 0.3); }

.nav-burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 0.5rem 0.3rem;
}
.nav-burger span {
  width: 22px;
  height: 1.5px;
  background: #fff;
  transition: transform 0.3s ease, opacity 0.3s ease;
}
.nav-burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background: url("../assets/img/hero.jpg") center 62% / cover no-repeat, var(--navy-900);
}
.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(97deg, rgba(6, 15, 32, 0.94) 0%, rgba(6, 15, 32, 0.78) 34%, rgba(6, 15, 32, 0.28) 62%, rgba(6, 15, 32, 0.42) 100%),
    linear-gradient(to top, rgba(6, 15, 32, 0.85) 0%, rgba(6, 15, 32, 0) 34%);
}
.hero-content {
  position: relative;
  z-index: 1;
  padding-block: calc(var(--header-h) + 3rem) 6rem;
  max-width: var(--container);
}
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--gold-light);
  margin-bottom: 1.6rem;
}
.hero-eyebrow::before { content: ""; width: 44px; height: 1px; background: var(--gold); }
.hero-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2.7rem, 6.4vw, 5rem);
  line-height: 1.06;
  color: #fff;
  text-wrap: balance;
}
.hero-title em {
  font-style: italic;
  background: linear-gradient(120deg, var(--gold-light), var(--gold) 60%, var(--gold-deep));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-sub {
  max-width: 560px;
  margin-top: 1.4rem;
  font-weight: 300;
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.82);
}
.hero-date {
  margin-top: 1.8rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.3rem, 2.4vw, 1.7rem);
  letter-spacing: 0.14em;
  color: var(--gold-light);
}
.hero-date span { text-transform: lowercase; font-style: italic; }

.countdown {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 1.4rem;
}
.count-unit {
  min-width: 78px;
  padding: 0.75rem 0.9rem 0.65rem;
  text-align: center;
  border: 1px solid var(--line-gold);
  border-radius: 6px;
  background: rgba(6, 15, 32, 0.55);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}
.count-unit span {
  display: block;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 2rem;
  line-height: 1;
  color: var(--gold-light);
  font-variant-numeric: tabular-nums;
}
.count-unit small {
  display: block;
  margin-top: 0.35rem;
  font-size: 0.58rem;
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.6);
}
.count-label {
  margin-top: 0.8rem;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2.4rem;
}

.hero-scroll {
  position: absolute;
  left: 50%;
  bottom: 2rem;
  transform: translateX(-50%);
  z-index: 1;
  width: 1px;
  height: 52px;
  background: linear-gradient(to bottom, transparent, var(--gold-light));
  overflow: visible;
}
.hero-scroll span {
  position: absolute;
  top: 0;
  left: 50%;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--gold-light);
  transform: translateX(-50%);
  animation: scroll-dot 2.2s ease-in-out infinite;
}
@keyframes scroll-dot {
  0% { top: 0; opacity: 0; }
  25% { opacity: 1; }
  75% { opacity: 1; }
  100% { top: 44px; opacity: 0; }
}

/* ---------- Pilastri ---------- */
.section-pillars { background: var(--paper); }
.pillars-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.4rem;
  margin-top: 3rem;
}
.pillar-card {
  background: #fff;
  border: 1px solid var(--line-light);
  border-top: 2px solid transparent;
  border-radius: var(--radius);
  padding: 2.1rem 1.8rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}
.pillar-card:hover {
  transform: translateY(-6px);
  border-top-color: var(--gold);
  box-shadow: var(--shadow);
}
.pillar-icon {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: var(--navy-800);
  color: var(--gold-light);
  margin-bottom: 1.3rem;
}
.pillar-icon svg { width: 26px; height: 26px; }
.pillar-card h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.45rem;
  color: var(--navy-800);
}
.pillar-card p { margin-top: 0.5rem; font-size: 0.92rem; color: var(--muted); }

/* ---------- Visione ---------- */
.section-vision { background: var(--ivory); }
.vision-grid {
  display: grid;
  grid-template-columns: 1.35fr 0.9fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}
.vision-text p:not(.eyebrow) { margin-top: 1.2rem; color: #3d4a63; font-weight: 300; }
.vision-text strong { color: var(--navy-800); font-weight: 600; }
.vision-quote {
  position: relative;
  background: linear-gradient(150deg, var(--navy-800), var(--navy-950));
  border-left: 3px solid var(--gold);
  border-radius: var(--radius);
  padding: 2.6rem 2.2rem 2.2rem;
  box-shadow: var(--shadow);
}
.vision-quote p {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
  font-size: 1.4rem;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.92);
}
.vision-quote strong { color: var(--gold-light); font-weight: 600; }
.quote-mark {
  position: absolute;
  top: -0.1em;
  left: 0.35em;
  font-family: var(--font-display);
  font-size: 5rem;
  line-height: 1;
  color: var(--gold);
  opacity: 0.55;
}

/* ---------- Progetto ---------- */
.section-project {
  background:
    radial-gradient(1100px 500px at 85% -10%, rgba(201, 162, 75, 0.14), transparent 60%),
    linear-gradient(160deg, var(--navy-800), var(--navy-950));
}
.section-project .section-title { color: #fff; max-width: 24ch; }
.section-project .section-intro { color: rgba(255, 255, 255, 0.68); }
.project-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.4rem;
  margin-top: 3rem;
}
.project-card {
  position: relative;
  border: 1px solid rgba(201, 162, 75, 0.28);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.035);
  padding: 2rem 1.9rem;
  transition: transform 0.3s ease, background-color 0.3s ease, border-color 0.3s ease;
}
.project-card:hover {
  transform: translateY(-5px);
  border-color: rgba(201, 162, 75, 0.55);
  background: rgba(201, 162, 75, 0.07);
}
.project-num {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 2.1rem;
  color: var(--gold);
  opacity: 0.9;
}
.project-card h3 {
  margin-top: 0.7rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.5rem;
  color: var(--gold-light);
}
.project-card p { margin-top: 0.6rem; font-size: 0.94rem; color: rgba(255, 255, 255, 0.72); }

/* ---------- Programma ---------- */
.section-program { background: var(--paper); }
.program-timeline {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 1rem;
  margin-top: 3.2rem;
}
.day-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--line-light);
  border-radius: var(--radius);
  padding: 1.6rem 1.2rem 1.4rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.day-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.day-date {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  margin-top: -2.35rem;
  border-radius: 50%;
  background: #fff;
  border: 1.5px solid var(--gold);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.4rem;
  color: var(--navy-800);
}
.day-week {
  margin-top: 0.9rem;
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--gold-deep);
}
.day-name {
  margin-top: 0.4rem;
  font-size: 0.98rem;
  font-weight: 700;
  line-height: 1.3;
  color: var(--navy-800);
}
.day-desc { margin-top: 0.55rem; font-size: 0.82rem; line-height: 1.55; color: var(--muted); }
.day-tag {
  margin-top: auto;
  padding-top: 1rem;
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold-light);
}
.day-highlight {
  background: linear-gradient(165deg, var(--navy-700), var(--navy-950));
  border-color: var(--gold);
}
.day-highlight .day-date { background: var(--navy-800); color: var(--gold-light); }
.day-highlight .day-week { color: var(--gold); }
.day-highlight .day-name { color: #fff; }
.day-highlight .day-desc { color: rgba(255, 255, 255, 0.75); }
.program-note {
  max-width: 860px;
  margin-top: 2.6rem;
  padding: 1rem 1.5rem;
  border-left: 3px solid var(--gold);
  background: var(--ivory);
  border-radius: 0 8px 8px 0;
  font-size: 0.82rem;
  color: #5a6478;
}

/* ---------- Momenti chiave ---------- */
.section-moments {
  background:
    radial-gradient(900px 420px at 12% 0%, rgba(201, 162, 75, 0.12), transparent 55%),
    linear-gradient(200deg, var(--navy-900), var(--navy-950));
}
.section-moments .section-title { color: #fff; }
.moments-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.4rem;
  margin-top: 3rem;
}
.moment-card {
  border: 1px solid rgba(201, 162, 75, 0.26);
  border-radius: var(--radius);
  background: linear-gradient(165deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.015));
  padding: 1.9rem 1.7rem;
  transition: transform 0.3s ease, border-color 0.3s ease;
}
.moment-card:hover { transform: translateY(-5px); border-color: rgba(201, 162, 75, 0.6); }
.moment-card h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.4rem;
  color: var(--gold-light);
}
.moment-card p { margin-top: 0.6rem; font-size: 0.9rem; color: rgba(255, 255, 255, 0.7); }

/* ---------- Contatti ---------- */
.section-contact { background: var(--ivory); }
.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: start;
}
.contact-text .section-title { max-width: 14ch; }
.contact-text p:not(.eyebrow) { margin-top: 1.1rem; color: var(--muted); font-weight: 300; }
.contact-text .btn { margin-top: 2rem; }
.contact-list {
  display: grid;
  gap: 0.9rem;
}
.contact-list li {
  display: flex;
  align-items: center;
  gap: 1.1rem;
  background: #fff;
  border: 1px solid var(--line-light);
  border-radius: var(--radius);
  padding: 1.05rem 1.4rem;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.contact-list li:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.contact-icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--navy-800);
  color: var(--gold-light);
}
.contact-icon svg { width: 21px; height: 21px; }
.contact-list strong {
  display: block;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold-deep);
}
.contact-list a,
.contact-list span:not(.contact-icon) {
  font-size: 0.93rem;
  color: var(--navy-800);
  word-break: break-word;
}
.contact-list a { border-bottom: 1px solid transparent; transition: color 0.25s ease, border-color 0.25s ease; }
.contact-list a:hover { color: var(--gold-deep); border-bottom-color: var(--gold); }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy-950);
  border-top: 1px solid rgba(201, 162, 75, 0.3);
  padding-block: 3.2rem 2.4rem;
}
.footer-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: end;
}
.footer-tagline {
  margin-top: 1.3rem;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.2rem;
  color: var(--gold-light);
}
.footer-pillars {
  margin-top: 0.6rem;
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
}
.footer-credits p { font-size: 0.82rem; color: rgba(255, 255, 255, 0.55); }
.footer-fine { margin-top: 0.5rem; font-size: 0.72rem !important; color: rgba(255, 255, 255, 0.35) !important; }

/* ---------- Reveal on scroll ---------- */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.is-visible { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .pillars-grid, .moments-grid { grid-template-columns: repeat(2, 1fr); }
  .program-timeline {
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: minmax(200px, 240px);
    overflow-x: auto;
    padding-bottom: 1rem;
    scroll-snap-type: x mandatory;
    margin-inline: calc(-1 * clamp(1.25rem, 4vw, 2.5rem));
    padding-inline: clamp(1.25rem, 4vw, 2.5rem);
  }
  .day-card { scroll-snap-align: start; }
  .day-date { margin-top: 0; }
}
@media (max-width: 820px) {
  .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    background: rgba(6, 15, 32, 0.97);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(201, 162, 75, 0.25);
    padding: 0.6rem 0 1rem;
    display: none;
  }
  .site-nav.is-open { display: flex; }
  .site-nav a { padding: 0.85rem clamp(1.25rem, 4vw, 2.5rem); }
  .site-nav a::after { display: none; }
  .nav-burger { display: flex; }
  .header-cta { display: none; }

  .vision-grid, .contact-grid { grid-template-columns: 1fr; }
  .project-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; align-items: start; }

  .hero { text-align: left; }
  .hero-bg { background-position: 30% center; }
  .hero-content { padding-block: calc(var(--header-h) + 2.5rem) 5rem; }
  .count-unit { min-width: 64px; padding: 0.6rem 0.6rem 0.5rem; }
  .count-unit span { font-size: 1.5rem; }
}
@media (max-width: 520px) {
  .pillars-grid, .moments-grid { grid-template-columns: 1fr; }
  .hero-actions .btn { width: 100%; }
  .brand-logo { height: 42px; }
  .site-header.is-scrolled .brand-logo { height: 36px; }
  .site-footer .brand-logo { height: 64px; }
}

/* ---------- Motion ridotta ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}
