/* ========================================
   Peschiera Parking - Base
   Variabili Gestopark, reset, tipografia (da InfoPark)
   ======================================== */

/* Titillium Web ospitato sul nostro server (fonts/, licenza SIL OFL 1.1 in fonts/OFL.txt).
   NON caricarlo da Google Fonts: ogni visita invierebbe l'IP del visitatore a Google
   (GDPR — sentenza LG München 20/01/2022). Stessi file e intervalli di Google (v19). */
@font-face { /* latin-ext */
    font-family: 'Titillium Web';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('../fonts/titillium-web-400-latin-ext.woff2') format('woff2');
    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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face { /* latin */
    font-family: 'Titillium Web';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('../fonts/titillium-web-400-latin.woff2') format('woff2');
    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 { /* latin-ext */
    font-family: 'Titillium Web';
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url('../fonts/titillium-web-600-latin-ext.woff2') format('woff2');
    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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face { /* latin */
    font-family: 'Titillium Web';
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url('../fonts/titillium-web-600-latin.woff2') format('woff2');
    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 { /* latin-ext */
    font-family: 'Titillium Web';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url('../fonts/titillium-web-700-latin-ext.woff2') format('woff2');
    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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face { /* latin */
    font-family: 'Titillium Web';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url('../fonts/titillium-web-700-latin.woff2') format('woff2');
    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;
}

:root {
    /* Gestopark Design System */
    --gp-primary: #4C84BC;
    --gp-primary-dark: #3a6a9a;
    --gp-accent: #F57C00;
    --gp-accent-dark: #E65100;
    --gp-bg: #F5F5F5;
    --gp-surface: #FFFFFF;
    --gp-text: #353535;
    --gp-text-secondary: #6b7280;
    --gp-success: #28a745;
    --gp-warning: #f59e0b;
    --gp-error: #dc3545;
    --gp-border: #e0e0e0;

    --gp-radius-sm: 6px;
    --gp-radius-md: 10px;
    --gp-radius-lg: 16px;
    --gp-shadow-card: 0 2px 8px rgba(0,0,0,0.08);
    --gp-shadow-modal: 0 8px 32px rgba(0,0,0,0.18);

    --gp-font: 'Titillium Web', 'Roboto', 'Segoe UI', sans-serif;

    /* Stati disponibilità parcheggio (semaforo) */
    --pp-stato-disponibile: var(--gp-success);
    --pp-stato-ridotta: var(--gp-accent);
    --pp-stato-pieno: var(--gp-error);
    --pp-stato-nondisponibile: #9ca3af;
    --pp-stato-caricamento: var(--gp-primary);

    --pp-header-height: 56px;
    --pp-gutter: 16px;
    --safe-area-top: env(safe-area-inset-top, 0px);
    --safe-area-bottom: env(safe-area-inset-bottom, 0px);
}

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html, body {
    height: 100%;
}

body {
    font-family: var(--gp-font);
    font-size: 16px;
    line-height: 1.4;
    color: var(--gp-text);
    background: var(--gp-bg);
    overflow: hidden;
    -webkit-text-size-adjust: 100%;
}

button {
    font: inherit;
    color: inherit;
    cursor: pointer;
    border: none;
    background: none;
}

[hidden] {
    display: none !important;
}
