/* =============================================
   NOSTOS — Brand System
   ============================================= */

/* --- Fonts --- */
@font-face {
  font-family: 'Agharti';
  src: url('assets/fonts/Agharti-Bold.ttf') format('truetype');
  font-weight: 700; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Agharti';
  src: url('assets/fonts/Agharti-Black.ttf') format('truetype');
  font-weight: 900; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Agharti';
  src: url('assets/fonts/Agharti-BlackCondensed.ttf') format('truetype');
  font-weight: 900; font-stretch: condensed; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Acumin Variable Concept';
  src: url('assets/fonts/AcuminVariableConcept.otf') format('opentype');
  font-weight: 100 900; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Color Basic';
  src: url('assets/fonts/Color Basic.otf') format('opentype');
  font-weight: 400; font-style: normal; font-display: swap;
}

/* --- Tokens --- */
:root {
  --navy: #012354;
  --navy-deep: #010c24;
  --pink: #FF1053;
  --cyan: #66C7F4;
  --white: #FFFFFF;
  --white-60: rgba(255,255,255,0.6);
  --white-40: rgba(255,255,255,0.4);
  --white-08: rgba(255,255,255,0.08);
  --font-titolo: 'Agharti', 'Impact', 'Arial Narrow', sans-serif;
  --font-sottotitolo: 'Acumin Variable Concept', 'Inter', ui-sans-serif, sans-serif;
  --font-corpo: 'Color Basic', 'Acumin Variable Concept', monospace;
}

/* --- Reset --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { background: var(--navy-deep); -webkit-font-smoothing: antialiased; }
body {
  font-family: var(--font-sottotitolo);
  font-weight: 380;
  color: var(--white);
  background: var(--navy-deep);
  overflow-x: hidden;
  letter-spacing: 0.02em;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }
::selection { color: var(--white); background: var(--pink); }
.container { width: min(960px, calc(100% - 48px)); margin-inline: auto; }

/* =============================================
   HERO
   ============================================= */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.hero__bg-ship {
  position: absolute;
  left: 2%;
  top: 50%;
  transform: translateY(-50%);
  z-index: 0;
  pointer-events: none;
}
.hero__bg-ship img {
  width: min(109vw, 1350px);
  height: auto;
  opacity: 0.46;
}
.hero__title {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 0 24px;
}
.hero__title img {
  width: min(82vw, 720px);
  height: auto;
  margin: 0 auto;
}

.hero__action {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: clamp(28px, 4vh, 44px);
  will-change: transform, opacity;
}
.hero__action .btn-iscriviti--hero {
  min-width: 172px;
  padding: 14px 30px;
  font-size: clamp(.88rem, 1.2vw, 1.05rem);
}

/* Variante secondaria: contorno rosso, usato per le CTA principali */
.btn-iscriviti.btn-iscriviti--secondary {
  background: transparent;
  border: 1.5px solid var(--pink);
  color: var(--white);
}

.btn-iscriviti.btn-iscriviti--secondary:hover {
  background: var(--pink);
  border-color: var(--pink);
  box-shadow: 0 0 28px rgba(255,16,83,0.28);
}

.hero__cta {
  position: absolute;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
}
.hero__cta a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--white-08);
  color: var(--white-40);
  font-size: 1.1rem;
  transition: border-color 0.3s ease, color 0.3s ease;
}
.hero__cta a:hover {
  border-color: rgba(255,255,255,0.3);
  color: var(--white);
}

/* =============================================
   SEZIONE 1 — INFO ESSENZIALI
   ============================================= */
.info {
  padding: clamp(100px, 13vw, 170px) 0;
  text-align: center;
}

/* --- Data narrativa (riga unica) --- */
.info__date {
  display: flex;
  align-items: baseline;
  justify-content: center;
  flex-wrap: wrap;
  gap: clamp(10px, 1.8vw, 18px);
  margin-bottom: 28px;
}

.info__label {
  font-family: var(--font-corpo);
  font-size: clamp(0.75rem, 1vw, 0.85rem);
  font-weight: 400;
  color: var(--white-40);
  letter-spacing: 0.1em;
  text-transform: lowercase;
}

.info__num {
  font-family: var(--font-titolo);
  font-weight: 700;
  font-size: clamp(3.5rem, 9vw, 9rem);
  line-height: 0.8;
  letter-spacing: -0.02em;
  color: var(--white);
  font-variant-numeric: tabular-nums;
}

