/* ══════════════════════════════════════════
   FONT SELF-HOSTED (nessuna connessione a Google)
   File in: fonts/
══════════════════════════════════════════ */

/* Oswald */
@font-face {
  font-family: 'Oswald';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/oswald-400.woff2') format('woff2');
}
@font-face {
  font-family: 'Oswald';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('fonts/oswald-600.woff2') format('woff2');
}
@font-face {
  font-family: 'Oswald';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('fonts/oswald-700.woff2') format('woff2');
}

/* Source Sans 3 */
@font-face {
  font-family: 'Source Sans 3';
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url('fonts/sourcesans3-300.woff2') format('woff2');
}
@font-face {
  font-family: 'Source Sans 3';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/sourcesans3-400.woff2') format('woff2');
}
@font-face {
  font-family: 'Source Sans 3';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('fonts/sourcesans3-600.woff2') format('woff2');
}
@font-face {
  font-family: 'Source Sans 3';
  font-style: italic;
  font-weight: 300;
  font-display: swap;
  src: url('fonts/sourcesans3-300-italic.woff2') format('woff2');
}
@font-face {
  font-family: 'Source Sans 3';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/sourcesans3-400-italic.woff2') format('woff2');
}

/* ══════════════════════════════════════════
   FFG TICINO 2031 — style.css
   ══════════════════════════════════════════ */

/* VARIABILI & RESET */
:root {
  --red:    #CC0000;
  --red-dk: #990000;
  --navy:   #0D1B3E;
  --sky:    #5BC8F5;
  --sky-lt: #C5EBF9;
  --white:  #FFFFFF;
  --gray:   #F4F4F2;
  --text:   #1a1a1a;
  --fh:     'Oswald', sans-serif;
  --fb:     'Source Sans 3', sans-serif;
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html  { scroll-behavior: smooth; }
body  { font-family: var(--fb); color: var(--text); overflow-x: hidden; }
img   { display: block; max-width: 100%; }
a     { color: inherit; text-decoration: none; }
ul    { list-style: none; }

/* ══════════════════════════════════════════
   NAVIGAZIONE
══════════════════════════════════════════ */
nav {
  position: fixed; top: 0; left: 0; width: 100%; z-index: 1000;
  background: var(--navy);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 2.5rem; height: 62px;
  box-shadow: 0 2px 24px rgba(0,0,0,0.35);
}
.nav-logo {
  font-family: var(--fh); font-weight: 700; font-size: 1.25rem;
  color: var(--white); letter-spacing: 0.05em; white-space: nowrap;
}
.nav-logo em { color: var(--sky); font-style: normal; }
.nav-links { display: flex; }
.nav-links a {
  font-family: var(--fh); font-size: 0.82rem; letter-spacing: 0.09em;
  text-transform: uppercase; color: rgba(197,235,249,0.95);
  padding: 0 1rem; height: 62px; display: flex; align-items: center;
  border-left: 1px solid rgba(255,255,255,0.07);
  transition: background 0.2s, color 0.2s;
}
.nav-links a:hover { background: rgba(91,200,245,0.12); color: var(--white); }
.nav-links a.nav-cta {
  background: var(--red); color: var(--white); font-weight: 700;
  margin-left: 0.8rem; border-left: none; padding: 0 1.4rem;
}
.nav-links a.nav-cta:hover { background: var(--red-dk); }
.nav-burger {
  display: none; flex-direction: column; gap: 5px;
  cursor: pointer; background: none; border: none; padding: 4px;
}
.nav-burger span { display: block; width: 24px; height: 2px; background: var(--white); border-radius: 2px; }

/* ══════════════════════════════════════════
   HERO
══════════════════════════════════════════ */
#home {
  min-height: 100vh; padding-top: 62px;
  background:
    linear-gradient(to bottom, rgba(13,27,62,0.60) 0%, rgba(13,27,62,0.25) 40%, rgba(13,27,62,0.85) 100%),
    url('images/hero.jpg') center / cover no-repeat;
  display: flex; align-items: center; justify-content: center;
  text-align: center; position: relative;
}
.hero-inner { color: var(--white); padding: 2rem; max-width: 880px; }
.hero-eyebrow {
  font-family: var(--fh); font-size: 0.95rem; letter-spacing: 0.28em;
  text-transform: uppercase; color: var(--sky); margin-bottom: 1rem;
}
.hero-title {
  font-family: var(--fh); font-weight: 700;
  font-size: clamp(3.8rem, 11vw, 7.5rem);
  line-height: 0.9; text-transform: uppercase; letter-spacing: 0.02em;
  color: var(--white); margin-bottom: 0.5rem;
}
.hero-title em { color: var(--red); font-style: normal; }
.hero-sub {
  font-family: var(--fh); font-size: clamp(1rem, 2.8vw, 1.5rem);
  font-weight: 400; color: var(--sky-lt); margin-bottom: 2rem;
}
.hero-date {
  display: inline-block; background: var(--red);
  font-family: var(--fh); font-weight: 700; font-size: 1.15rem;
  letter-spacing: 0.12em; padding: 0.55rem 2.2rem; margin-bottom: 1.6rem;
}
.hero-slogan {
  font-size: 1.05rem; font-weight: 300; font-style: italic;
  color: rgba(255,255,255,0.92); max-width: 520px; margin: 0 auto 2.4rem;
}
.hero-btn {
  display: inline-block; background: var(--red); color: var(--white);
  font-family: var(--fh); font-weight: 700; font-size: 1rem;
  letter-spacing: 0.14em; text-transform: uppercase; padding: 1rem 2.8rem;
  transition: background 0.2s, transform 0.2s;
}
.hero-btn:hover { background: var(--red-dk); transform: translateY(-2px); }
.hero-scroll {
  position: absolute; bottom: 2rem; left: 50%; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 0.4rem;
  color: rgba(255,255,255,0.55); font-family: var(--fh);
  font-size: 0.72rem; letter-spacing: 0.2em; text-transform: uppercase;
}
.hero-scroll::after { content: ''; width: 1px; height: 38px; background: rgba(255,255,255,0.35); }

