/* ============================================
   FONT (da Google Fonts, caricati nell'HTML)
   Poppins per i titoli (geometrico, moderno, deciso)
   Inter per il testo (pulito, leggibilissimo)
   ============================================ */

/* ============================================
   VARIABILI — il "brand" in un posto solo
   ============================================ */
:root {
    --magenta: #d6216f;
    --arancio: #f7941d;
    --viola: #8e44ad;
    --viola-scuro: #5e3872;

    --scuro: #1f1420;
    --grigio: #6b6570;
    --chiaro: #faf7fb;

    /* Il gradiente-firma: lo definisco una volta, lo riuso ovunque */
    --gradiente: linear-gradient(120deg, var(--magenta) 0%, var(--arancio) 100%);

    --ombra-morbida: 0 10px 30px rgba(31, 20, 32, 0.08);
    --ombra-forte: 0 15px 40px rgba(214, 33, 111, 0.25);
}

/* ============================================
   BASE
   ============================================ */
body {
    font-family: "Inter", system-ui, sans-serif;
    color: var(--scuro);
    background-color: #ffffff;
}

h1,
h2,
h3,
.navbar-brand {
    font-family: "Poppins", sans-serif;
    font-weight: 700;
}

html {
    scroll-behavior: smooth;
}

section,
header {
    scroll-margin-top: 70px;
}

/* Titoli di sezione con una barretta colorata sotto:
   piccolo dettaglio che dà identità e non costa nulla */
.titolo-sezione {
    position: relative;
    display: inline-block;
    margin-bottom: 2.5rem;
}

/* .titolo-sezione::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -12px;
    width: 60px;
    height: 4px;
    border-radius: 2px;
    background: var(--gradiente);
} */

/* ============================================
   NAVBAR
   ============================================ */
.navbar {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(8px);
    /* effetto "vetro": la barra sfoca ciò che ci scorre sotto */
}

.navbar-brand {
    color: var(--magenta) !important;
    font-size: 1.4rem;
}

.nav-link {
    font-weight: 500;
    color: var(--scuro) !important;
    transition: color 0.2s ease;
}

.nav-link:hover {
    color: var(--magenta) !important;
}

/* ============================================
   HERO — il colpo d'occhio
   ============================================ */

/* ============================================
   TITOLO HERO — riempimento a gradiente
   ============================================ */
.titolo-gradiente {
    font-weight: 800;
    letter-spacing: -1px;
    /* Il gradiente diventa il "colore" del testo */
    background: var(--gradiente);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    /* Contorno + stacco simulati con ombre (il clip non permette un vero bordo) */
    text-shadow:
        0 2px 4px rgba(214, 33, 111, 0.15);
}

/* ============================================
   TITOLO HERO — con vero contorno (outline)
   Alternativa: lettere "vuote" col solo bordo colorato
   ============================================ */
.titolo-outline {
    font-weight: 800;
    letter-spacing: -1px;
    color: #ffffff;
    -webkit-text-stroke: 2px var(--magenta);
    text-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}


.hero-section {
    position: relative;
    min-height: 88vh;
    display: flex;
    align-items: center;
    
    background-image:
        linear-gradient(120deg, rgba(214, 33, 111, 0.35) 0%, rgba(247, 148, 29, 0.10) 100%),
        linear-gradient(rgba(255, 255, 255, 0.55), rgba(255, 255, 255, 0.15)),
        url("../img/hero.jpg");

    background-size: cover;
    background-position: center;
    color: var(--scuro);
    /* testo scuro: su foto sbiadita il bianco sparirebbe */
    text-align: center;
    padding: 4rem 1rem;
}

.hero-section h1 {
    font-size: clamp(2.5rem, 8vw, 5rem);
    /* clamp = font fluido: min 2.5rem, cresce con lo schermo, max 5rem.
       Niente media query per la dimensione del titolo */
    letter-spacing: -1px;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
    margin-bottom: 1rem;
}