.info__month {
  font-family: var(--font-titolo);
  font-weight: 700;
  font-size: clamp(2rem, 5vw, 5rem);
  line-height: 0.84;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  color: var(--white);
}


.info__place {
  font-family: var(--font-sottotitolo);
  font-weight: 500;
  font-size: clamp(1.1rem, 2vw, 1.6rem);
  color: var(--cyan);
  letter-spacing: 0.06em;
  margin-top: 18px;
  will-change: transform, opacity;
}
.info__address {
  font-family: var(--font-corpo);
  font-size: clamp(0.82rem, 1.15vw, 0.98rem);
  line-height: 1.45;
  color: var(--white-40);
  letter-spacing: 0.06em;
  margin-top: 7px;
  will-change: transform, opacity;
}
.info__type {
  font-family: var(--font-corpo);
  font-size: clamp(0.78rem, 1vw, 0.88rem);
  color: var(--white-40);
  margin-top: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  will-change: transform, opacity;
}
.info__themes {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 40px;
}
.info__themes span {
  font-family: var(--font-sottotitolo);
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--white-40);
  padding: 7px 18px;
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 999px;
  letter-spacing: 0.08em;
  transition: border-color 0.35s ease, color 0.35s ease, background 0.35s ease;
  will-change: transform, opacity;
}
.info__themes span:hover {
  border-color: rgba(102,199,244,0.4);
  color: var(--cyan);
  background: rgba(102,199,244,0.04);
}
.info__action { margin-top: 44px; }

/* =============================================
   SEZIONE 2 — LA STORIA (filo continuo)
   ============================================= */
.storia {
  position: relative;
  padding: clamp(60px, 8vw, 100px) 0 clamp(100px, 14vw, 180px);
  isolation: isolate;
}

.storia__bg {
  position: absolute;
  right: -4%;
  top: 20%;
  z-index: 0;
  pointer-events: none;
}
.storia__bg img {
  width: 280px;
  height: auto;
  opacity: 0.04;
}

/* Filo continuo in overlay */
.storia__filo-continuo {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  overflow: visible;
}
.storia__filo-continuo svg {
  width: 100%;
  height: 100%;
}
.storia__filo-continuo path {
  /* dasharray via JS */
}

.storia__label {
  text-align: center;
  font-family: var(--font-corpo);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--pink);
  margin-bottom: clamp(80px, 12vh, 140px);
  position: relative;
  z-index: 1;
}

/* --- Fermata (paragrafi centrati) --- */
.fermata {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: clamp(60px, 10vh, 100px) 24px;
}

.fermata--key {
  padding: clamp(80px, 14vh, 140px) 24px;
}

.fermata__text {
  font-family: var(--font-sottotitolo);
  font-weight: 430;
  font-size: clamp(1.05rem, 1.2vw, 1.2rem);
  line-height: 1.6;
  letter-spacing: 0.02em;
  color: rgba(255,255,255,0.55);
  max-width: 520px;
  margin: 0 auto;
}

.fermata__text--lead {
  font-weight: 480;
  font-size: clamp(1.1rem, 1.35vw, 1.35rem);
  color: rgba(255,255,255,0.7);
}

/* Key phrase */
.storia__key {
  font-family: var(--font-titolo);
  font-weight: 700;
  font-size: clamp(2rem, 5vw, 4.5rem);
  line-height: 0.86;
  letter-spacing: 0;
  text-transform: uppercase;
  color: var(--white);
  max-width: 700px;
  margin: 0 auto;
}

/* =============================================
   SEZIONE 3 — ATMOSFERA
   ============================================= */
.atmosfera { padding: clamp(32px, 6vw, 72px) 24px clamp(104px, 14vw, 180px); }
.atmosfera__photo {
  position: relative;
  width: min(1240px, 100%);
  margin: 0 auto;
  overflow: hidden;
}
.atmosfera__photo::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(1,35,84,0) 46%, rgba(1,12,36,.78) 100%);
  pointer-events: none;
}
.atmosfera__photo img { display: block; width: 100%; height: auto; min-height: 360px; aspect-ratio: 16 / 9; object-fit: cover; object-position: center; filter: saturate(.82) contrast(1.05); }
.atmosfera__photo figcaption {
  position: absolute;
  z-index: 1;
  left: clamp(24px, 4vw, 60px);
  right: 24px;
  bottom: clamp(24px, 4vw, 52px);
  max-width: 520px;
  font-family: var(--font-titolo);
  font-size: clamp(1.5rem, 3.5vw, 3.25rem);
  line-height: .9;
  text-transform: uppercase;
}

