﻿/* ============================
   NAVBAR BASE
============================ */

.navbar {
    width: 100%;
    position: fixed;
    top: 0;
    z-index: 999;
    transition: background 0.4s ease, padding 0.3s ease, box-shadow 0.3s ease;
}

/* Navbar trasparente (iniziale) */
.navbar-transparent {
    background: rgba(0, 0, 0, 0.15); /* leggero scuro per NON far vedere l’hero dietro */
    backdrop-filter: blur(6px);
    padding: 20px 0;
}

/* Navbar quando scrolli */
.navbar-scrolled {
    background: rgba(0, 44, 92, 0.95); /* blu scuro opaco */
    padding: 10px 0;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}

/* Contenitore navbar */
.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Logo navbar */
.navbar-logo img {
    height: 70px;
    padding: 8px 14px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    object-fit: contain;
}

/* Menu navbar */
.navbar-menu {
    list-style: none;
    display: flex;
    gap: 25px;
    align-items: center;
}

    .navbar-menu a {
        color: white;
        font-weight: 600;
        transition: 0.2s;
    }

        .navbar-menu a:hover {
            color: var(--azzurro-ghiaccio);
        }

.navbar-cta {
    margin-left: 8px;
}

.btn-nav {
    background: rgba(255,255,255,0.12);
    border: 1px solid rgba(255,255,255,0.20);
    padding: 10px 16px;
    border-radius: 10px;
    font-weight: 800;
}

.btn-nav:hover {
    background: rgba(214,40,40,0.22);
    border-color: rgba(214,40,40,0.35);
    color: white;
}

.navbar-toggle {
    display: none;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.18);
    background: rgba(255,255,255,0.10);
}

.navbar-toggle span {
    display: block;
    height: 2px;
    background: white;
    margin: 7px 10px;
    border-radius: 10px;
}

/* Hero generico per pagine interne */
.page-hero {
    position: relative;
    height: 52vh;
    min-height: 360px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 60px;
    border-bottom-left-radius: 26px;
    border-bottom-right-radius: 26px;
    overflow: hidden;
}

.page-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, rgba(0,44,92,0.78), rgba(0,80,168,0.40));
}

.page-hero-content {
    position: relative;
    text-align: center;
    color: white;
}

.page-hero-content h1 {
    font-size: 3rem;
    color: white;
}

.page-hero-content p {
    margin-top: 10px;
    font-weight: 700;
    color: rgba(255,255,255,0.90);
    max-width: 760px;
    margin-left: auto;
    margin-right: auto;
}

.mini-list {
    margin-top: 14px;
    list-style: none;
    display: grid;
    gap: 8px;
    padding: 0;
}

.mini-list li {
    background: rgba(232,244,255,0.6);
    padding: 10px 12px;
    border-radius: 12px;
    font-weight: 700;
    color: var(--blu-scuro);
}

.cta-band {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.cta-band h2 {
    color: var(--blu-scuro);
    font-size: 1.8rem;
}

.cta-band p {
    margin-top: 6px;
    font-weight: 600;
    color: #2b3b4a;
}

@media (max-width: 980px) {
    .navbar-toggle {
        display: inline-block;
    }

    .navbar-menu {
        position: absolute;
        right: 5%;
        top: 92px;
        background: rgba(0,44,92,0.96);
        border: 1px solid rgba(255,255,255,0.12);
        border-radius: 16px;
        padding: 12px;
        flex-direction: column;
        gap: 10px;
        min-width: 220px;
        display: none;
        box-shadow: 0 14px 40px rgba(0,0,0,0.22);
    }

    .navbar-menu.open {
        display: flex;
    }

    .navbar-menu a {
        padding: 10px 10px;
        display: block;
    }

    .navbar-cta {
        width: 100%;
        margin-left: 0;
    }

    .btn-nav {
        display: block;
        width: 100%;
        text-align: center;
    }

    .cta-band {
        flex-direction: column;
        text-align: center;
    }
}


/* ============================
   FOOTER
============================ */

.footer {
    background: var(--blu-scuro);
    color: rgba(255,255,255,0.82);
    padding: 70px 0 0;
    margin-top: 80px;
}

/* Grid 4 colonne */
.footer-grid {
    display: grid;
    grid-template-columns: 1.6fr 1fr 1.4fr 1.2fr;
    gap: 50px;
    align-items: start;
    padding-bottom: 60px;
    border-bottom: 1px solid rgba(255,255,255,0.10);
}

/* ---- Brand ---- */
.footer-logo-link {
    display: inline-block;
}

.footer-logo-img {
    height: 80px;
    padding: 6px 12px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 3px 14px rgba(0,0,0,0.20);
    object-fit: contain;
}

.footer-tagline {
    margin-top: 18px;
    font-size: 0.93rem;
    line-height: 1.65;
    color: rgba(255,255,255,0.65);
}

.footer-badge {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 20px;
}

.footer-badge span {
    font-size: 0.73rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 4px 10px;
    border-radius: 20px;
    border: 1px solid rgba(232,244,255,0.25);
    color: var(--azzurro-ghiaccio);
}

/* ---- Heading colonne ---- */
.footer-heading {
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--azzurro-ghiaccio);
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--rosso-alba);
    display: inline-block;
}

