/* Destinazione – stile del sito (ricostruito a mano, senza Avada). Colori e misure in :root */
@font-face { font-family: "Outfit"; src: url(/assets/fonts/outfit.woff2) format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Outfit"; src: url(/assets/fonts/outfit-ext.woff2) format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

:root {
  --navy: #003366;      /* blu scuro: barra in alto, pulsanti, piè di pagina */
  --blue: #0066cc;      /* blu acceso: pulsanti secondari, "io"/"futuro" del logo */
  --red: #be1e2d;       /* sottolineature e titoletti */
  --soft: #f5f7fe;      /* fondo delle sezioni chiare */
  --line: #d4d8e9;
  --text: #363636;
  --dark: #141414;
  --bottom: #1f1f1f;    /* striscia del copyright */
  --width: 1248px;
  --font: "Outfit", Arial, Helvetica, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 110px; }
body { margin: 0; font: 300 17px/1.72 var(--font); letter-spacing: .01em; color: var(--text); background: #fff; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); text-decoration: none; }
a:hover { color: var(--navy); text-decoration: underline; }
h1, h2, h3, h4, h5 { font-family: var(--font); color: var(--dark); font-weight: 600; line-height: 1.2; letter-spacing: -.01em; margin: 0 0 .6em; text-transform: capitalize; }
h1 { font-size: clamp(34px, 5vw, 58px); }
h2 { font-size: clamp(28px, 3.6vw, 42px); }
h3 { font-size: clamp(24px, 2.6vw, 30px); }
h4 { font-size: 22px; font-weight: 500; }
h5 { font-size: 17px; font-weight: 500; }
p { margin: 0 0 1em; }
strong, b { font-weight: 600; }
.wrap { width: min(100% - 48px, var(--width)); margin-inline: auto; }
.narrow { width: min(100% - 48px, 900px); margin-inline: auto; }
.center { text-align: center; }
.bg-soft { background: var(--soft); }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 12px; top: 12px; z-index: 99; background: #fff; padding: 8px 14px; }
.ico { width: 1em; height: 1em; fill: currentColor; display: inline-block; vertical-align: -.125em; }

/* pulsanti */
.btn { display: inline-block; padding: 14px 28px; background: var(--navy); color: #fff; font: 500 14px/1.2 var(--font); text-transform: uppercase; letter-spacing: .01em; border: 0; text-decoration: none; transition: background .15s; }
.btn:hover { background: var(--blue); color: #fff; text-decoration: none; }
.btn-blue { background: var(--blue); }
.btn-blue:hover { background: var(--navy); }
.btn-small { padding: 8px 14px; font-size: 12px; }
.btn-ghost { background: transparent; border: 1px solid rgba(255,255,255,.7); cursor: default; }
.btn-ghost:hover { background: transparent; }
.more { display: inline-block; font-weight: 500; font-size: 14px; text-transform: uppercase; color: var(--navy); border-bottom: 2px solid var(--red); line-height: 1.4; }
.more:hover { text-decoration: none; color: var(--blue); }
.more-off { color: #6b7280; }
.kicker { display: inline-block; font-size: 14px; color: var(--dark); border-bottom: 2px solid var(--red); margin-bottom: 18px; text-transform: none; }
.kicker a { color: inherit; }

/* intestazione */
.site-header { position: sticky; top: 0; z-index: 30; background: #fff; box-shadow: 0 2px 14px rgba(0,0,0,.06); }
.topbar { background: var(--navy); color: #fff; font-size: 13px; }
.topbar-row { display: flex; justify-content: space-between; align-items: center; min-height: 46px; gap: 16px; }
.topbar-social { display: flex; align-items: center; gap: 8px; }
.topbar-social span { margin-right: 8px; }
.topbar-social a { display: grid; place-items: center; width: 26px; height: 26px; background: rgba(255,255,255,.14); color: #fff; font-size: 13px; }
.topbar-social a:hover { background: var(--blue); }
.topbar-link { color: #fff; }
.topbar-link:hover { color: #fff; }
.header-row { display: flex; align-items: center; gap: 24px; min-height: 84px; }
.brand img { width: 220px; }
.site-nav { display: flex; align-items: center; gap: 32px; margin-left: auto; }
.site-nav > ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 28px; }
.site-nav li { position: relative; }
.site-nav > ul > li > a { color: var(--dark); font-weight: 400; font-size: 16px; padding: 8px 0; display: inline-block; border-bottom: 2px solid transparent; }
.site-nav > ul > li > a:hover { color: var(--blue); text-decoration: none; }
.site-nav a.is-current { color: var(--blue); border-bottom-color: var(--blue); }
.has-sub > a::after { content: ""; display: inline-block; width: 6px; height: 6px; margin: 0 0 3px 8px; border: solid currentColor; border-width: 0 1.5px 1.5px 0; transform: rotate(45deg); }
.sub { list-style: none; position: absolute; left: -20px; top: 100%; min-width: 250px; padding: 12px 0; margin: 0; background: #fff; box-shadow: 0 10px 30px rgba(0,0,0,.12); border-top: 3px solid var(--navy); display: none; z-index: 5; }
.has-sub:hover .sub, .has-sub:focus-within .sub { display: block; }
.sub a { display: block; padding: 7px 22px; color: var(--text); font-size: 15px; }
.sub a:hover { color: var(--blue); background: var(--soft); text-decoration: none; }
.sub-title { padding: 10px 22px 4px; font-weight: 600; font-size: 13px; text-transform: uppercase; color: var(--navy); }
.nav-toggle { display: none; background: none; border: 0; padding: 10px; cursor: pointer; margin-left: auto; }
.nav-toggle span { display: block; width: 26px; height: 2px; margin: 6px 0; background: var(--dark); }

/* home: apertura */
.hero { display: grid; grid-template-columns: 46% 54%; min-height: 560px; background: var(--soft); }
.hero-text { padding: 64px 48px 64px max(24px, calc((100vw - var(--width)) / 2 + 60px)); align-self: center; }
.tag { display: inline-block; background: var(--navy); color: #fff; font-size: 12px; font-weight: 500; text-transform: uppercase; padding: 7px 14px; margin-bottom: 22px; }
.tag:hover { color: #fff; background: var(--blue); text-decoration: none; }
.hero h1 { font-size: clamp(36px, 4vw, 48px); line-height: 1.15; text-transform: none; }
.hero h1 span { display: block; }
.hero h1 em { display: block; color: #6b6b6b; font-style: italic; }
.hero-btns { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; margin-top: 24px; }
.hero-photo { position: relative; background-size: cover; background-position: center; display: flex; align-items: flex-end; justify-content: flex-end; min-height: 340px; }
.hero-photo::before { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(0,51,102,.45), rgba(0,51,102,.05) 60%); }
.hero-photo p { position: relative; margin: 0; padding: 36px; color: #fff; text-align: right; font-size: 20px; font-weight: 400; line-height: 1.4; }
.hero-photo strong { display: block; font-size: 30px; font-weight: 600; text-transform: lowercase; }

/* home: strisce con icona */
.section-sm { padding: 28px 0; }
.banner { display: grid; grid-template-columns: 1fr 250px; min-height: 200px; }
.banner-flip { grid-template-columns: 250px 1fr; }
.banner-flip .banner-icon { order: -1; }
.banner-body { background-size: cover; background-position: center; display: flex; flex-direction: column; align-items: flex-end; justify-content: center; gap: 14px; padding: 32px 48px; text-align: right; }
.banner-body h3 { color: #fff; margin: 0; text-transform: none; text-shadow: 3px 3px 1px var(--blue); line-height: 1.35; }
.banner-icon { display: grid; place-items: center; background: var(--navy); color: #fff; font-size: 110px; }
.banner-icon:hover { color: #fff; background: var(--blue); }

/* schede */
.section { padding: 80px 0; }
.section-head { padding: 64px 0 8px; }
.section-head h2, .section-head h1 { margin-bottom: 0; }
.cards { display: grid; gap: 28px; margin-top: 36px; }
.cards-2 { grid-template-columns: repeat(2, 1fr); }
.cards-3 { grid-template-columns: repeat(3, 1fr); }
.cards-4 { grid-template-columns: repeat(4, 1fr); }
.card { background: var(--soft); display: flex; flex-direction: column; }
.card > img, .card > a img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.card-body { padding: 26px 30px 32px; position: relative; flex: 1; display: flex; flex-direction: column; align-items: flex-start; }
.card-body h4 { text-transform: capitalize; margin-bottom: .5em; }
.card-body h4 a { color: var(--dark); }
.card-body p { font-size: 15px; flex: 1; }
.card-post { background: #f8f9fd; }
.card-post .meta { font-size: 12px; color: var(--text); border-bottom: 1px solid var(--line); padding-bottom: 12px; margin-bottom: 18px; width: 100%; flex: none; }
.card-post h4 { font-size: 20px; }

/* home: notizie che scorrono */
.ticker { display: flex; align-items: stretch; background: var(--navy); color: #fff; box-shadow: 0 12px 30px rgba(0,0,0,.12); overflow: hidden; }
.ticker h5 { color: #fff; margin: 0; padding: 16px 30px; background: #00264d; white-space: nowrap; text-transform: none; display: flex; align-items: center; }
.ticker-track { overflow: hidden; flex: 1; display: flex; align-items: center; }
.ticker-track ul { list-style: none; margin: 0; padding: 0 0 0 30%; display: flex; gap: 48px; white-space: nowrap; animation: scorri 40s linear infinite; }
.ticker-track:hover ul { animation-play-state: paused; }
.ticker-track a { color: #fff; font-size: 15px; }
@keyframes scorri { to { transform: translateX(-100%); } }

/* home: video */
.video-band { position: relative; overflow: hidden; background: var(--navy); min-height: 520px; display: flex; align-items: center; margin-top: 40px; }
.video-band video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .25; }
.video-band .wrap { position: relative; }
.video-band img { width: min(560px, 80%); }

/* riquadro iscrizione */
.cta { background: var(--navy) center/cover no-repeat; color: #fff; padding: 64px 0; position: relative; }
.cta::before { content: ""; position: absolute; inset: 0; background: rgba(0,51,102,.78); }
.cta-row { position: relative; display: flex; justify-content: space-between; align-items: center; gap: 32px; flex-wrap: wrap; }
.cta h2 { color: #fff; margin-bottom: .3em; }
.cta .kicker { color: #fff; }
.cta-side { text-align: center; font-size: 13px; }
.cta-side p { margin: 10px 0 0; }

/* intestazione delle pagine interne */
.pagebanner { position: relative; background: var(--navy) center/cover no-repeat; padding: 120px 0; color: #fff; }
.pagebanner::before { content: ""; position: absolute; inset: 0; background: rgba(0,0,0,.45); }
.pagebanner .wrap { position: relative; max-width: 860px; margin-left: max(24px, calc((100vw - var(--width)) / 2)); }
.pagebanner h3 { color: #fff; font-size: clamp(30px, 4vw, 46px); }
.pagebanner h4 { color: #fff; font-weight: 400; text-transform: none; line-height: 1.4; margin-bottom: 1.2em; }

/* testo */
.section-text { padding: 56px 0; }
.prose ul { padding-left: 1.2em; }
.prose li { margin-bottom: .4em; }
.prose h3 { margin-top: 0; }
.prose blockquote { margin: 1.6em 0; padding: 4px 0 4px 26px; border-left: 4px solid var(--navy); font-size: 20px; font-weight: 400; color: var(--navy); }
.btn-row { margin: 1.2em 0; }
.section-text.center .prose { text-align: center; }

/* citazione su foto (orientamento) */
.quote-photo { position: relative; background-size: cover; background-position: center top; min-height: 520px; display: flex; flex-direction: column; justify-content: flex-end; align-items: flex-start; padding: 0 0 0 0; }
.quote-photo blockquote { margin: 0 32px 24px; background: rgba(245,247,254,.94); padding: 22px 28px; font-style: italic; font-size: 15px; }
.quote-photo blockquote p { margin: 0 0 8px; }
.quote-photo cite { display: block; text-align: right; font-size: 13px; }

/* percorso: moduli con toggle e foto */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.split-top { align-items: start; }
.modulo .split { grid-template-columns: 1fr 400px; align-items: start; }
.sottotitolo { color: var(--text); font-size: 15px; }
.modulo .prose > p { font-size: 15px; }
.modulo-photo { position: relative; min-height: 460px; background-size: cover; background-position: center; }
.modulo-photo span { position: absolute; left: 0; bottom: 0; background: var(--navy); color: #fff; font-size: 30px; font-weight: 600; padding: 12px 28px; }
.toggles { margin-top: 20px; max-width: 420px; }
.toggles details { border-bottom: 1px solid var(--line); }
.toggles summary { cursor: pointer; list-style: none; padding: 10px 0; font-weight: 600; font-size: 14px; color: var(--dark); display: flex; align-items: center; gap: 12px; }
.toggles summary::-webkit-details-marker { display: none; }
.toggles summary::before { content: "+"; display: grid; place-items: center; width: 18px; height: 18px; flex: none; background: var(--dark); color: #fff; font-size: 14px; line-height: 1; }
.toggles details[open] summary::before { content: "–"; }
.toggles details > div { padding: 0 0 10px 30px; font-size: 14px; }
.toggles details p { margin: 0 0 .5em; }

/* tabella quote */
.table-wrap { overflow-x: auto; margin-top: 24px; }
.tabella { border-collapse: collapse; margin: 0 auto; min-width: 460px; font-size: 14px; box-shadow: 0 2px 10px rgba(0,0,0,.08); }
.tabella th, .tabella td { padding: 10px 22px; border-bottom: 1px solid var(--line); text-align: right; }
.tabella th { background: var(--soft); font-weight: 600; color: var(--dark); text-align: center; }
.tabella td:last-child { text-align: left; }

/* galleria percorsi di studio (contest) */
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 24px; }
.gallery figure { margin: 0; }
.gallery img { width: 100%; aspect-ratio: 3/2; object-fit: cover; }
.gallery figcaption { font-weight: 500; color: var(--dark); padding-top: 10px; line-height: 1.3; }
.gallery-wide { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 36px 28px; }
.gallery figcaption h4 { font-size: 19px; margin: 6px 0 8px; }
.gallery figcaption p { font-weight: 300; font-size: 14px; line-height: 1.6; color: var(--text); }

/* video YouTube (si carica solo al clic, da youtube-nocookie.com) */
.yt { position: relative; max-width: 600px; margin: 28px auto; aspect-ratio: 16/9; background: #000; }
.yt a, .yt iframe { display: block; width: 100%; height: 100%; border: 0; }
.yt img { width: 100%; height: 100%; object-fit: cover; }
.yt .ico { position: absolute; left: 50%; top: 50%; width: 68px; height: 48px; transform: translate(-50%, -50%); }

/* contatti */
.contact-box { text-align: center; }
.contact-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 36px; font-size: 20px; font-weight: 400; }
.chi-siamo h5 { margin: 1.4em 0 .2em; }
.chi-siamo p { font-size: 15px; margin: 0; }
.loghi { display: flex; flex-direction: column; gap: 28px; align-items: flex-start; }
.loghi img { max-width: 300px; }

/* notizie */
.news-layout { display: grid; grid-template-columns: 1fr 340px; gap: 48px; align-items: start; }
.news-layout .cards { margin-top: 0; }
.news-list ul { list-style: none; margin: 0; padding: 0; }
.news-list li { display: flex; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.news-list img { width: 80px; height: 60px; object-fit: cover; flex: none; }
.news-list a { color: var(--dark); font-weight: 500; font-size: 15px; line-height: 1.3; text-transform: capitalize; }
.news-list span { display: block; font-size: 12px; color: var(--blue); margin-top: 4px; }

/* articolo */
.post-head { padding: 56px 0 32px; }
.post-head .meta { font-size: 13px; }
.post-hero { height: 340px; background: var(--navy) center/cover no-repeat; position: relative; }
.post-hero::before { content: ""; position: absolute; inset: 0; background: rgba(0,51,102,.55); }
.post-body { padding: 48px 0 72px; font-size: 16px; }
.card-overlay { position: relative; display: flex; align-items: flex-end; justify-content: center; min-height: 260px; padding: 24px; background-size: cover; background-position: center; color: #fff; text-align: center; font-weight: 500; text-transform: capitalize; }
.card-overlay::before { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(0,51,102,.9), rgba(0,51,102,.15)); }
.card-overlay span { position: relative; }
.card-overlay:hover { color: #fff; text-decoration: none; }

/* piè di pagina */
.site-footer { background: var(--navy); color: #fff; font-size: 15px; }
.site-footer a { color: #fff; }
.footer-grid { display: grid; grid-template-columns: 1fr 1.4fr; gap: 56px; padding: 72px 0 56px; }
.footer-brand img { width: 260px; }
.footer-slogan { font-size: 22px; margin: 18px 0; }
.social { display: flex; gap: 14px; font-size: 18px; }
.footer-btns { list-style: none; padding: 0; margin: 28px 0 0; max-width: 280px; }
.footer-btns a { display: block; padding: 14px 4px; border-bottom: 1px solid rgba(255,255,255,.12); font-weight: 500; text-transform: capitalize; }
.footer-cols { display: grid; grid-template-columns: 1.4fr 1fr; gap: 40px; }
.footer-cols h5 { color: #fff; display: inline-block; border-bottom: 2px solid var(--red); text-transform: capitalize; margin-bottom: 1.2em; }
.footer-cols ul { list-style: none; padding: 0; margin: 0; }
.footer-cols li { margin-bottom: 10px; font-size: 14px; }
.footer-cols p { font-size: 15px; margin-bottom: 10px; word-break: break-word; }
.footer-cols .ico { margin-right: 6px; }
.footer-bottom { background: var(--bottom); text-align: center; font-size: 12px; padding: 22px 16px; }
.footer-bottom p { margin: 0; }
.footer-bottom a { color: #9ec5f3; }

/* tablet e telefono */
@media (max-width: 1100px) {
  .header-row { flex-wrap: wrap; min-height: 72px; }
  .nav-toggle { display: block; }
  .site-nav { display: none; flex-direction: column; align-items: stretch; width: 100%; gap: 12px; padding-bottom: 18px; }
  .site-nav.is-open { display: flex; }
  .site-nav > ul { flex-direction: column; gap: 0; }
  .site-nav > ul > li > a { padding: 10px 0; }
  .has-sub > a::after { display: none; }
  .sub { position: static; display: block; box-shadow: none; border: 0; padding: 0 0 6px 14px; min-width: 0; }
  .sub a { padding: 5px 0; }
  .sub-title { padding: 8px 0 2px; }
  .site-nav .btn { text-align: center; }
  .cards-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 860px) {
  body { font-size: 16px; }
  .topbar-social span { display: none; }
  .brand img { width: 180px; }
  .hero { grid-template-columns: 1fr; }
  .hero-text { padding: 40px 24px; }
  .banner, .banner-flip { grid-template-columns: 1fr; }
  .banner-flip .banner-icon { order: 0; }
  .banner-icon { font-size: 64px; padding: 20px; }
  .banner-body { padding: 28px 22px; align-items: center; text-align: center; }
  .cards-2, .cards-3, .cards-4 { grid-template-columns: 1fr; }
  .section { padding: 52px 0; }
  .split, .modulo .split, .news-layout { grid-template-columns: 1fr; gap: 32px; }
  .modulo-photo { min-height: 300px; }
  .ticker { flex-direction: column; }
  .ticker h5 { padding: 12px 20px; }
  .ticker-track { padding: 12px 0; }
  .video-band { min-height: 300px; }
  .quote-photo { min-height: 420px; }
  .quote-photo blockquote { margin: 0 12px 16px; padding: 16px; }
  .pagebanner { padding: 72px 0; }
  .footer-grid, .footer-cols { grid-template-columns: 1fr; gap: 32px; }
  .contact-links { flex-direction: column; font-size: 18px; }
  .tabella th, .tabella td { padding: 8px 10px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .ticker-track ul { animation: none; padding-left: 20px; flex-wrap: wrap; white-space: normal; gap: 8px 32px; }
}
