@charset "UTF-8";

/* ==========================================================================
   1. RESET E BASE
   ========================================================================== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Helvetica Neue', Arial, sans-serif;
    background-color: #f8fafc;
    color: #1e293b;
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.container {
    width: 100%;
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ==========================================================================
   2. HEADER CON SFONDO NERO
   ========================================================================== */
.site-header {
    background-color: #111111; /* Sfondo Nero */
    border-bottom: 2px solid #f37021;
    padding: 15px 0;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    max-width: 280px;
    height: auto;
    display: block;
}

.tagline p {
    font-size: 1.25rem; /* Ingrandito per visibilità */
    color: #cccccc;   /* Testo chiaro su fondo nero */
    font-style: italic;
    font-weight: 600;
}

/* ==========================================================================
   3. MENU DI NAVIGAZIONE CON TOGGLE MOBILE
   ========================================================================== */
.nav-bar {
    background-color: #f37021;
    border-radius: 8px;
    margin: 20px 0 35px 0;
    padding: 6px;
    box-shadow: 0 4px 12px rgba(243, 112, 33, 0.15);
    position: relative;
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    color: #ffffff;
    font-size: 24px;
    cursor: pointer;
    padding: 8px 14px;
    width: 100%;
    text-align: right;
}

.nav-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    list-style: none;
    gap: 4px;
}

.nav-link {
    display: block;
    padding: 8px 14px;
    color: #ffffff;
    text-decoration: none;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    border-radius: 6px;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.nav-link:hover, 
.nav-link.active {
    background-color: #d85c10;
}

/* ==========================================================================
   4. INTESTAZIONE SEZIONE HERO
   ========================================================================== */
.hero-section {
    text-align: center;
    margin-bottom: 40px;
}

.hero-title {
    font-size: 1.6rem;
    font-weight: 800;
    color: #0f172a;
    letter-spacing: -0.5px;
    margin-bottom: 10px;
    text-transform: uppercase;
}

.hero-subtitle {
    font-size: 0.95rem;
    color: #475569;
    max-width: 750px;
    margin: 0 auto 15px auto;
}

.hero-badge {
    display: inline-block;
    background-color: #fce7f3;
    color: #db2777;
    font-weight: 800;
    font-size: 0.85rem;
    padding: 6px 18px;
    border-radius: 50px;
    letter-spacing: 0.5px;
}

/* ==========================================================================
   5. GRIGLIA CARDS OFFERTE
   ========================================================================== */
.offers-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    margin-bottom: 40px;
}

.offer-card {
    background: #ffffff;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    padding: 24px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    text-decoration: none;
    color: inherit;
    position: relative;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.offer-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 20px -3px rgba(0, 0, 0, 0.1);
    border-color: #f37021;
}

.badge-days {
    position: absolute;
    top: 18px;
    right: 18px;
    background-color: #22c55e;
    color: #ffffff;
    font-size: 0.95rem;
    font-weight: 800;
    padding: 6px 12px;
    border-radius: 20px;
    box-shadow: 0 2px 4px rgba(34, 197, 94, 0.2);
}

.price-main {
    font-size: 2.2rem;
    font-weight: 900;
    color: #db2777;
    line-height: 1;
    margin-bottom: 12px;
    letter-spacing: -1px;
}

.offer-detail {
    font-size: 0.95rem;
    font-weight: 700;
    color: #166534;
    margin-bottom: 4px;
}

.offer-detail span {
    color: #db2777;
}

.unit-price {
    font-size: 0.8rem;
    color: #64748b;
    font-weight: 600;
    margin-bottom: 20px;
}

.card-btn {
    display: block;
    width: 100%;
    text-align: center;
    background-color: #fce7f3;
    color: #db2777;
    font-weight: 800;
    font-size: 0.8rem;
    padding: 10px;
    border-radius: 6px;
    letter-spacing: 0.5px;
    transition: all 0.2s ease;
}

.offer-card:hover .card-btn {
    background-color: #db2777;
    color: #ffffff;
}

.offer-card-featured {
    grid-column: 2;
}

/* ==========================================================================
   6. BOTTONE INDIETRO
   ========================================================================== */
.back-action {
    text-align: center;
    margin: 10px 0 50px 0;
}

.back-btn {
    display: inline-block;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.back-btn:hover {
    transform: scale(1.03);
    opacity: 0.9;
}

.back-btn img {
    width: 167px;
    height: 34px;
    display: block;
}

/* ==========================================================================
   7. FOOTER CON SFONDO ARANCIONE E SCRITTE BIANCHE
   ========================================================================== */
.site-footer {
    background-color: #f37021; /* Sfondo Arancione */
    color: #ffffff;            /* Testo Bianco */
    padding: 35px 0;
    margin-top: auto;
}

.footer-grid {
    display: flex;
    justify-content: space-between;
    gap: 30px;
}

.footer-info p {
    font-size: 0.85rem;
    color: #ffffff;
    margin-bottom: 6px;
}

.footer-info strong {
    color: #ffffff;
}

.footer-info a {
    color: #ffffff;
    text-decoration: underline;
    font-weight: bold;
}

.footer-info a:hover {
    color: #ffe6d5;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 10px 16px;
    max-width: 400px;
}

.footer-links a {
    font-size: 0.85rem;
    color: #ffffff;
    text-decoration: none;
    font-weight: 600;
    transition: opacity 0.2s ease;
}

.footer-links a:hover {
    opacity: 0.8;
    text-decoration: underline;
}

/* ==========================================================================
   8. RESPONSIVE (MOBILE & TABLET)
   ========================================================================== */
@media (max-width: 992px) {
    .offers-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .offer-card-featured {
        grid-column: span 2;
        max-width: 400px;
        margin: 0 auto;
        width: 100%;
    }
}

@media (max-width: 768px) {
    .header-content, .footer-grid {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }

    .footer-links {
        justify-content: center;
    }

    /* Menu Mobile a Scomparsa */
    .nav-toggle {
        display: block;
    }

    .nav-list {
        display: none;
        flex-direction: column;
        width: 100%;
        padding-top: 8px;
    }

    .nav-list.open {
        display: flex;
    }

    .nav-link {
        text-align: center;
        padding: 10px;
    }

    .offers-grid {
        grid-template-columns: 1fr;
    }

    .offer-card-featured {
        grid-column: 1;
    }

    .hero-title {
        font-size: 1.3rem;
    }
}