/* ══════════════════════════════════════════
   SEZIONI COMUNI
══════════════════════════════════════════ */
section { padding: 5.5rem 0; }
.container { max-width: 1120px; margin: 0 auto; padding: 0 2rem; }
.section-tag {
  font-family: var(--fh); font-size: 0.78rem; letter-spacing: 0.28em;
  text-transform: uppercase; color: var(--red); margin-bottom: 0.5rem;
}
h2 {
  font-family: var(--fh); font-weight: 700;
  font-size: clamp(2rem, 5vw, 3rem); line-height: 1.05;
  text-transform: uppercase; color: var(--navy); margin-bottom: 1.5rem;
}
h2 em { color: var(--red); font-style: normal; }
p  { font-size: 1.05rem; line-height: 1.78; color: #333; }
.lead { font-size: 1.18rem; font-weight: 300; color: #444; line-height: 1.8; }

/* ══════════════════════════════════════════
   L'EVENTO
══════════════════════════════════════════ */
#evento { background: var(--white); }
.evento-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 4.5rem; align-items: center;
}
.evento-img {
  width: 100%; aspect-ratio: 16/9; object-fit: cover;
  box-shadow: 10px 10px 0 var(--sky-lt);
}
.stat-row { display: flex; gap: 2rem; margin-top: 2.2rem; flex-wrap: wrap; }
.stat-box { border-left: 4px solid var(--red); padding: 0.5rem 1.2rem; }
.stat-num   { font-family: var(--fh); font-size: 2.4rem; font-weight: 700; color: var(--navy); }
.stat-label { font-size: 0.82rem; color: #666; text-transform: uppercase; letter-spacing: 0.06em; }

/* ══════════════════════════════════════════
   IL TICINO — 4 CITTÀ
══════════════════════════════════════════ */
#ticino { background: var(--navy); color: var(--white); padding-bottom: 6rem; }
#ticino h2 { color: var(--white); }
#ticino > .container > p { color: rgba(255,255,255,0.95); margin-bottom: 0; }
.city-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; margin-top: 3rem;
}
.city-card { position: relative; overflow: hidden; aspect-ratio: 3/4; }
.city-card img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.55s ease; display: block;
}
.city-card:hover img { transform: scale(1.07); }
.city-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(13,27,62,0.92) 0%, rgba(13,27,62,0.05) 55%);
  display: flex; flex-direction: column; justify-content: flex-end; padding: 1.4rem;
}
.city-tag  {
  font-size: 0.78rem; color: var(--sky); text-transform: uppercase;
  letter-spacing: 0.12em; margin-bottom: 0.25rem;
}
.city-name {
  font-family: var(--fh); font-size: 1.35rem; font-weight: 700;
  color: var(--white); text-transform: uppercase; letter-spacing: 0.05em;
}