/* ---- Links navigazione ---- */
.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-links a {
    color: rgba(255,255,255,0.70);
    font-size: 0.94rem;
    font-weight: 500;
    transition: color 0.2s, padding-left 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.footer-links a::before {
    content: "›";
    color: var(--rosso-alba);
    font-size: 1.1rem;
    font-weight: 700;
    transition: transform 0.2s;
}

.footer-links a:hover {
    color: white;
    padding-left: 4px;
}

/* ---- Sedi ---- */
.footer-sede {
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.footer-sede--second {
    margin-top: 22px;
    padding-top: 22px;
    border-top: 1px solid rgba(255,255,255,0.08);
}

.footer-sede-city {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.98rem;
    font-weight: 700;
    color: white;
    margin: 0;
}

.footer-contact-link,
.footer-maps-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.88rem;
    color: rgba(255,255,255,0.65);
    transition: color 0.2s;
}

.footer-contact-link:hover {
    color: var(--azzurro-ghiaccio);
}

.footer-maps-link:hover {
    color: var(--rosso-alba);
}

/* ---- Icone SVG inline ---- */
.footer-icon {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
    opacity: 0.75;
}

/* ---- Info contatti ---- */
.footer-info {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.footer-info li {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 0.90rem;
    color: rgba(255,255,255,0.65);
    line-height: 1.45;
}

.footer-info li .footer-icon {
    margin-top: 2px;
}

.footer-info a {
    color: rgba(255,255,255,0.65);
    transition: color 0.2s;
}

.footer-info a:hover {
    color: var(--azzurro-ghiaccio);
}

/* ---- CTA bottone ---- */
.footer-cta-btn {
    display: inline-block;
    margin-top: 24px;
    padding: 10px 22px;
    background: var(--rosso-alba);
    color: white;
    font-size: 0.88rem;
    font-weight: 700;
    border-radius: 10px;
    transition: background 0.2s, transform 0.2s;
}

.footer-cta-btn:hover {
    background: #b81f1f;
    transform: translateY(-2px);
    color: white;
}

/* ---- Bottom bar ---- */
.footer-bottom {
    background: rgba(0,0,0,0.25);
    padding: 18px 0;
}

.footer-bottom .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.footer-copy {
    font-size: 0.82rem;
    color: rgba(255,255,255,0.45);
    margin: 0;
}

.footer-madeby {
    font-size: 0.82rem;
    color: rgba(255,255,255,0.45);
    margin: 0;
}

.footer-madeby strong {
    color: rgba(255,255,255,0.75);
}

.footer-heart {
    color: var(--rosso-alba);
    font-size: 0.95rem;
}

/* ---- Responsive ---- */
@media (max-width: 1100px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }
}

@media (max-width: 640px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 34px;
    }

    .footer-bottom .container {
        flex-direction: column;
        text-align: center;
    }
}

.page-content {
    padding-top: 120px; /* altezza navbar + spazio */
}

/* ============================
   ALLINEAMENTO CONTENUTI
   (evita blocchi/testi "a sinistra" per max-width e margin inconsistenti)
============================ */

.page-content .section-title {
    max-width: 980px;
    margin-left: auto;
    margin-right: auto;
}

.page-content .section-title p {
    max-width: 820px;
    margin-left: auto;
    margin-right: auto;
}

