/* Pagina di presentazione di aec.network: gli stessi colori, font e tema chiaro/scuro del portale
   (app/portal/static/portal/portal.css, pacchetto «stile delle app» di AEC). Niente script, niente risorse esterne:
   la CSP ammette solo 'self'. Il tema segue il dispositivo. */

@font-face { font-family: "Blinker"; font-style: normal; font-weight: 400; font-display: swap; src: url("font/blinker-400-latin.woff2") format("woff2"); }
@font-face { font-family: "Blinker"; font-style: normal; font-weight: 600; font-display: swap; src: url("font/blinker-600-latin.woff2") format("woff2"); }
@font-face { font-family: "Blinker"; font-style: normal; font-weight: 700; font-display: swap; src: url("font/blinker-700-latin.woff2") format("woff2"); }

:root {
  --red: #DA0944; --red-dark: #B00737; --red-soft: #FCE8EE;
  --ink: #111010; --text: #191B1F; --text-2: #4B5058; --text-3: #676E7B;
  --border: #CFD4DC; --bg: #F4F4F5; --card: #FFFFFF;
  --on-red: #FFFFFF;
  /* Il bottone ha lo stesso rosso nei due temi: il bianco su #F0386A del tema scuro non arriva a 4,5:1. */
  --btn: #DA0944; --btn-hover: #B00737;
  --link: #DA0944; --link-hover: #B00737;
  --shadow: 0 1px 2px rgba(17, 16, 16, .06);
  --radius: 12px; --radius-sm: 8px;
  --font-sans: "Blinker", "Segoe UI", system-ui, sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --red: #F0386A; --red-dark: #FF5C86; --red-soft: #3A1520;
    --ink: #F4F4F5; --text: #ECEDEF; --text-2: #B9BDC5; --text-3: #8F949C;
    --border: #33363D; --bg: #141416; --card: #1E1F23;
    --link: #FF5C86; --link-hover: #FF8FAB;
    --shadow: none; color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: var(--font-sans); font-size: 18px; line-height: 1.55;
}
a { color: var(--link); }
a:hover { color: var(--link-hover); }
a:focus-visible { outline: 3px solid var(--link); outline-offset: 2px; border-radius: 4px; }

.cornice { max-width: 960px; margin: 0 auto; padding: 0 20px; }

.testata { background: var(--card); border-bottom: 1px solid var(--border); }
.testata__riga { display: flex; align-items: center; justify-content: space-between; min-height: 64px; gap: 16px; }
.marchio { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none;
  font-weight: 700; font-size: 20px; }
.marchio img { display: block; }
.lingua { font-weight: 600; text-decoration: none; }

.blocco { padding-top: 48px; padding-bottom: 40px; }
.blocco--it { border-top: 1px solid var(--border); }
h1 { margin: 0 0 16px; color: var(--ink); font-size: clamp(30px, 5vw, 44px); line-height: 1.15; font-weight: 700; }
h2 { margin: 0 0 8px; color: var(--ink); font-size: 21px; font-weight: 700; }
.apertura { margin: 0 0 16px; max-width: 46em; font-size: 20px; color: var(--text-2); }
.testo { margin: 0 0 24px; max-width: 46em; color: var(--text-2); }

.azioni { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; margin: 0 0 36px; }
.bottone {
  display: inline-block; padding: 12px 22px; border-radius: var(--radius-sm);
  background: var(--btn); color: var(--on-red); font-weight: 700; text-decoration: none;
}
.bottone:hover { background: var(--btn-hover); color: var(--on-red); }
.collegamento { font-weight: 600; }

.schede { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }
.scheda {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 20px 22px;
}
.scheda p { margin: 0 0 10px; color: var(--text-2); }
.scheda p:last-child { margin-bottom: 0; }
.scheda strong { color: var(--text); font-weight: 600; overflow-wrap: anywhere; }

.piede { border-top: 1px solid var(--border); padding: 24px 0 40px; color: var(--text-3); font-size: 15px; }
.piede p { margin: 4px 0; }
.piede a { color: var(--text-2); }
