﻿/* ==========================================================================
   NT Holding — foglio di stile principale
   ========================================================================== */

/* Font del marchio (manuale Tellem): Times Sans Serif — Mundo da Lua */
@font-face {
  font-family: "Times Sans Serif";
  src: url("../fonts/times-sans-serif-v2.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  /* Palette da manuale (Tellem, 2022) + blu notte derivati dalla stessa tinta del blu marchio */
  --blue-950: #05192b;      /* blu notte */
  --blue-900: #0a2842;      /* blu notte chiaro */
  --blue-800: #0d3a60;
  --blue: #114c81;          /* blu del marchio */
  --blue-600: #1f66a3;
  --sky: #9bcbec;           /* azzurro del marchio */
  --sky-300: #c0def3;
  --sky-100: #e5f1fb;
  --sky-50: #f3f8fd;
  --white: #ffffff;
  --ink: #0d2238;
  --muted: #666666;         /* grigio K 60% */
  --grey-30: #b3b3b3;       /* grigio K 30% */
  --line: #dde6ee;

  --font-display: "Times Sans Serif", "Marcellus", serif;
  --font-body: "Manrope", "Segoe UI", system-ui, sans-serif;

  --radius: 18px;
  --radius-lg: 28px;
  --shadow: 0 1px 2px rgba(6, 26, 46, .04), 0 12px 32px -12px rgba(6, 26, 46, .14);
  --shadow-lg: 0 2px 4px rgba(6, 26, 46, .05), 0 30px 60px -20px rgba(6, 26, 46, .25);
  --ease: cubic-bezier(.2, .7, .2, 1);
  --container: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --header-h: 84px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.7;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
p { margin: 0 0 1em; }
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.12;
  letter-spacing: .005em;
  margin: 0 0 .5em;
  color: var(--blue-900);
}
h1 { font-size: clamp(2.6rem, 6.2vw, 5.2rem); }
h2 { font-size: clamp(2rem, 4vw, 3.1rem); }
/* titoli piccoli (card, nomi, voci): Manrope, dove il font del marchio rende meno */
h3 { font-family: var(--font-body); font-weight: 700; letter-spacing: -.01em; line-height: 1.3; font-size: clamp(1.1rem, 1.5vw, 1.25rem); }
::selection { background: var(--sky-300); color: var(--blue-950); }
:focus-visible { outline: 2px solid var(--blue-600); outline-offset: 3px; border-radius: 6px; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: clamp(72px, 10vw, 140px) 0; position: relative; }
.section--tint { background: var(--sky-50); }
.section--tight { padding: clamp(56px, 7vw, 96px) 0; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  font-size: .78rem; font-weight: 700; letter-spacing: .2em; text-transform: uppercase;
  color: var(--blue-600); margin-bottom: 20px;
}
.eyebrow::before { content: ""; width: 28px; height: 1px; background: currentColor; }
.lead { font-size: clamp(1.08rem, 1.4vw, 1.25rem); color: var(--muted); max-width: 60ch; }

.skip-link { position: absolute; left: -999px; top: 8px; z-index: 200; background: var(--white); padding: 8px 14px; border-radius: 8px; }
.skip-link:focus { left: 8px; }

/* ---------- Pulsanti ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 15px 26px; border-radius: 999px;
  font-weight: 700; font-size: .95rem; letter-spacing: .01em;
  border: 1px solid transparent; cursor: pointer;
  transition: background .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease), transform .3s var(--ease);
}
.btn svg { width: 18px; height: 18px; transition: transform .3s var(--ease); }
.btn:hover svg { transform: translateX(4px); }
.btn--primary { background: var(--blue); color: var(--white); }
.btn--primary:hover { background: var(--blue-800); }
.btn--light { background: var(--white); color: var(--blue-900); }
.btn--light:hover { background: var(--sky-100); }
.btn--ghost { border-color: rgba(255, 255, 255, .35); color: var(--white); }
.btn--ghost:hover { border-color: var(--white); background: rgba(255, 255, 255, .08); }
.btn--outline { border-color: var(--line); color: var(--blue-900); background: var(--white); }
.btn--outline:hover { border-color: var(--blue); }

.link-arrow { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; color: var(--blue); font-size: .95rem; }
.link-arrow svg { width: 16px; height: 16px; transition: transform .3s var(--ease); }
.link-arrow:hover svg { transform: translateX(4px); }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  height: var(--header-h);
  transition: background .4s var(--ease), box-shadow .4s var(--ease), height .4s var(--ease);
}
.site-header .container { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: flex; align-items: center; flex-shrink: 0; }
.brand__logo { display: block; height: 42px; width: auto; aspect-ratio: 4500 / 904; overflow: visible; transition: filter .4s var(--ease), height .4s var(--ease); }
/* ali del logo: entrano per gruppi al caricamento (in unità SVG serve uno spostamento più ampio) */
.brand__wings { --petal-y: 110px; }
.site-header--dark .brand__logo { filter: brightness(0) invert(1); }
.site-header.is-scrolled {
  height: 70px;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  box-shadow: 0 1px 0 var(--line);
}
.site-header.is-scrolled .brand__logo { filter: none; height: 36px; }

.nav { display: flex; align-items: center; gap: 36px; }
.nav__list { display: flex; gap: 6px; list-style: none; margin: 0; padding: 0; }
.nav__link {
  position: relative; display: block; padding: 8px 14px;
  font-size: .93rem; font-weight: 600; color: var(--blue-900);
  transition: color .3s var(--ease);
}
.nav__link::after {
  content: ""; position: absolute; left: 14px; right: 14px; bottom: 2px; height: 1.5px;
  background: currentColor; transform: scaleX(0); transform-origin: left;
  transition: transform .35s var(--ease);
}
.nav__link:hover::after, .nav__link[aria-current="page"]::after { transform: scaleX(1); }
.site-header--dark:not(.is-scrolled) .nav__link { color: var(--white); }

.lang { display: flex; align-items: center; gap: 4px; font-size: .8rem; font-weight: 700; letter-spacing: .08em; }
.lang a { padding: 6px 8px; border-radius: 8px; color: var(--muted); transition: color .3s; }
.lang a[aria-current="true"] { color: var(--blue-900); }
.lang span { color: var(--line); }
.site-header--dark:not(.is-scrolled) .lang a { color: rgba(255, 255, 255, .55); }
.site-header--dark:not(.is-scrolled) .lang a[aria-current="true"] { color: var(--white); }
.site-header--dark:not(.is-scrolled) .lang span { color: rgba(255, 255, 255, .3); }

.nav-toggle {
  display: none; width: 46px; height: 46px; border-radius: 50%;
  border: 1px solid var(--line); background: var(--white); cursor: pointer;
  align-items: center; justify-content: center; flex-direction: column; gap: 5px; padding: 0;
}
.nav-toggle span { width: 18px; height: 1.5px; background: var(--blue-900); transition: transform .35s var(--ease), opacity .2s; }
.site-header--dark:not(.is-scrolled) .nav-toggle { background: transparent; border-color: rgba(255, 255, 255, .35); }
.site-header--dark:not(.is-scrolled) .nav-toggle span { background: var(--white); }
body.nav-open .nav-toggle span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
body.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
body.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

@media (max-width: 1060px) {
  .nav-toggle { display: inline-flex; position: relative; z-index: 2; }
  .nav {
    position: fixed; inset: 0; z-index: 1;
    flex-direction: column; justify-content: center; align-items: flex-start; gap: 40px;
    padding: 100px var(--gutter) 40px;
    background: var(--blue-950);
    opacity: 0; visibility: hidden; transition: opacity .4s var(--ease), visibility .4s;
  }
  body.nav-open .nav { opacity: 1; visibility: visible; }
  body.nav-open { overflow: hidden; }
  body.nav-open .site-header .brand__logo { filter: brightness(0) invert(1); position: relative; z-index: 2; }
  body.nav-open .site-header.is-scrolled { background: transparent; box-shadow: none; backdrop-filter: none; }
  body.nav-open .nav-toggle { background: transparent; border-color: rgba(255, 255, 255, .35); }
  body.nav-open .nav-toggle span { background: var(--white); }
  .nav__list { flex-direction: column; gap: 4px; }
  .nav__link, .site-header--dark:not(.is-scrolled) .nav__link { font-family: var(--font-display); font-size: 2.2rem; font-weight: 400; color: var(--white); padding: 6px 0; }
  .nav__link::after { left: 0; right: auto; width: 40px; }
  .lang a { color: rgba(255, 255, 255, .55); font-size: .95rem; }
  .lang a[aria-current="true"] { color: var(--white); }
}

/* ---------- Simbolo (petali) ---------- */
/* Entrata: le ali compaiono una dopo l'altra (--i = ordine, impostato nel markup).
   "backwards" lascia libero il transform a fine animazione per gli effetti al passaggio del mouse. */
.petals path { transform-box: fill-box; transform-origin: center; }
.petals:not(.is-in):not(.petals--static) path { opacity: 0; }
.petals.is-in:not(.petals--static) path { animation: petal-in 1.1s var(--ease) backwards; animation-delay: calc(.05s + var(--i, 0) * .1s); }
@keyframes petal-in { from { opacity: 0; transform: translateY(var(--petal-y, 18px)) scale(.96); } to { opacity: 1; transform: none; } }

/* ---------- Hero (home) ---------- */
.hero {
  position: relative; min-height: 100vh; min-height: 100svh;
  display: flex; align-items: center;
  padding: calc(var(--header-h) + 40px) 0 100px;
  color: var(--white);
  background:
    radial-gradient(1200px 600px at 85% 20%, rgba(155, 203, 236, .22), transparent 60%),
    radial-gradient(900px 700px at 0% 100%, rgba(31, 103, 163, .45), transparent 60%),
    linear-gradient(160deg, var(--blue-900) 0%, var(--blue-950) 100%);
  overflow: hidden; isolation: isolate;
}
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image: linear-gradient(rgba(255, 255, 255, .035) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .035) 1px, transparent 1px);
  background-size: 80px 80px;
  mask-image: radial-gradient(ellipse at 70% 40%, #000 20%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at 70% 40%, #000 20%, transparent 70%);
}
.hero__grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 60px; align-items: center; }
.hero .eyebrow { color: var(--sky); }
.hero h1 { color: var(--white); margin-bottom: 28px; }
.hero h1 em { font-style: normal; color: var(--sky); }
.hero__text { font-size: clamp(1.1rem, 1.5vw, 1.3rem); color: rgba(255, 255, 255, .78); max-width: 34ch; margin-bottom: 44px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; }
/* parallasse leggero allo scroll (--parallax impostato da JS) + lenta fluttuazione */
.hero__art { position: relative; transform: translate3d(0, var(--parallax, 0px), 0); will-change: transform; }
.hero__art svg { width: 100%; max-width: 480px; margin-left: auto; filter: drop-shadow(0 30px 60px rgba(0, 0, 0, .25)); animation: float 7s ease-in-out 2s infinite; }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
.hero__art path, .symbol__art path { animation-duration: 1.4s !important; }
.hero__scroll {
  position: absolute; left: 50%; bottom: 32px; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  font-size: .7rem; letter-spacing: .25em; text-transform: uppercase; color: rgba(255, 255, 255, .55);
}
.hero__scroll i { width: 1px; height: 44px; background: linear-gradient(var(--sky), transparent); animation: scroll-line 2.2s var(--ease) infinite; transform-origin: top; }
@keyframes scroll-line { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); } 100% { transform: scaleY(1); opacity: 0; } }
.hero__motto {
  position: absolute; right: var(--gutter); bottom: 36px;
  font-family: var(--font-body); font-weight: 500; font-size: .75rem; letter-spacing: .3em; text-transform: uppercase; color: rgba(255, 255, 255, .4);
}