.hero-section .lead {
    color: #ffffff;
    font-size: clamp(1.1rem, 2.5vw, 1.4rem);
    max-width: 640px;
    margin: 0 auto 2rem;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    font-weight: bold;
}

/* Piccola etichetta sopra il titolo */
.hero-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.5);
    padding: 0.4rem 1.2rem;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 1.5rem;
    backdrop-filter: blur(4px);
}

.stato-badge {
    display: inline-block;
    margin-left: 0.5rem;
    padding: 0.4rem 1rem;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    background: rgba(255, 255, 255, 0.7);
}

.stato-badge.aperto {
    color: #1a7a3c;
}

.stato-badge.chiuso-ora {
    color: #b02a37;
}

/* ============================================
   BOTTONI
   ============================================ */
.btn-brand {
    background: var(--gradiente);
    color: #ffffff;
    border: none;
    font-weight: 600;
    padding: 0.8rem 2rem;
    border-radius: 50px;
    box-shadow: var(--ombra-forte);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-brand:hover {
    color: #ffffff;
    transform: translateY(-3px);
    /* si "solleva" al passaggio del mouse */
    box-shadow: 0 20px 50px rgba(214, 33, 111, 0.4);
}

.btn-ghost {
    background: transparent;
    color: #ffffff;
    border: 2px solid rgba(255, 255, 255, 0.8);
    font-weight: 600;
    padding: 0.8rem 2rem;
    border-radius: 50px;
    transition: all 0.2s ease;
}

.btn-ghost:hover {
    background: #ffffff;
    color: var(--magenta);
    transform: translateY(-3px);
}

/* ============================================
   SEZIONI
   ============================================ */
section {
    padding: 5rem 0;
}

.bg-soft {
    background-color: var(--chiaro);
}

/* ============================================
   CARD "COSA TROVI" — categorie in griglia
   ============================================ */
.categoria-card {
    background: #ffffff;
    border-radius: 18px;
    padding: 2rem 1.5rem;
    text-align: center;
    height: 100%;
    box-shadow: var(--ombra-morbida);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.categoria-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--ombra-forte);
}

.categoria-card .icona {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    display: block;
}

.categoria-card h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.categoria-card p {
    color: var(--grigio);
    font-size: 0.95rem;
    margin-bottom: 0;
}

/* ============================================
   TABELLA ORARI
   ============================================ */
.tabella-orari {
    background: #ffffff;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: var(--ombra-morbida);
}

.tabella-orari th,
.tabella-orari td {
    padding: 1rem 1.5rem;
    border: none;
    border-bottom: 1px solid #f0ecf2;
}

.tabella-orari tr:last-child th,
.tabella-orari tr:last-child td {
    border-bottom: none;
}

.tabella-orari th {
    font-family: "Poppins", sans-serif;
    font-weight: 600;
    width: 45%;
}

.tabella-orari .chiuso {
    color: #c0b8c6;
}

/* Evidenzia "oggi" — lo attiveremo via JS nel prossimo passo */
.tabella-orari .oggi {
    background: var(--chiaro);
    position: relative;
}

.tabella-orari .oggi th::before {
    content: "▸ ";
    color: var(--magenta);
}

/* ============================================
   MAPPA
   ============================================ */
.mappa-wrap {
    border-radius: 18px;
    overflow: hidden;
    box-shadow: var(--ombra-morbida);
}

/* ============================================
   FOOTER
   ============================================ */
footer {
    background: var(--scuro);
    color: rgba(255, 255, 255, 0.6);
    padding: 3rem 0 2rem;
    text-align: center;
}

footer a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
}

footer a:hover {
    color: var(--arancio);
}

.footer-firma {
    font-size: 0.85rem;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}


/* Su schermi piccoli, hero più contenuto */
@media (max-width: 576px) {
    .hero-section {
        min-height: 70vh;
        padding: 3rem 1rem;
    }
}