/* ══════════════════════════════════════════
   4 PILASTRI
══════════════════════════════════════════ */
#pilastri { background: var(--gray); }
.pilastri-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 2rem; margin-top: 3rem;
}
.pilastro {
  background: var(--white); overflow: hidden;
  box-shadow: 0 2px 18px rgba(0,0,0,0.07);
  transition: transform 0.25s, box-shadow 0.25s;
}
.pilastro:hover { transform: translateY(-5px); box-shadow: 0 10px 35px rgba(0,0,0,0.12); }
.pilastro img   { width: 100%; height: 220px; object-fit: cover; display: block; }
.pilastro-body  { padding: 1.8rem; }
.pilastro-accent { width: 38px; height: 4px; background: var(--red); margin-bottom: 1rem; }
.pilastro h3 {
  font-family: var(--fh); font-size: 1.5rem; font-weight: 700;
  text-transform: uppercase; color: var(--navy); margin-bottom: 0.8rem;
}

/* ══════════════════════════════════════════
   SOSTENIBILITÀ
   — immagine come sfondo pieno (stile v7)
   — FIX linea azzurra definitivo:
     card height fissa + body height fissa
     → linea = card_h - body_h = sempre identica
══════════════════════════════════════════ */
#sostenibilita {
  background: linear-gradient(145deg, var(--navy) 0%, #152a5a 100%);
  padding-bottom: 6rem;
}
#sostenibilita .section-tag { color: var(--sky); }
#sostenibilita h2           { color: var(--white); }
#sostenibilita h2 em        { color: var(--sky); }
.sost-intro { color: rgba(255,255,255,0.95) !important; }
.sost-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; margin-top: 3rem;
}
.sost-card {
  position: relative; overflow: hidden;
  height: 480px;                /* card fissa → l'immagine sfondo occupa tutto */
}
.sost-bg {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  transition: transform 0.55s ease;
}
.sost-card:hover .sost-bg { transform: scale(1.06); }
.sost-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top,
    rgba(13,27,62,0.98) 0%,
    rgba(13,27,62,0.65) 45%,
    rgba(13,27,62,0.10) 100%);
}
/* body height fissa: 480 - 240 = 240px di immagine visibile sopra la linea */
.sost-body {
  position: absolute; bottom: 0; left: 0; right: 0;
  height: 240px;                /* fissa → linea sempre a 240px dal bottom */
  padding: 1.6rem 1.8rem;
  border-top: 3px solid var(--sky);
  z-index: 1;
}
.sost-body h3 {
  font-family: var(--fh); font-size: 1.15rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--white); margin-bottom: 0.9rem;
}
.sost-body h3 span { color: var(--sky); display: block; font-size: 1.3rem; }
.sost-points li {
  font-size: 0.92rem; color: rgba(255,255,255,0.95);
  padding: 0.35rem 0; border-top: 1px solid rgba(255,255,255,0.15);
  display: flex; align-items: flex-start; gap: 0.5rem;
}
.sost-points li::before { content: '→'; color: var(--sky); flex-shrink: 0; }