@media (max-width: 900px) {
  .hero__grid { grid-template-columns: 1fr; gap: 40px; }
  .hero__art { order: -1; }
  .hero__art svg { max-width: 190px; margin: 0; }
  .hero__motto, .hero__scroll { display: none; }
}

/* ---------- Page hero (pagine interne) ---------- */
.page-hero {
  position: relative; overflow: hidden; isolation: isolate;
  padding: calc(var(--header-h) + clamp(60px, 9vw, 120px)) 0 clamp(60px, 8vw, 110px);
  color: var(--white);
  background:
    radial-gradient(900px 500px at 90% 0%, rgba(155, 203, 236, .2), transparent 60%),
    linear-gradient(160deg, var(--blue-900), var(--blue-950));
}
.page-hero h1 { color: var(--white); font-size: clamp(2.6rem, 6vw, 4.6rem); margin-bottom: 18px; }
.page-hero .lead { color: rgba(255, 255, 255, .75); max-width: 820px; }
/* stessa altezza per tutte le pagine interne, a prescindere da quante righe occupa la frase */
.page-hero:not(.page-hero--article) { min-height: 580px; }
@media (max-width: 700px) { .page-hero:not(.page-hero--article) { min-height: 490px; } }
.page-hero .eyebrow { color: var(--sky); }
/* Simbolo intero, ancorato all'angolo in basso a destra della fascia; il testo può passarci sopra */
.page-hero__art {
  position: absolute; z-index: -1;
  right: 0; bottom: 0;
  width: clamp(240px, 30vw, 400px);
}
/* Dettaglio news: resta la versione "sbordata" in basso a destra */
.page-hero--article .page-hero__art { right: -40px; bottom: -60px; width: clamp(220px, 32vw, 420px); opacity: .9; }
.breadcrumb { display: flex; gap: 10px; font-size: .82rem; color: rgba(255, 255, 255, .55); margin-bottom: 26px; }
.breadcrumb a:hover { color: var(--white); }
@media (max-width: 700px) {
  /* mobile: grande e dall'angolo, più tenue perché il testo ci passa sopra */
  .page-hero__art { width: 240px; opacity: .45; }
  .page-hero--article .page-hero__art { width: 220px; opacity: .35; }
}

