/* --- VARIABILI E RESET --- */
:root {
    --blu: #1e2a78;
    --fucsia: #ff2d87;
    --chiaro: #f7f7f7;
    --testo: #555;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    background: var(--chiaro);
    color: var(--blu);
    line-height: 1.6;
}

/* --- HEADER --- */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 40px;
    background: white;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    position: relative; /* Necessario per il menu mobile */
    z-index: 1000;
}

header img {
    height: 60px;
}

/* HAMBURGER ICON (Nascosta su PC) */
.hamburger {
    display: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--blu);
}

/* NAVIGAZIONE (Stile PC) */
nav a {
    margin: 0 15px;
    text-decoration: none;
    color: var(--blu);
    font-weight: bold;
    transition: color 0.3s;
}

nav a:hover {
    color: var(--fucsia);
}

/* --- HERO SECTION --- */
.hero {
    background: linear-gradient(rgba(30, 42, 120, 0.55), rgba(30, 42, 120, 0.55)),
    url('images/header_02.jpeg') center/cover;
    color: white;
    text-align: center;
    padding: 180px 20px 220px 20px;
}

.hero h1 span {
    color: var(--fucsia);
}

/* --- BACHECA NEWS MINIMALE --- */
.news-section {
    max-width: 1200px;
    margin: -20px auto 40px;
    padding: 0 20px;
    position: relative;
    z-index: 10;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
}

.news-card {
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    text-align: left;
    transition: transform 0.3s ease;
}

.news-card:hover {
    transform: translateY(-10px);
}

.news-tag {
    display: inline-block;
    color: var(--fucsia);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 1px;
    border-bottom: 2px solid var(--fucsia);
    margin-bottom: 10px;
}

.news-date {
    font-size: 0.8rem;
    color: #bbb;
    margin-left: 10px;
}

.news-card h4 {
    font-size: 1.25rem;
    color: var(--blu);
    margin-bottom: 10px;
}

.news-card p {
    font-size: 0.95rem;
    color: var(--testo);
    margin-bottom: 15px;
}

.news-attachment {
    display: inline-flex;
    align-items: center;
    color: var(--fucsia);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    margin-top: 5px;
    border-bottom: 1px solid rgba(255, 45, 135, 0.2);
    padding-bottom: 2px;
    transition: all 0.2s;
}

.news-attachment i {
    margin-right: 8px;
}

.news-attachment:hover {
    border-bottom-color: var(--fucsia);
    opacity: 0.8;
}

/* --- SEZIONI CONTENUTO --- */
.section {
    padding: 70px 20px;
    max-width: 1200px;
    margin: auto;
    text-align: center;
}

.grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
    text-align: left;
}

.grid img {
    width: 100%;
    border-radius: 15px;
}

/* CARDS SERVIZI */
.cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 25px;
}

.card {
    background: white;
    padding: 30px;
    border-radius: 20px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.03);
}

.card .icon {
    font-size: 35px;
    margin-bottom: 15px;
    color: var(--fucsia);
}

/* GALLERIA SLIDER */
.slider {
    display: flex;
    overflow-x: auto;
    gap: 15px;
    padding-bottom: 20px;
}

.slider img {
    width: 280px;
    height: 200px;
    object-fit: cover;
    border-radius: 12px;
}

/* MAPPA */
.map iframe {
    width: 100%;
    height: 350px;
    border: 0;
    border-radius: 15px;
}

/* CONTATTI */
.contact-box {
    display: flex;
    justify-content: center;
    gap: 50px;
    flex-wrap: wrap;
}

.contact-box div i {
    font-size: 25px;
    color: var(--fucsia);
    margin-bottom: 10px;
}

/* WHATSAPP FLOAT */
.whatsapp {
    position: fixed;
    bottom: 25px;
    right: 25px;
    background: #25d366;
    color: white;
    width: 55px;
    height: 55px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 25px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    z-index: 1000;
}

/* FOOTER */
footer {
    background: var(--blu);
    padding: 60px 20px;
    text-align: center;
    color: #999;
    font-size: 0.9rem;
}

/* --- RESPONSIVE & MENU HAMBURGER --- */
@media (max-width: 768px) {
    header { padding: 15px 20px; }
    
    .hamburger { display: block; } /* Mostra l'icona hamburger */

    nav {
        display: none; /* Nasconde menu orizzontale */
        flex-direction: column;
        position: absolute;
        top: 80px;
        left: 0;
        width: 100%;
        background: white;
        padding: 20px;
        box-shadow: 0 5px 15px rgba(0,0,0,0.1);
        z-index: 1000;
        text-align: center;
    }

    nav.active {
        display: flex;
        animation: fadeIn 0.3s ease; /* Effetto fluido */
    }

    nav a {
        margin: 15px 0;
        font-size: 1.1rem;
        display: block;
    }

    .hero { padding: 120px 20px 180px 20px; }
    .grid { grid-template-columns: 1fr; text-align: center; }
    .news-section { margin-top: -60px; }
    .contact-box { gap: 30px; }
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}