/* ══════════════════════════════════════════
   CHI SIAMO
══════════════════════════════════════════ */
#chisiamo { background: var(--white); }
.chisiamo-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 5rem; align-items: center;
}
.chisiamo-img {
  width: 100%; aspect-ratio: 4/3; object-fit: cover; object-position: center;
  box-shadow: -10px 10px 0 var(--red); display: block;
}
.partner-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.7rem; margin-top: 2rem;
}
.partner-link {
  font-family: var(--fh); font-size: 0.82rem; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--navy);
  border: 1.5px solid var(--navy); padding: 0.55rem 0.8rem; text-align: center;
  transition: background 0.2s, color 0.2s;
  display: flex; align-items: center; justify-content: center; gap: 0.3rem;
}
.partner-link:hover { background: var(--navy); color: var(--white); }
.partner-link::after { content: '↗'; font-size: 0.72rem; opacity: 0.5; }

/* ══════════════════════════════════════════
   CTA BAND
══════════════════════════════════════════ */
.cta-band { background: var(--red); padding: 5rem 2rem; text-align: center; }
.cta-band h2 { color: var(--white); margin-bottom: 1rem; }
.cta-band p  { color: rgba(255,255,255,0.95); margin: 1rem auto 2rem; max-width: 540px; }
.btn-white {
  display: inline-block; background: var(--white); color: var(--red);
  font-family: var(--fh); font-weight: 700; font-size: 1rem;
  letter-spacing: 0.14em; text-transform: uppercase; padding: 1rem 3rem;
  transition: background 0.2s, color 0.2s;
}
.btn-white:hover { background: var(--navy); color: var(--white); }

/* ══════════════════════════════════════════
   FOOTER
══════════════════════════════════════════ */
footer { background: var(--navy); color: rgba(255,255,255,0.88); padding: 4rem 2rem 2rem; }
.footer-grid {
  max-width: 1120px; margin: 0 auto;
  display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 3.5rem;
}
.footer-logo {
  font-family: var(--fh); font-weight: 700; font-size: 1.6rem;
  color: var(--white); letter-spacing: 0.05em; margin-bottom: 0.8rem;
}
.footer-logo em { color: var(--sky); font-style: normal; }
.footer-tagline { color: rgba(255,255,255,0.88) !important; } /* fix testo grigio */
footer h4 {
  font-family: var(--fh); font-size: 0.82rem; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--sky); margin-bottom: 1rem;
}
footer p, footer address { font-size: 0.9rem; line-height: 1.85; font-style: normal; }
footer a { color: rgba(255,255,255,0.88); transition: color 0.2s; }
footer a:hover { color: var(--sky); }
.footer-links li {
  padding: 0.35rem 0; border-bottom: 1px solid rgba(255,255,255,0.08);
  font-size: 0.9rem;
}
.footer-bottom {
  max-width: 1120px; margin: 2.5rem auto 0;
  border-top: 1px solid rgba(255,255,255,0.1); padding-top: 1.5rem;
  display: flex; justify-content: space-between; align-items: center;
  font-size: 0.8rem; flex-wrap: wrap; gap: 0.5rem;
  color: rgba(255,255,255,0.88);
}

/* ══════════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════════ */
@media (max-width: 960px) {
  .evento-grid   { grid-template-columns: 1fr; gap: 2.5rem; }
  .city-grid     { grid-template-columns: repeat(2, 1fr); }
  .pilastri-grid { grid-template-columns: 1fr; }
  .sost-grid     { grid-template-columns: 1fr; }
  .chisiamo-grid { grid-template-columns: 1fr; }
  .footer-grid   { grid-template-columns: 1fr; gap: 2rem; }
}
@media (max-width: 860px) {
  .nav-links {
    display: none; flex-direction: column;
    position: absolute; top: 62px; left: 0; width: 100%;
    background: var(--navy); box-shadow: 0 8px 24px rgba(0,0,0,0.3);
  }
  .nav-links.open { display: flex; }
  .nav-links a    {
    height: 52px; border-left: none;
    border-top: 1px solid rgba(255,255,255,0.07); padding: 0 1.8rem;
  }
  .nav-links a.nav-cta { margin-left: 0; }
  .nav-burger { display: flex; }
  nav { padding: 0 1.4rem; }
}
@media (max-width: 540px) {
  .city-grid    { gap: 0.8rem; }
  .partner-grid { grid-template-columns: 1fr 1fr; }
}
