/* ===== BASE ===== */
body {
    font-family: 'Open Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background-color: #f7f5f0;
    color: #333;
    margin: 0;
    padding: 0;
}

a {
    color: #0e457a;
    text-decoration: none;
}

.icon-inline {
    vertical-align: middle;
    margin-right: 2px;
}

.icon-contatto {
    flex-shrink: 0;
    margin-top: 2px;
}

a:hover {
    text-decoration: underline;
    color: #f47920;
}

/* ===== NAVBAR ===== */
#mainNav {
    background-color: #0e457a;
    padding: 8px 0;
}

#mainNav .navbar-brand {
    font-family: 'Open Sans', sans-serif;
    font-size: 1.5rem;
    font-weight: 800;
    color: #fff;
}

#mainNav .navbar-brand b {
    color: #f47920;
}

.logo-img {
    height: 45px;
}

#mainNav .nav-link {
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    padding: 8px 15px;
}

#mainNav .nav-link:hover {
    color: #fff;
    text-decoration: none;
}

.logo-fallback {
    color: #fff;
    font-size: 1.4rem;
    font-weight: 800;
}

/* ===== HERO CAROUSEL ===== */
.slider-home {
    height: 65vh;
    min-height: 350px;
    max-height: 550px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.slider-color {
    background: linear-gradient(135deg, #0e457a 0%, #1a6bb5 100%);
}

.carousel-caption-custom {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    text-align: center;
    padding: 30px;
    pointer-events: none;
}

.carousel-caption-custom h1 {
    font-family: 'Open Sans', sans-serif;
    font-weight: 800;
    font-size: clamp(1.8rem, 5vw, 3rem);
    color: #fff;
    text-shadow: 2px 3px 10px rgba(0, 0, 0, 0.5);
    margin: 0;
}

/* ===== PULSANTI HOME ===== */
.pulsanti-home {
    background-color: #0e457a;
    padding: 25px 0;
}

.pulsante-box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #fff;
    border-radius: 12px;
    padding: 20px;
    text-decoration: none;
    color: #333;
    transition: box-shadow 0.2s;
    height: 100%;
}

.pulsante-box:hover {
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    text-decoration: none;
    color: #333;
}

.pulsante-box h3 {
    font-size: 1.1rem;
    font-weight: 800;
    color: #0e457a;
    margin: 0;
    line-height: 1.3;
}

.pulsante-icon {
    font-size: 2.5rem;
}

.frase-home {
    color: #fff;
    font-size: 0.95rem;
    margin: 0;
    line-height: 1.6;
    text-align: center;
}

@media (min-width: 768px) {
    .frase-home {
        text-align: left;
    }
}

/* ===== SEZIONI ===== */
.titolo-sezione {
    font-weight: 800;
    font-size: 1.5rem;
    color: #0e457a;
    text-transform: uppercase;
    margin-bottom: 15px;
}

.text-accent {
    color: #f47920;
    font-weight: 600;
    font-size: 0.9rem;
}

.sezione-chiara {
    background-color: #fff;
}

.sezione-colorata {
    background-color: #0e457a;
}

.btn-primary {
    background-color: #f47920;
    border-color: #f47920;
    font-weight: 700;
    border-radius: 100px;
}

.btn-primary:hover {
    background-color: #d4681c;
    border-color: #d4681c;
}

.btn-outline-primary {
    color: #0e457a;
    border-color: #0e457a;
}

.btn-outline-primary:hover {
    background-color: #0e457a;
    border-color: #0e457a;
    color: #fff;
}

.text-primary {
    color: #0e457a !important;
}

/* ===== REPARTI ===== */
.reparto-box {
    background: #fff;
    border-radius: 12px;
    padding: 25px 15px;
    text-align: center;
    height: 100%;
    transition: transform 0.2s;
}

.reparto-box:hover {
    transform: translateY(-3px);
}

.reparto-icona {
    font-size: 2.8rem;
    display: block;
    margin-bottom: 10px;
}

.reparto-box p {
    margin: 0;
    font-weight: 700;
    font-size: 0.85rem;
    color: #0e457a;
}

/* ===== OFFERTE ===== */
.offerta-card {
    background: #fff;
    border-radius: 12px;
    padding: 20px 15px;
    text-align: center;
    position: relative;
    height: 100%;
    border: 1px solid #e9ecef;
}

.badge-sconto {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #e40613;
    color: #fff;
    padding: 3px 10px;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 800;
}

.offerta-img-placeholder {
    font-size: 3rem;
    margin: 10px 0 15px;
}

.offerta-card h6 {
    font-weight: 700;
    color: #333;
    margin-bottom: 3px;
}

.offerta-provenienza {
    font-size: 0.78rem;
    color: #999;
    margin-bottom: 12px;
}

.offerta-prezzi {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.prezzo-vecchio {
    color: #999;
    text-decoration: line-through;
    font-size: 0.85rem;
}

.prezzo-nuovo {
    color: #e40613;
    font-weight: 800;
    font-size: 1.15rem;
}

/* ===== BANNER PROMO ===== */
.banner-promo {
    padding: 30px 0;
}

.banner-inner {
    background: #e40613;
    border-radius: 16px;
    padding: 35px;
}

.banner-inner .row {
    background: #fff;
    border-radius: 12px;
    padding: 30px;
    margin: 0;
}

.banner-titolo {
    font-weight: 800;
    color: #e40613;
    font-size: 2rem;
    margin-bottom: 5px;
}

.banner-emoji {
    font-size: 6rem;
}

/* ===== CONTATTI / DOVE SIAMO ===== */
.info-contatto {
    display: flex;
    gap: 12px;
    margin-bottom: 18px;
    align-items: flex-start;
}

.info-contatto .icon-contatto {
    display: flex;
    align-items: flex-start;
    margin-top: 3px;
}

.info-contatto strong {
    display: block;
    font-size: 0.8rem;
    text-transform: uppercase;
    color: #999;
    margin-bottom: 2px;
    letter-spacing: 0.03em;
}

.info-contatto p {
    margin: 0;
}

.info-contatto a {
    color: #333;
}

.info-contatto a:hover {
    color: #f47920;
}

.orari-box {
    background: #f7f5f0;
    border-radius: 12px;
    padding: 20px;
}

.orari-box h5 {
    font-weight: 700;
    font-size: 1rem;
    margin-bottom: 12px;
    color: #0e457a;
}

.sezione-contatti {
    background-color: #0e457a;
}

.social-links a {
    font-weight: 600;
}

/* ===== FOOTER ===== */
.site-footer {
    background: #1a1a1a;
    color: rgba(255, 255, 255, 0.7);
    padding: 40px 0 0;
}

.site-footer h5 {
    color: #fff;
    font-weight: 800;
}

.site-footer h5 b {
    color: #f47920;
}

.site-footer h6 {
    color: #fff;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 0.05em;
    margin-bottom: 12px;
}

.site-footer ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.site-footer li {
    margin-bottom: 6px;
    font-size: 0.88rem;
}

.site-footer a {
    color: rgba(255, 255, 255, 0.7);
}

.site-footer a:hover {
    color: #f47920;
    text-decoration: none;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 15px 0;
    margin-top: 20px;
    text-align: center;
}

.footer-bottom p {
    font-size: 0.78rem;
    margin: 0;
    color: rgba(255, 255, 255, 0.4);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .slider-home {
        height: 45vh;
        min-height: 250px;
    }

    .carousel-caption-custom h1 {
        font-size: 1.5rem;
    }

    .banner-inner {
        padding: 15px;
    }

    .banner-inner .row {
        padding: 20px;
    }

    .banner-titolo {
        font-size: 1.5rem;
    }

    .banner-emoji {
        font-size: 4rem;
    }
}