/* =========================================================
   Auto Storiche: Raduno di Brescia
   Stile principale - estetica rétro / Windows 95 pulita
   ========================================================= */

/* ---------------------------------------------------------
   FONT & PALETTE BASE
   Modifica qui i colori principali del brand se necessario
   --------------------------------------------------------- */

/* Font locale stile Windows 95: w95fa (percorsi relativi al CSS per FTP/sottocartella) */
@font-face {
    font-family: "w95fa";
    src: url("../font/w95fa/w95fa.woff2") format("woff2"),
         url("../font/w95fa/w95fa.woff") format("woff");
    font-weight: normal;
    font-style: normal;
}

/* Font schermata BIOS: Modern DOS 8x16 */
@font-face {
    font-family: "ModernDOS8x16";
    src: url("../font/ModernDOS8x16.ttf") format("truetype");
    font-weight: normal;
    font-style: normal;
}

:root {
    /* Branding Auto Storiche (usato in modo discreto) */
    --brand-blue: #1d5c9a;
    --brand-accent: #e7b051;

    /* Palette Windows 95-style */
    --bg-main: #c0c0c0;
    --desktop-teal: #008080;
    --desktop-sky-top: #4a7bd8;
    --desktop-sky-bottom: #9fcff5;
    --gray-light: #f2f2f2;
    --gray-medium: #d4d0c8;   /* tipico grigio Windows 95 */
    --gray-dark: #7b7b7b;
    --text-main: #000000;
    --text-muted: #555555;

    --shadow-dark: #404040;
    --shadow-light: #ffffff;
}

/* ---------------------------------------------------------
   RESET LEGGERO E TIPOGRAFIA DI SISTEMA
   --------------------------------------------------------- */

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    padding: 0;
    /* Usa il font bitmap locale w95fa, con fallback simil-Windows 95 */
    font-family: "w95fa", "Microsoft Sans Serif", "MS Sans Serif",
                 Tahoma, Verdana, system-ui, sans-serif;
    background-color: var(--desktop-teal);
    color: var(--text-main);
    line-height: 1.4;
}

/* Rimuove sottolineature aggressive, mantenendo focus visibile */
a {
    color: var(--brand-blue);
    text-decoration: none;
}

a:hover,
a:focus {
    text-decoration: underline;
}

/* ---------------------------------------------------------
   SEQUENZA INTRO (BIOS + STARTUP WIN95)
   Durata BIOS/startup: modificabile in main.js (INTRO_BIOS_MS, INTRO_STARTUP_MS).
   Logo BIOS: file assets/images/bios-badge.png (consigliato 220x110 px).
   --------------------------------------------------------- */

.intro-overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: #000000;
    -webkit-tap-highlight-color: transparent;
}

body.intro-active .intro-overlay {
    display: block;
}