/* ---------- Intro / statement ---------- */
.statement { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 7vw, 100px); align-items: start; }
.statement__big { font-family: var(--font-display); font-size: clamp(1.8rem, 3.2vw, 2.7rem); line-height: 1.25; color: var(--blue-900); margin: 0; }
.statement__big em { font-style: normal; color: var(--blue-600); }
.statement__body { color: var(--muted); padding-top: 10px; }
.statement__body p:last-of-type { margin-bottom: 28px; }
@media (max-width: 820px) { .statement { grid-template-columns: 1fr; } }

/* ---------- Pilastri ---------- */
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 30px; margin-bottom: clamp(40px, 5vw, 64px); flex-wrap: wrap; }
.section-head h2 { margin: 0; max-width: 18ch; }
.section-head p { margin: 0; max-width: 46ch; color: var(--muted); }

.pillars { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.pillar {
  position: relative; padding: 36px 28px 34px; border-radius: var(--radius-lg);
  background: var(--white); border: 1px solid var(--line);
  transition: transform .5s var(--ease), box-shadow .5s var(--ease), border-color .5s var(--ease);
  overflow: hidden;
}
.pillar:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: transparent; }
.pillar__num { font-family: var(--font-body); font-weight: 600; font-size: .85rem; color: var(--blue-600); letter-spacing: .15em; margin-bottom: 56px; display: block; }
.pillar h3 { margin-bottom: 12px; }
.pillar p { color: var(--muted); margin: 0; font-size: .98rem; }
.pillar__leaf { position: absolute; top: 30px; right: 30px; width: 44px; height: 44px; }
@media (max-width: 1080px) { .pillars { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .pillars { grid-template-columns: 1fr; } .pillar__num { margin-bottom: 28px; } }

/* ---------- Gruppo ---------- */
.group-card {
  position: relative; display: grid; grid-template-columns: 1.1fr .9fr; overflow: hidden;
  border-radius: var(--radius-lg); background: var(--blue-900); color: var(--white);
  box-shadow: var(--shadow-lg);
}
.group-card__body { padding: clamp(36px, 5vw, 64px); }
.group-card__body h3 { color: var(--white); font-family: var(--font-display); font-weight: 400; letter-spacing: .005em; font-size: clamp(1.8rem, 3vw, 2.4rem); }
.group-card__body p { color: rgba(255, 255, 255, .72); max-width: 44ch; }
.group-card__tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 26px 0 34px; padding: 0; list-style: none; }
.group-card__tags li { font-size: .8rem; font-weight: 600; padding: 7px 14px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .2); color: rgba(255, 255, 255, .85); }
.group-card__art {
  position: relative; display: flex; align-items: center; justify-content: center; padding: 40px;
  background: radial-gradient(circle at 50% 50%, rgba(155, 203, 236, .25), transparent 65%), linear-gradient(135deg, var(--blue-800), var(--blue-950));
}
.group-card__art svg { width: min(70%, 280px); }
@media (max-width: 820px) { .group-card { grid-template-columns: 1fr; } .group-card__art { order: -1; padding: 50px 40px; } .group-card__art svg { width: 150px; } }