/* =============================================
   SEZIONE 4 — INFORMAZIONI PRATICHE
   ============================================= */
.practical { padding: 0 0 clamp(110px, 15vw, 190px); }
.practical__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid rgba(255,255,255,.18);
}
.practical__block { padding: clamp(38px, 6vw, 72px) clamp(0px, 6vw, 72px) 8px 0; }
.practical__block + .practical__block { padding-left: clamp(28px, 6vw, 72px); padding-right: 0; border-left: 1px solid rgba(255,255,255,.18); }
.practical__eyebrow { font-family: var(--font-corpo); color: var(--pink); letter-spacing: .18em; font-size: .72rem; text-transform: uppercase; margin-bottom: 16px; }
.practical__block h2 { font-family: var(--font-titolo); font-weight: 700; font-size: clamp(2rem, 4vw, 3.4rem); line-height: .86; text-transform: uppercase; color: var(--white); margin-bottom: 22px; }
.practical__block p:not(.practical__eyebrow) { font-size: clamp(1rem, 1.35vw, 1.15rem); color: var(--white-60); line-height: 1.55; max-width: 420px; }
.text-link { display: inline-flex; gap: 10px; align-items: center; color: var(--cyan); font-family: var(--font-corpo); font-size: .74rem; letter-spacing: .1em; text-transform: uppercase; margin-top: 26px; border-bottom: 1px solid rgba(102,199,244,.35); padding-bottom: 5px; transition: color .2s ease, border-color .2s ease; }
.text-link:hover { color: var(--white); border-color: var(--white); }
.text-link:focus-visible, .btn-iscriviti:focus-visible, .hero__cta a:focus-visible { outline: 2px solid var(--cyan); outline-offset: 4px; }
.practical__actions { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; margin-top: 30px; }

.btn-iscriviti {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 16px 44px;
  font-family: var(--font-titolo);
  font-weight: 700;
  font-size: clamp(0.95rem, 1.3vw, 1.15rem);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--white);
  background: var(--pink);
  border-radius: 999px;
  transition: background 0.3s ease, box-shadow 0.3s ease, transform 0.2s ease;
  will-change: transform;
}

.btn-iscriviti:hover {
  background: #ff3068;
  box-shadow: 0 0 36px rgba(255,16,83,0.35);
}

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

/* =============================================
   FOOTER
   ============================================= */
.site-footer {
  border-top: 1px solid rgba(255,255,255,.1);
  padding: 48px 0 56px;
  text-align: center;
}
.site-footer__content { display: flex; align-items: center; justify-content: space-between; gap: 32px; text-align: left; }
.site-footer img { height: 28px; opacity: 0.7; }
.site-footer__contacts { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px 22px; max-width: 570px; }
.site-footer__contacts p, .site-footer__contacts a { font-family: var(--font-corpo); font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; }
.site-footer__contacts p { color: var(--white-40); width: 100%; }
.site-footer__contacts a { color: var(--cyan); transition: color .2s ease; }
.site-footer__contacts a:hover { color: var(--white); }

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 768px) {
  .hero__bg-ship { left: 0; }
  .hero__bg-ship img { width: min(105vw, 560px); opacity: 0.38; }
  .hero__title img { width: min(90vw, 520px); }
  .hero__action { gap: 10px; }

  .storia__bg { right: -20%; }
  .storia__bg img { width: 260px; opacity: 0.06; }

  .practical__grid { grid-template-columns: 1fr; }
  .practical__block, .practical__block + .practical__block { padding-inline: 0; }
  .practical__block + .practical__block { border-left: 0; border-top: 1px solid rgba(255,255,255,.18); margin-top: 48px; }
  .site-footer__content { flex-direction: column; text-align: center; }
  .site-footer__contacts { justify-content: center; }
}

@media (max-width: 480px) {
  .container { width: min(100% - 32px, 960px); }
  .hero__bg-ship img { width: min(108vw, 340px); opacity: 0.34; }
  .hero__action { flex-direction: column; align-items: center; }
  .hero__action .btn-iscriviti--hero { width: min(100%, 260px); }
  .info__themes { gap: 6px; }
  .info__themes span { font-size: 0.7rem; padding: 5px 12px; }
  .storia__bg img { width: 200px; opacity: 0.05; }
  .btn-iscriviti { width: 100%; padding: 14px 24px; text-align: center; }
  .atmosfera { padding-inline: 16px; }
  .atmosfera__photo img { min-height: 0; aspect-ratio: 3 / 2; }
}