.intro-screen {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.intro-screen[aria-hidden="true"] {
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
}

/* ---------- FASE 1: BIOS / POST (stile Award / POST anni '90) ---------- */
/* Font: ModernDOS8x16.ttf in /assets/font/. Colore testo: #bdbdbd. Su mobile: niente blu link/tap. */
.intro-bios {
    font-family: "ModernDOS8x16", "Consolas", "Monaco", "Courier New", monospace;
    font-size: 20px;
    line-height: 1.4;
    color: #bdbdbd;
    background: #000000;
    padding: 20px 24px;
    display: flex;
    flex-wrap: wrap;
    align-content: flex-start;
    justify-content: space-between;
    position: relative;
    -webkit-tap-highlight-color: transparent;
}

.intro-bios * {
    color: #bdbdbd;
    -webkit-tap-highlight-color: transparent;
}

/* Righe verdi tipo "Detecting IDE..." (stesso colore #bdbdbd se preferisci uniforme) */
.intro-bios-line-green {
    color: #bdbdbd;
}

.intro-bios-line {
    white-space: pre;
    margin: 0;
    text-align: left;
}

/* Blocco testo principale: in alto a sinistra */
.intro-bios-text {
    flex: 1 1 auto;
    min-width: 0;
    align-self: flex-start;
    text-align: left;
}

/* Area logo in alto a destra: direttamente su sfondo nero, senza riquadro. Dimensioni doppie (440x220). */
.intro-bios-logo-area {
    flex-shrink: 0;
    width: 460px;
    margin-left: auto;
    margin-top: 0;
    margin-right: 24px;
    padding: 0;
    min-height: 240px;
    display: flex;
    align-items: flex-start;
    justify-content: flex-end;
}

.intro-bios-logo {
    max-width: 440px;
    max-height: 220px;
    width: auto;
    height: auto;
    object-fit: contain;
    image-rendering: pixelated;
    image-rendering: crisp-edges;
    display: block;
}

/* In basso a sinistra: stessa dimensione font del blocco superiore */
.intro-bios-footer {
    position: absolute;
    bottom: 20px;
    left: 24px;
    font-size: 20px;
    line-height: 1.4;
    color: #bdbdbd;
    text-align: left;
}

/* ---------- BIOS: RESPONSIVE ---------- */
@media (max-width: 768px) {
    .intro-bios {
        padding: 14px 16px;
        font-size: 16px;
    }

    .intro-bios-text {
        flex: 1 1 100%;
        max-width: 100%;
    }

    .intro-bios-logo-area {
        width: 100%;
        min-height: 180px;
        margin: 2.5rem auto 0 auto;
        justify-content: center;
    }

    .intro-bios-logo {
        max-width: min(85vw, 360px);
        max-height: 180px;
    }

    .intro-bios-footer {
        font-size: 16px;
        bottom: 14px;
        left: 16px;
    }
}

@media (max-width: 480px) {
    .intro-bios {
        padding: 10px 12px;
        font-size: 13px;
    }

    .intro-bios-logo-area {
        min-height: 140px;
        margin-top: 2rem;
    }

    .intro-bios-logo {
        max-width: min(90vw, 280px);
        max-height: 140px;
    }

    .intro-bios-footer {
        font-size: 13px;
        bottom: 10px;
        left: 12px;
    }
}

/* ---------- FASE 2: STARTUP - WALLPAPER A TUTTO SCHERMO + LOGO IN GRANDE ---------- */
.intro-startup {
    background: url("../images/wallpaper.webp") center / cover no-repeat;
    display: flex;
    position: fixed;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

/* Logo seconda schermata: /assets/images/auto-storiche-startup-logo.png, mostrato in grande. Ombra nera per contrasto su sfondo chiaro. */
.intro-startup-logo {
    max-width: min(70vw, 520px);
    max-height: min(50vh, 280px);
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.5)) drop-shadow(0 4px 12px rgba(0, 0, 0, 0.4));
}

/* ---------------------------------------------------------
   STRUTTURA GENERALE
   --------------------------------------------------------- */

.page-wrapper {
    max-width: 1120px;
    margin: 0rem auto 4.5rem auto; /* lascia spazio alla taskbar */
    padding: 0.75rem 1.25rem 2rem 1.25rem;
}

/* Sezioni principali (finestre) */
.section {
    margin: 1.5rem 0;
}

/* ---------------------------------------------------------
   DESKTOP & WALLPAPER
   --------------------------------------------------------- */

.desktop-body {
    min-height: 100vh;
}