/* ---------- News ---------- */
.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.news-card {
  display: flex; flex-direction: column; border-radius: var(--radius-lg); overflow: hidden;
  background: var(--white); border: 1px solid var(--line);
  transition: transform .5s var(--ease), box-shadow .5s var(--ease);
}
.news-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.news-card__media { position: relative; aspect-ratio: 16 / 10; overflow: hidden; }
.news-card__media img, .news-card__media .cover { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.news-card:hover .news-card__media img, .news-card:hover .news-card__media .cover { transform: scale(1.04); }
.news-card__body { padding: 26px 28px 30px; display: flex; flex-direction: column; flex: 1; }
.news-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; font-size: .8rem; color: var(--muted); margin-bottom: 14px; }
.news-meta .tag { font-weight: 700; letter-spacing: .08em; text-transform: uppercase; font-size: .7rem; color: var(--blue); background: var(--sky-100); padding: 5px 10px; border-radius: 999px; }
.news-meta .dot { width: 3px; height: 3px; border-radius: 50%; background: currentColor; opacity: .5; }
.news-card h3 { margin-bottom: 12px; }
.news-card p { color: var(--muted); font-size: .95rem; margin-bottom: 22px; }
.news-card .link-arrow { margin-top: auto; }

/* copertina generata (news senza immagine) */
.cover {
  display: block; position: relative;
  background: radial-gradient(circle at 80% 20%, rgba(155, 203, 236, .35), transparent 55%), linear-gradient(140deg, var(--blue-800), var(--blue-950));
}
.cover svg { position: absolute; right: 8%; bottom: 10%; width: 38%; height: auto; }
.cover__label { position: absolute; left: 8%; bottom: 12%; font-family: var(--font-body); font-weight: 600; font-size: .8rem; letter-spacing: .3em; text-transform: uppercase; color: rgba(255, 255, 255, .6); }

/* news in evidenza */
.news-featured {
  display: grid; grid-template-columns: 1.2fr 1fr; border-radius: var(--radius-lg); overflow: hidden;
  background: var(--white); border: 1px solid var(--line); box-shadow: var(--shadow);
  transition: box-shadow .5s var(--ease);
}
.news-featured:hover { box-shadow: var(--shadow-lg); }
.news-featured .news-card__media { aspect-ratio: auto; min-height: 380px; }
.news-featured__body { padding: clamp(32px, 4vw, 56px); display: flex; flex-direction: column; justify-content: center; }
.news-featured h2 { font-size: clamp(1.8rem, 3vw, 2.5rem); }
.news-featured p { color: var(--muted); }
.news-featured .link-arrow { margin-top: 12px; }
.news-list-title { margin: 72px 0 32px; font-size: 1.6rem; }

.news-empty { text-align: center; padding: 60px 20px; color: var(--muted); border: 1px dashed var(--line); border-radius: var(--radius-lg); }
.news-loading { height: 260px; border-radius: var(--radius-lg); background: linear-gradient(90deg, var(--sky-50), var(--sky-100), var(--sky-50)); background-size: 200% 100%; animation: shimmer 1.4s linear infinite; }
@keyframes shimmer { to { background-position: -200% 0; } }

@media (max-width: 980px) { .news-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 820px) { .news-featured { grid-template-columns: 1fr; } .news-featured .news-card__media { min-height: 0; aspect-ratio: 16 / 10; } }
@media (max-width: 640px) { .news-grid { grid-template-columns: 1fr; } }

/* ---------- Articolo ---------- */
.article { max-width: 780px; margin: 0 auto; }
.article__cover { border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 16 / 8; margin: -70px 0 56px; box-shadow: var(--shadow-lg); position: relative; z-index: 2; }
.article__cover img, .article__cover .cover { width: 100%; height: 100%; object-fit: cover; }
.article__body { font-size: 1.1rem; }
.article__body h2 { font-size: 1.9rem; margin-top: 1.6em; }
.article__body h3 { margin-top: 1.4em; }
.article__body a { color: var(--blue); text-decoration: underline; text-underline-offset: 3px; }
.article__body blockquote { margin: 1.8em 0; padding: 4px 0 4px 26px; border-left: 2px solid var(--sky); font-family: var(--font-display); font-size: 1.45rem; line-height: 1.4; color: var(--blue-900); }
.article__body ul { padding-left: 1.2em; }
.article__body li { margin-bottom: .4em; }
.article__footer { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px; margin-top: 56px; padding-top: 28px; border-top: 1px solid var(--line); }
.page-hero .news-meta { color: rgba(255, 255, 255, .7); }
.page-hero .news-meta .tag { background: rgba(155, 203, 236, .18); color: var(--sky-300); }
.page-hero--article h1 { font-size: clamp(2.2rem, 5vw, 3.8rem); max-width: 22ch; }
.page-hero--article { padding-bottom: clamp(110px, 12vw, 150px); }

/* ---------- Chi siamo ---------- */
.motto {
  display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(40px, 7vw, 100px); align-items: center;
}
.motto__quote { position: relative; padding: clamp(40px, 5vw, 60px); border-radius: var(--radius-lg); background: var(--sky-50); overflow: hidden; }
.motto__quote blockquote { margin: 0; font-family: var(--font-display); font-size: clamp(2.2rem, 4.5vw, 3.6rem); line-height: 1.05; color: var(--blue-900); position: relative; z-index: 1; }
.motto__quote cite { display: block; margin-top: 20px; font-style: normal; font-size: .95rem; color: var(--muted); position: relative; z-index: 1; }
.motto__quote svg { position: absolute; right: -30px; bottom: -30px; width: 55%; opacity: .6; }
.motto__text { color: var(--muted); }
.motto__text h2 { color: var(--blue-900); }
@media (max-width: 820px) { .motto { grid-template-columns: 1fr; } }