.desktop-shell {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.desktop-area {
    flex: 1 0 auto;
    position: relative;
    padding-bottom: 2.4rem; /* spazio per taskbar fissa */
}

.desktop-wallpaper {
    position: relative;
    min-height: 100vh;
    background-color: var(--desktop-teal);
}

.desktop-wallpaper::before {
    content: "";
    position: absolute;
    /* distanza superiore ridotta del 35% (da 8% a ~5.2%) */
    inset: 5.2% 10% 35% 10%;
    background-image: url("../images/wallpaper.webp");
    background-repeat: no-repeat;
    background-size: 100% auto; /* larghezza piena, altezza in proporzione */
    border: none;
    box-shadow: none;
}

.desktop-wallpaper .page-wrapper {
    position: relative;
    z-index: 1;
}

/* ---------------------------------------------------------
   ICONE DESKTOP STILE WINDOWS 95
   --------------------------------------------------------- */

.desktop-icons {
    /* Desktop: icone fisse in alto a sinistra, stile Windows 95 */
    position: fixed;
    top: 35px;
    left: 18px;
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
    z-index: 2; /* sopra il wallpaper, sotto le finestre */
}

.desktop-icon {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    width: 72px;
    text-align: center;
    color: #ffffff;
    text-decoration: none;
    font-size: 11px;
    font-family: Tahoma, "MS Sans Serif", Arial, sans-serif;
}

.desktop-icon-image {
    width: 45px;
    height: 45px;
    margin-bottom: 4px;
    image-rendering: pixelated;
}

.desktop-icon-label {
    text-shadow: 1px 1px 0 #000000;
}

/* ---------------------------------------------------------
   COMPONENTE "FINESTRA" STILE WINDOWS 95
   --------------------------------------------------------- */

.window {
    background-color: var(--gray-medium);
    /* Bordo 3D esterno principale della finestra */
    border-top: 2px solid var(--shadow-light);
    border-left: 2px solid var(--shadow-light);
    border-right: 2px solid var(--shadow-dark);
    border-bottom: 2px solid var(--shadow-dark);
    box-shadow:
        2px 2px 0 var(--shadow-dark),
        4px 4px 0 rgba(0, 0, 0, 0.25);
}

.window-large {
    padding: 0;
    /* Bordo 3D perimetrale stile Win95 intorno alla finestra principale (es. hero) */
    border-top: 2px solid var(--shadow-light);
    border-left: 2px solid var(--shadow-light);
    border-right: 2px solid var(--shadow-dark);
    border-bottom: 2px solid var(--shadow-dark);
}

.window-wide {
    padding: 0;
}

.window-nested {
    margin-top: 0.75rem;
    box-shadow:
        1px 1px 0 var(--shadow-dark),
        2px 2px 0 rgba(0, 0, 0, 0.2);
}

/* Barra del titolo */
.window-titlebar {
    background-color: #808080;
    color: #ffffff;
    padding: 0.2rem 0.45rem;
    display: flex;
    align-items: center;
    justify-content: flex-start; /* icona + titolo allineati a sinistra */
    border-bottom: 1px solid #000000;
}

.window-titlebar-light {
    background: linear-gradient(to right, #d7e5f3, #c4d6eb);
    color: #000000;
}

.window-title {
    font-size: 0.82rem;
    font-weight: 700;
}

.window-titlebar .window-icon {
    width: 16px;
    height: 16px;
    margin-right: 4px;
    image-rendering: pixelated;
}

/* Pulsantini fittizi finestra */
.window-controls {
    display: flex;
    gap: 2px;
    margin-left: auto; /* spinge i pulsanti finestra a destra */
}

.control-box {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    background-color: #c0c0c0;
    border: 1px solid #000000;
    font-size: 0.6rem;
    line-height: 1;
    color: #000000;
    -webkit-tap-highlight-color: transparent;
}

/* Corpo finestra */
.window-body {
    background-color: transparent;
    padding: 0.9rem;
    /* Il bordo 3D principale è ora sull'intero .window,
       quindi il body interno non aggiunge ulteriori bordi. */
    border: none;
}

/* Per la finestra hero, il bordo 3D è perimetrale su .window-large,
   quindi il body interno non necessita di un secondo bordo. */
.window-large .window-body.hero-body {
    border: none;
}

.window-body-compact {
    padding: 0.6rem 0.8rem 0.8rem 0.8rem;
}

.window-note {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 0.5rem;
}

/* ---------------------------------------------------------
   BOTTONI STILE 95
   --------------------------------------------------------- */

.btn-95 {
    display: inline-block;
    padding: 0.35rem 0.9rem;
    margin: 0.25rem 0;
    font-size: 0.85rem;
    color: #000000;
    background-color: var(--gray-medium);
    border: 2px solid #000000;
    box-shadow:
        inset 1px 1px 0 var(--shadow-light),
        inset -1px -1px 0 var(--shadow-dark),
        2px 2px 0 rgba(0, 0, 0, 0.4);
    cursor: pointer;
}

.btn-95:hover,
.btn-95:focus {
    background-color: var(--gray-light);
    text-decoration: none;
}

.btn-95:active {
    box-shadow:
        inset -1px -1px 0 var(--shadow-light),
        inset 1px 1px 0 var(--shadow-dark);
    transform: translate(1px, 1px);
}

/* Variazioni colore brand */
.btn-primary {
    background-color: var(--brand-blue);
    color: #ffffff;
}

.btn-primary:hover,
.btn-primary:focus {
    background-color: #17446f;
}

.btn-secondary {
    background-color: var(--brand-accent);
}

/* Badge in stile etichetta software */
.badge-95 {
    display: inline-block;
    padding: 0.1rem 0.4rem;
    margin: 0.1rem 0.25rem 0.1rem 0;
    font-size: 0.75rem;
    background-color: var(--gray-medium);
    border: 1px solid #000000;
}

.badge-accent {
    background-color: var(--brand-accent);
}

/* ---------------------------------------------------------
   GRIGLIE E LAYOUT
   --------------------------------------------------------- */

.grid {
    display: grid;
    gap: 1.5rem;
}

.two-cols {
    grid-template-columns: 1.6fr 1.2fr;
}

.four-cols {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

/* Layout identity */
.identity-layout {
    display: grid;
    grid-template-columns: 1.6fr 1.2fr;
    gap: 1.5rem;
}

/* Desktop-style grid per "Come funziona" */
.desktop-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.25rem;
}

/* ---------------------------------------------------------
   LISTE & ELEMENTI TESTUALI
   --------------------------------------------------------- */

h1, h2, h3 {
    margin-top: 0;
}

h1.hero-heading {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
    line-height: 30px;
}

h2 {
    font-size: 1.35rem;
}

h3 {
    font-size: 1rem;
}

p {
    margin: 0.2rem 0 0.75rem 0;
}

.section-intro {
    max-width: 640px;
}

/* Liste puntate */
.bullet-list {
    padding-left: 1.2rem;
    margin: 0.25rem 0 0.75rem 0;
}

/* Pannello info "Chi siamo" */
.info-panel {
    background-color: var(--gray-medium);
    border-top: 2px solid var(--shadow-light);
    border-left: 2px solid var(--shadow-light);
    border-right: 2px solid var(--shadow-dark);
    border-bottom: 2px solid var(--shadow-dark);
}

.panel-note {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* ---------------------------------------------------------
   HERO
   --------------------------------------------------------- */

.hero-section .window-body.hero-body {
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) minmax(0, 1.2fr) minmax(0, 1.1fr);
    gap: 1.5rem;
}

.hero-kicker {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--brand-blue);
    margin-bottom: 0.4rem;
}

.hero-subtitle {
    max-width: 620px;
}

.hero-actions {
    margin-top: 0.75rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.hero-badge-bar {
    margin-top: 0.75rem;
}

.hero-aside {
    align-self: start;
}

.hero-image {
    align-self: center;
}

/* ---------------------------------------------------------
   CARDS RADUNO
   --------------------------------------------------------- */

.raduno-grid {
    margin-top: 1rem;
}

.raduno-card p {
    font-size: 0.9rem;
}

/* ---------------------------------------------------------
   COSA TROVI - ICONE DESKTOP
   --------------------------------------------------------- */

.desktop-icon-card {
    text-align: left;
    background-color: #f8f8f8;
    border: 1px solid #b0b0b0;
    padding: 0.75rem;
    box-shadow:
        inset 1px 1px 0 var(--shadow-light),
        inset -1px -1px 0 var(--shadow-dark);
}

.icon-square {
    width: 22px;
    height: 22px;
    margin-bottom: 0.4rem;
    background: linear-gradient(to bottom, var(--brand-blue), #17446f);
    border: 1px solid #000000;
}

/* ---------------------------------------------------------
   PLACEHOLDER IMMAGINI
   --------------------------------------------------------- */

.image-placeholder {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background-color: #e0e0e0;
    color: #000000;
    box-shadow:
        inset 2px 2px 0 var(--shadow-light),
        inset -2px -2px 0 var(--shadow-dark);
    padding: 0.5rem;
    font-size: 0.8rem;
}

.image-placeholder-hero {
    /* Rapporto 16:9 */
    width: 100%;
    aspect-ratio: 16 / 9;
    max-width: 520px;
    margin: 0 auto;
}

.image-placeholder-section {
    /* Rapporto 3:2 */
    width: 100%;
    aspect-ratio: 3 / 2;
    max-width: 640px;
    margin: 1rem auto 0 auto;
}

.image-placeholder-thumb {
    /* Rapporto 4:3 per miniature */
    width: 100%;
    aspect-ratio: 4 / 3;
    margin-bottom: 0.5rem;
}

.image-placeholder-banner {
    /* Rapporto 2:1 per banner orizzontale */
    width: 100%;
    aspect-ratio: 2 / 1;
    max-width: 880px;
    margin: 1.25rem auto 3rem auto;
}

.image-placeholder-logo {
    /* Logo credits nel footer, rapporto ~3:1 */
    width: 100%;
    aspect-ratio: 3 / 1;
    max-width: 400px;
    margin-bottom: 0.5rem;
}

.image-placeholder-label {
    line-height: 1.4;
}

.section-image-placeholder-wrapper {
    margin-top: 0.75rem;
    display: flex;
    padding: 0.9rem;
    justify-content: center; /* centra il box immagine nella sezione */
}

/* ================================
   Windows 95 image rendering
   ================================ */

.win95-image {
    display: block;
    max-width: 100%;
    height: auto;

    /* Resa pixelata / non moderna */
    image-rendering: pixelated;
    image-rendering: crisp-edges;

    /* Look meno moderno: leggero calo di contrasto/saturazione */
    filter: contrast(0.92) saturate(0.85) brightness(0.96);

    /* Nessun effetto moderno */
    border: none;
    border-radius: 0;
    box-shadow: none;
}

/* ================================
   Windows 95 3D frame per immagini
   ================================ */

.win95-image-frame {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background-color: #e0e0e0;
  color: #000;
  padding: 0.5rem;
  width: 100%;
  max-width: 640px;
  border-radius: 0;
  background-color: #e0e0e0;
  color: #000;
  box-shadow: inset 2px 2px 0 var(--shadow-light), inset -2px -2px 0 var(--shadow-dark);

    /* Padding interno = cornice immagine */
    padding: 0.5rem;

    /* Dimensioni coerenti con la sezione "Chi siamo" (3:2) */
    width: 100%;
    max-width: 640px;

    /* Nessun effetto moderno */
    border-radius: 0;
}

/* ---------------------------------------------------------
   IDENTITÀ & ATMOSFERA
   --------------------------------------------------------- */

.identity-column p {
    max-width: 640px;
}

/* ---------------------------------------------------------
   CTA FINALE
   --------------------------------------------------------- */

.cta-window {
    max-width: 880px;
    margin: 0 auto;
}

.cta-body {
    text-align: left;
}

.cta-actions {
    margin-top: 0.75rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.cta-note {
    margin-top: 0.75rem;
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* ---------------------------------------------------------
   FOOTER STILE PANNELLO DESKTOP VINTAGE
   --------------------------------------------------------- */

.site-footer {
    margin-top: 1.5rem;
    background-color: var(--gray-medium);
    color: #000000;
    font-size: 0.8rem;
    box-shadow: 0 -2px 0 rgba(0, 0, 0, 0.25);
}

.footer-main {
    max-width: 1120px;
    margin: 0 auto 0.5rem auto;
    padding: 1rem 1.25rem 0.75rem 1.25rem;
    display: grid;
    grid-template-columns: 1.4fr 1.1fr 1.1fr;
    gap: 1.5rem;
}

.footer-column {
    background-color: #f3f3f3;
    border: 1px solid #000000;
    box-shadow:
        inset 1px 1px 0 var(--shadow-light),
        inset -1px -1px 0 var(--shadow-dark);
    padding: 0.75rem;
}

.footer-title {
    margin-top: 0;
    margin-bottom: 0.4rem;
    font-size: 0.9rem;
    font-weight: 700;
}

.footer-text {
    margin: 0 0 0.4rem 0;
}

.footer-text-small {
    font-size: 0.78rem;
    color: var(--text-muted);
}

.footer-social-list {
    list-style: none;
    margin: 0.25rem 0 0.35rem 0;
    padding: 0;
}

.footer-social-list li + li {
    margin-top: 0.25rem;
}

.footer-social-link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    color: inherit;
}

.footer-social-link:hover,
.footer-social-link:focus {
    text-decoration: none;
}

.social-label {
    font-size: 0.82rem;
}

.footer-social-icon {
    width: 25px;
    height: 25px;
    display: block;
    image-rendering: pixelated;
}

.credits-text {
    margin-top: 0.35rem;
}

.credits-name {
    font-weight: 600;
}

/* Barra di stato in stile vecchio sistema operativo */
.footer-status-bar {
    border-top: 1px solid #000000;
    padding: 0.25rem 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background-color: var(--gray-light);
}

.status-label {
    padding: 0.1rem 0.4rem;
    background-color: #ffffff;
    border: 1px solid #000000;
    font-weight: 600;
}

.status-text {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ---------------------------------------------------------
   TASKBAR STILE WINDOWS 95
   --------------------------------------------------------- */

.taskbar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    height: 38px;
    background-color: var(--gray-medium);
    border-top: 2px solid #ffffff;
    box-shadow:
        inset 0 1px 0 #ffffff,
        inset 0 -1px 0 #808080;
    display: flex;
    align-items: center;
    padding: 0 0.5rem;
    gap: 0.4rem;
    z-index: 100;
    font-size: 13px;
}

/* Pulsante Start stile Windows 95: rialzato (bordo chiaro in alto/sinistra, scuro in basso/destra) */
.start-button {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  margin-top: 2px;
  margin-bottom: 2px;
  height: calc(100% - 4px);
  background-color: #d4d0c8;
  color: #000000;
  cursor: pointer;
  border: 2px solid;
  border-color: #ffffff #808080 #808080 #ffffff; /* top right bottom left = rialzato */
  box-shadow: none;
  -webkit-tap-highlight-color: transparent;
  -webkit-appearance: none;
  appearance: none;
}

/* Stato premuto: aspetto "incassato" come il vero Start di Windows 95 */
.start-button:active,
.start-button.is-active {
  border-color: #808080 #ffffff #ffffff #808080; /* invertito = incassato */
  background-color: #c0c0c0;
  box-shadow: inset 2px 2px 0 0 #808080;
}

.start-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
}

.start-icon-image {
    width: 100%;
    height: 100%;
    display: block;
    image-rendering: pixelated;
}

.start-label {
    font-weight: 600;
    font-size: 17px; /* Avvio più grande e leggibile */
    line-height: 1;
    color: #000000;
    font-family: "w95fa", "Microsoft Sans Serif", "MS Sans Serif", Tahoma, Verdana, system-ui, sans-serif;
}

.taskbar-middle {
    /* non occupare tutta la larghezza, segui la larghezza del testo */
}

.taskbar-window-label {
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

/* Rientranza stile Windows 95: bordo scuro in alto/sinistra, chiaro in basso/destra */
.taskbar-clock {
    margin-left: auto;
    min-width: 60px;
    background-color: #d4d0c8;
    margin-top: 2px;
    margin-bottom: 2px;
    height: calc(100% - 4px);
    padding: 0 0.4rem;
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.25rem;
    border: 2px solid;
    border-color: #808080 #ffffff #ffffff #808080; /* top right bottom left = incassato */
}

.taskbar-clock-label {
    font-size: 13px;
}

.taskbar-volume-icon {
    width: 14px;
    height: 14px;
    image-rendering: pixelated;
}

/* ---------------------------------------------------------
   MENU AVVIO
   --------------------------------------------------------- */

.start-menu {
    position: fixed;
    left: 0.3rem;
    /* allinea il bordo inferiore del menu esattamente al bordo superiore della taskbar */
    bottom: 2.4rem; /* stessa altezza della .taskbar */
    width: 240px;
    background-color: var(--gray-medium);
    display: none;
    z-index: 110;
    border: 2px solid;
    border-top-color: currentcolor;
    border-right-color: currentcolor;
    border-bottom-color: currentcolor;
    border-left-color: currentcolor;
    border-color: #ffffff #808080 #808080 #ffffff;
}

.start-menu.is-open {
    display: block;
}

.start-menu-inner {
    display: grid;
    grid-template-columns: 40px 1fr;
}

.start-menu-side {
    background: #7e777e;
    color: #ffffff;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding: 0.5rem 0.2rem;
}

.start-side-text {
    writing-mode: vertical-rl;
    transform: rotate(180deg);
    font-family: Arial;
    letter-spacing: -0.5px;
    font-size: 25px;
}

.start-menu-main {
    background-color: #d4d0c8;
    padding: 0.25rem 0.15rem;
}

.start-menu-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.start-menu-item {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.25rem 0.4rem;
    color: #000000;
}

.start-menu-item:hover,
.start-menu-item:focus {
    background-color: #000084;
    color: #ffffff;
    text-decoration: none;
}

.start-menu-icon {
    width: 25px;
    height: 25px;
    image-rendering: pixelated;
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain; /* icona interamente visibile dentro 25x25 */
}

/* Icone specifiche per le voci del menu Avvio */
.start-menu-icon-home {
    background-image: url("../icon/home.png");
}

.start-menu-icon-chi-siamo {
    background-image: url("../icon/chi-siamo.png");
}

.start-menu-icon-il-raduno {
    background-image: url("../icon/il-raduno.png");
}

.start-menu-icon-cosa-trovi {
    background-image: url("../icon/cosa-trovi.png");
}

.start-menu-icon-identita {
    background-image: url("../icon/identita.png");
}

.start-menu-icon-partecipa {
    background-image: url("../icon/partecipa.png");
}

.start-menu-label {
    font-size: 0.82rem;
}

/* ---------------------------------------------------------
   MODAL / POPUP "INFORMAZIONI SUL WEBMASTER"
   --------------------------------------------------------- */

.modal-overlay {
    position: fixed;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.4);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 120;
}

.modal-overlay.is-open {
    display: flex;
}

.modal-window {
    max-width: 520px;
    margin: 0.55rem;
}

.modal-body {
    display: grid;
    grid-template-columns: 1.1fr 1.9fr;
    gap: 0.75rem;
}

.modal-logo-area {
    align-self: flex-start;
}

.modal-text-area {
    font-size: 0.82rem;
}

.modal-heading {
    margin-top: 0;
    font-weight: 700;
}

.modal-text {
    margin: 0 0 0.4rem 0;
}

.modal-actions {
    margin-top: 0.5rem;
    display: flex;
    gap: 0.5rem;
    justify-content: flex-end;
}

.modal-main-action {
    text-decoration: none;
}

/* ---------------------------------------------------------
   RESPONSIVE DESIGN
   Mantiene l’anima rétro su schermi più piccoli
   --------------------------------------------------------- */

@media (max-width: 960px) {
    .page-wrapper {
        padding: 0.55rem;
    }

    .hero-section .window-body.hero-body {
        grid-template-columns: 1fr;
    }

    .two-cols,
    .identity-layout {
        grid-template-columns: 1fr;
    }

    .four-cols {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .desktop-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .footer-main {
        grid-template-columns: 1fr 1fr;
        gap: 1rem;
    }
}

@media (max-width: 640px) {
    .start-menu {
        bottom: 2.3rem;
    }

    .four-cols {
        grid-template-columns: 1fr;
    }

    .desktop-grid {
        grid-template-columns: 1fr;
    }

    .footer-main {
        grid-template-columns: 1fr;
    }

    h1.hero-heading {
        font-size: 1.5rem;
    }

    /* Icone desktop in mobile: in alto, su due file */
    .desktop-icons {
        /* Mobile: barra icone in alto, 4 colonne x 2 righe */
        position: static;
        margin: 2rem 0 0 0;
        display: grid;
        grid-template-columns: repeat(4, minmax(0, 1fr));
        row-gap: 0.75rem;
        column-gap: 0.5rem;
        justify-items: center;
    }

    .desktop-icon {
        width: 72px;
    }
}

/* =========================================================
   NOTE PER FUTURE PAGINE SECONDARIE
   ---------------------------------------------------------
   - Crea nuovi file PHP in /pages/ (es: raduno.php, info.php).
   - In ogni nuovo file:
       <?php
       $pageTitle = "Titolo pagina";
       include __DIR__ . "/../includes/header.php";
       ?>
       <!-- contenuto pagina qui -->
       <?php include __DIR__ . "/../includes/footer.php"; ?>
   - Riutilizzerai lo stesso header e lo stesso footer
     mantenendo il branding e lo stile coerente.
   ========================================================= */