.mv { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.mv__card { position: relative; padding: clamp(36px, 4.5vw, 56px); border-radius: var(--radius-lg); overflow: hidden; }
.mv__card--blue { background: var(--blue); color: var(--white); }
.mv__card--dark { background: var(--blue-950); color: var(--white); }
.mv__card .eyebrow { color: var(--sky); }
.mv__card p { font-family: var(--font-display); font-size: clamp(1.4rem, 2.3vw, 1.9rem); line-height: 1.3; margin: 0; max-width: 24ch; }
.mv__card svg { position: absolute; right: 24px; top: 24px; width: 60px; opacity: .85; }
@media (max-width: 820px) { .mv { grid-template-columns: 1fr; } }


.timeline { list-style: none; padding: 0; margin: 0; position: relative; }
.timeline::before { content: ""; position: absolute; left: 7px; top: 8px; bottom: 8px; width: 1px; background: var(--line); }
.timeline li { position: relative; padding: 0 0 36px 44px; }
.timeline li::before { content: ""; position: absolute; left: 0; top: 7px; width: 15px; height: 15px; border-radius: 50%; background: var(--white); border: 2px solid var(--blue); }
.timeline strong { display: block; font-family: var(--font-body); font-size: 1.25rem; font-weight: 700; letter-spacing: -.01em; color: var(--blue); line-height: 1.2; margin-bottom: 4px; }
.timeline p { margin: 0; color: var(--muted); }

/* ---------- Il simbolo (Chi siamo) ---------- */
.symbol { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(40px, 7vw, 100px); align-items: center; }
.symbol__art {
  position: relative; aspect-ratio: 1; border-radius: var(--radius-lg); overflow: hidden;
  display: grid; place-items: center;
  background: radial-gradient(circle at 70% 25%, rgba(155, 203, 236, .28), transparent 60%), linear-gradient(150deg, var(--blue-900), var(--blue-950));
  box-shadow: var(--shadow-lg);
}
.symbol__art svg { width: 62%; }
.symbol__list { list-style: none; margin: 36px 0 0; padding: 0; display: grid; gap: 4px; }
.symbol__list li { display: grid; grid-template-columns: 48px 1fr; gap: 12px; padding: 22px 0; border-top: 1px solid var(--line); }
.symbol__list li > span { font-weight: 700; font-size: .8rem; letter-spacing: .15em; color: var(--blue-600); padding-top: 6px; }
.symbol__list h3 { margin-bottom: 6px; }
.symbol__list p { margin: 0; color: var(--muted); font-size: .97rem; }
@media (max-width: 820px) { .symbol { grid-template-columns: 1fr; } .symbol__art { max-width: 420px; } }

/* Interazione: passando su una voce, il simbolo "racconta" quel significato */
.symbol__list li { cursor: default; transition: border-color .4s var(--ease); }
.symbol__list li h3 { transition: color .4s var(--ease); }
.symbol__list li.is-active h3 { color: var(--blue); }
.symbol__list li.is-active { border-top-color: var(--sky); }
.symbol__list li:focus-visible { outline-offset: 0; }
/* gli effetti agiscono sui tre gruppi (g), l'entrata sulle singole ali (path): così non interferiscono */
.symbol__art g { transform-box: fill-box; transform-origin: center; transition: transform .7s var(--ease), filter .7s var(--ease); }
.symbol__art stop { transition: stop-color .8s var(--ease); }
/* 01 · Le ali → prendono il volo */
.symbol[data-active="1"] .symbol__art g { transform: translate(34px, -46px); }
.symbol[data-active="1"] .symbol__art g:nth-of-type(2) { transition-delay: .08s; }
.symbol[data-active="1"] .symbol__art g:nth-of-type(3) { transition-delay: .16s; }
/* 02 · Le tre torri → i tre gruppi si accendono uno dopo l'altro */
.symbol[data-active="2"] .symbol__art g { animation: tower 2.1s var(--ease) infinite; }
.symbol[data-active="2"] .symbol__art g:nth-of-type(2) { animation-delay: .35s; }
.symbol[data-active="2"] .symbol__art g:nth-of-type(3) { animation-delay: .7s; }
@keyframes tower { 0%, 60%, 100% { transform: none; filter: none; } 25% { transform: scale(1.07); filter: brightness(1.18) drop-shadow(0 0 18px rgba(155, 203, 236, .6)); } }
/* 03 · Il gradiente → la sfumatura si intensifica */
.symbol[data-active="3"] .symbol__art stop:first-child { stop-color: #f2f9ff; }
.symbol[data-active="3"] .symbol__art stop:last-child { stop-color: #4f9ad6; }

/* ---------- Advisory Board ---------- */
.board { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.member { display: flex; flex-direction: column; }
.member__photo {
  position: relative; aspect-ratio: 4 / 5; border-radius: var(--radius-lg); overflow: hidden;
  background: var(--sky-50);
}
.member__photo::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, transparent 60%, rgba(10, 40, 66, .35));
  opacity: 0; transition: opacity .6s var(--ease);
}
.member__photo img { width: 100%; height: 100%; object-fit: cover; object-position: center 15%; transition: transform 1s var(--ease); }
.member:hover .member__photo img { transform: scale(1.04); }
.member:hover .member__photo::after { opacity: 1; }
.member__body { padding: 22px 4px 0; }
.member__body h3 { margin-bottom: 6px; }
.member__body p { margin: 0; font-size: .82rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--blue-600); }
/* foto in bianco e nero che passano a colori al passaggio del mouse (solo dispositivi con mouse) */
@media (hover: hover) {
  .member__photo img { filter: grayscale(1) contrast(1.04); transition: transform 1s var(--ease), filter .8s var(--ease); }
  .member:hover .member__photo img { filter: none; }
}
@media (max-width: 980px) { .board { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .board { grid-template-columns: 1fr; } }

.board-teaser {
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: clamp(24px, 4vw, 56px);
  padding: clamp(32px, 4vw, 52px); border-radius: var(--radius-lg);
  background: var(--white); border: 1px solid var(--line);
  transition: box-shadow .5s var(--ease), border-color .5s var(--ease);
}
.board-teaser:hover { box-shadow: var(--shadow-lg); border-color: transparent; }
.board-teaser__faces { display: flex; }
.board-teaser__faces img { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; object-position: center 15%; border: 3px solid var(--white); box-shadow: var(--shadow); }
.board-teaser__faces img + img { margin-left: -16px; }
.board-teaser h2 { margin-bottom: 6px; font-size: clamp(1.7rem, 3vw, 2.3rem); }
.board-teaser p { margin: 0; color: var(--muted); }
.board-teaser .eyebrow { margin-bottom: 10px; }
@media (max-width: 820px) { .board-teaser { grid-template-columns: 1fr; } }

/* ---------- Link utili ---------- */
.links-group + .links-group { margin-top: 72px; }
.links-group__title { display: flex; align-items: baseline; gap: 16px; margin-bottom: 26px; }
.links-group__title h2 { font-size: clamp(1.6rem, 2.6vw, 2.1rem); margin: 0; }
.links-group__title span { color: var(--muted); font-size: .9rem; }
.links { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.link-card {
  position: relative; display: flex; flex-direction: column; gap: 14px; padding: 30px;
  border-radius: var(--radius-lg); background: var(--white); border: 1px solid var(--line);
  transition: transform .5s var(--ease), box-shadow .5s var(--ease), border-color .5s var(--ease), background .5s var(--ease);
}
.link-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: transparent; }
.link-card__icon { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; background: var(--sky-100); color: var(--blue); transition: background .4s var(--ease), color .4s var(--ease); }
.link-card:hover .link-card__icon { background: var(--blue); color: var(--white); }
.link-card__icon svg { width: 24px; height: 24px; }
.link-card h3 { font-family: var(--font-body); font-weight: 700; font-size: 1.08rem; line-height: 1.35; margin: 0; }
.link-card p { color: var(--muted); font-size: .93rem; margin: 0; }
.link-card__url { margin-top: auto; padding-top: 10px; display: flex; align-items: center; justify-content: space-between; font-size: .85rem; font-weight: 700; color: var(--blue); }
.link-card__url svg { width: 18px; height: 18px; transition: transform .4s var(--ease); }
.link-card:hover .link-card__url svg { transform: translate(3px, -3px); }
@media (max-width: 980px) { .links { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .links { grid-template-columns: 1fr; } }

/* ---------- CTA ---------- */
.cta {
  position: relative; overflow: hidden; isolation: isolate;
  border-radius: var(--radius-lg); padding: clamp(44px, 6vw, 80px);
  background: linear-gradient(120deg, var(--sky-100), var(--sky-300));
  display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap;
}
.cta h2 { margin: 0 0 10px; max-width: 20ch; }
.cta p { margin: 0; color: var(--blue-800); max-width: 50ch; }
.cta svg.cta__art { position: absolute; right: -40px; top: -50px; width: 260px; opacity: .45; z-index: -1; }
.cta__actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* ---------- Footer ---------- */
.site-footer { background: var(--blue-950); color: rgba(255, 255, 255, .7); padding: 90px 0 36px; font-size: .93rem; }
.site-footer--flush { margin-top: 0; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 48px; padding-bottom: 60px; border-bottom: 1px solid rgba(255, 255, 255, .1); }
.footer-brand img { height: 44px; width: auto; filter: brightness(0) invert(1); margin-bottom: 24px; }
.footer-brand p { max-width: 34ch; }
.site-footer h4 { font-family: var(--font-body); font-size: .75rem; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--sky); margin-bottom: 20px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.site-footer a { transition: color .3s; }
.site-footer a:hover { color: var(--white); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px 32px; padding-top: 28px; font-size: .82rem; color: rgba(255, 255, 255, .45); }
.footer-credit { display: inline-flex; align-items: center; gap: 10px; color: rgba(255, 255, 255, .55); }
.footer-credit strong { color: rgba(255, 255, 255, .85); font-weight: 600; transition: color .3s; }
.footer-credit img { width: 40px; height: 40px; transition: transform .4s var(--ease); }
.footer-credit:hover strong { color: var(--white); }
.footer-credit:hover img { transform: rotate(-6deg) scale(1.08); }
.footer-bottom ul { display: flex; gap: 22px; flex-wrap: wrap; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------- Animazioni on scroll ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: .1s; }
.reveal[data-delay="2"] { transition-delay: .2s; }
.reveal[data-delay="3"] { transition-delay: .3s; }

/* ---------- Transizione morbida tra le pagine (browser compatibili; gli altri navigano normalmente) ---------- */
@view-transition { navigation: auto; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .4s; animation-timing-function: var(--ease); }
.site-header { view-transition-name: site-header; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-delay: 0s !important; transition-duration: .001ms !important; }
  .reveal { opacity: 1; transform: none; }
  .petals path { opacity: 1 !important; }
}

/* ==========================================================================
   Pagina "Coming soon" + accesso riservato (temporanea: accesso.html)
   ========================================================================== */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
body.gate { background: var(--blue-950); color: var(--white); }
.gate__main {
  position: relative; min-height: 100vh; min-height: 100svh; overflow: hidden; isolation: isolate;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 60px var(--gutter) 120px; text-align: center;
  background:
    radial-gradient(900px 600px at 50% 35%, rgba(155, 203, 236, .16), transparent 65%),
    radial-gradient(900px 700px at 0% 100%, rgba(31, 102, 163, .35), transparent 60%),
    linear-gradient(160deg, var(--blue-900) 0%, var(--blue-950) 100%);
}
.gate__main::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image: linear-gradient(rgba(255, 255, 255, .035) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .035) 1px, transparent 1px);
  background-size: 80px 80px;
  mask-image: radial-gradient(ellipse at 50% 45%, #000 15%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 45%, #000 15%, transparent 70%);
}
.gate__bg { position: absolute; right: 0; bottom: 0; width: clamp(240px, 32vw, 440px); opacity: .14; z-index: -1; }
.gate__inner { display: flex; flex-direction: column; align-items: center; max-width: 560px; }
.gate__logo { width: min(340px, 78vw); height: auto; margin-bottom: 56px; overflow: visible; }
.gate__wings { --petal-y: 110px; }
.gate__wings path { animation-duration: 1.4s !important; }
.gate__eyebrow { color: var(--sky); margin-bottom: 18px; }
.gate__eyebrow::before { display: none; }
.gate__title { color: var(--white); font-size: clamp(2.8rem, 8vw, 4.6rem); margin-bottom: 18px; }
.gate__text { color: rgba(255, 255, 255, .72); font-size: 1.08rem; margin-bottom: 48px; }
.gate__text span { color: rgba(255, 255, 255, .45); font-size: .95rem; }
.gate__eyebrow, .gate__title, .gate__text, .gate__access { opacity: 0; animation: gate-up 1s var(--ease) forwards; }
.gate__eyebrow { animation-delay: .9s; } .gate__title { animation-delay: 1.05s; } .gate__text { animation-delay: 1.2s; } .gate__access { animation-delay: 1.4s; }
@keyframes gate-up { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }

.gate__access { min-height: 64px; display: flex; flex-direction: column; align-items: center; }
.gate__toggle {
  display: inline-flex; align-items: center; gap: 10px; cursor: pointer;
  padding: 12px 22px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .22); background: transparent;
  color: rgba(255, 255, 255, .8); font: 600 .78rem var(--font-body); letter-spacing: .18em; text-transform: uppercase;
  transition: border-color .3s, color .3s, background .3s;
}
.gate__toggle::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--sky); box-shadow: 0 0 0 4px rgba(155, 203, 236, .18); }
.gate__toggle:hover { border-color: var(--white); color: var(--white); background: rgba(255, 255, 255, .05); }
.gate__form { display: flex; align-items: center; gap: 6px; width: min(340px, 86vw); padding: 6px 6px 6px 22px; border-radius: 999px; background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .2); animation: gate-up .6s var(--ease); transition: border-color .3s; }
.gate__form[hidden] { display: none; }
.gate__form:focus-within { border-color: var(--sky); }
.gate__form input { flex: 1; min-width: 0; background: none; border: 0; outline: 0; color: var(--white); font: 500 1rem var(--font-body); letter-spacing: .08em; }
.gate__form input::placeholder { color: rgba(255, 255, 255, .45); letter-spacing: .04em; }
.gate__form button { flex-shrink: 0; width: 44px; height: 44px; border-radius: 50%; border: 0; cursor: pointer; display: grid; place-items: center; background: var(--white); color: var(--blue-900); transition: transform .3s var(--ease), background .3s; }
.gate__form button svg { width: 18px; height: 18px; }
.gate__form button:hover { transform: translateX(2px); background: var(--sky-100); }
.gate__form.is-wrong { animation: gate-shake .45s; border-color: #e88b8b; }
@keyframes gate-shake { 20%, 60% { transform: translateX(-8px); } 40%, 80% { transform: translateX(8px); } }
.gate__error { min-height: 1.4em; margin: 12px 0 0; font-size: .85rem; color: #f2a7a7; }

.gate__footer { position: absolute; left: 0; right: 0; bottom: 0; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px 24px; padding: 22px var(--gutter); font-size: .82rem; }
.gate__footer > a:first-child { display: inline-flex; align-items: center; gap: 8px; color: rgba(255, 255, 255, .6); transition: color .3s; }
.gate__footer > a:first-child svg { width: 14px; height: 14px; }
.gate__footer > a:first-child:hover { color: var(--white); }
@media (max-width: 600px) { .gate__footer { justify-content: center; text-align: center; } .gate__logo { margin-bottom: 40px; } }

/* accesso riuscito: le ali prendono il volo e la pagina sfuma */
.gate.is-leaving .gate__wings path { transition: transform .9s var(--ease), opacity .9s var(--ease); transform: translate(140px, -200px); opacity: 0; }
.gate.is-leaving .gate__inner > :not(.gate__logo), .gate.is-leaving .gate__footer { transition: opacity .6s var(--ease); opacity: 0; }
.gate__toggle[hidden] { display: none; }
