/* Stili generali per la pagina garanzia */
.garanzia-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Blocco 1: Testata */
.garanzia-header {
    background: url('https://sistemair.it/wp-content/uploads/2025/02/Garanzia-Sistem-Air-1.jpg') no-repeat center center;
    background-size: cover;
    width: 100%;
    height: 400px;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.garanzia-overlay {
    background: rgba(221, 221, 214, 0.95);
    padding: 20px 40px;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    max-width: 800px;
}

.garanzia-overlay h1 {
    font-size: 2.5rem;
    margin-bottom: 15px;
    color: #333;
}

.garanzia-overlay p {
    font-size: 1.2rem;
    color: #555;
    line-height: 1.6;
}


/* Design responsivo */
@media (max-width: 768px) {
    .garanzia-header {
        height: auto;
        padding: 20px;
    }

    .garanzia-overlay {
        padding: 15px 20px;
        max-width: 90%;
        background: rgba(221, 221, 214, 1);
    }

    .garanzia-overlay h1 {
        font-size: 2rem;
    }

    .garanzia-overlay p {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .garanzia-header h1 {
        font-size: 25px;
        line-height: 1.2;
        margin-bottom: 10px;
    }

    .garanzia-header p {
        font-size: 14px;
        line-height: 1.5;
        margin-bottom: 15px;
    }
}

/* Blocco 2: Opzioni di garanzia */
.garanzia-options {
    padding: 80px 20px;
    background: #fff;
}

.garanzia-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.garanzia-box {
    background: linear-gradient(135deg, #f4f4f4, #fff);
    padding: 20px;
    border-radius: 15px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
    text-align: center;
    position: relative;
    transition: background 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}

.garanzia-box:hover {
    background: linear-gradient(135deg, #e6e6e6, #f8f8f8);
    transform: translateY(-5px);
    box-shadow: 0px 8px 20px rgba(0, 0, 0, 0.2);
}

/* Barretta decorativa accanto al bottone */
.garanzia-box h2::after {
    content: '';
    position: absolute;
    right: 15px;
    bottom: 15px;
    width: 4px;
    height: 50px;
    background-color: #00aaad;
    border-radius: 2px;
}

/* Colori delle barrette */
.garanzia-box:nth-child(2) h2::after {
    background-color: #008C45;
}

.garanzia-box:nth-child(3) h2::after {
    background-color: #dedacf;
}

/* Icona animata */
.garanzia-box .garanzia-icon {
    font-size: 3rem;
    color: #00aaad;
    margin-bottom: 20px;
    transition: transform 0.3s ease, color 0.3s ease;
}

.garanzia-box:nth-child(2) .garanzia-icon {
    color: #008C45;
}

.garanzia-box:nth-child(3) .garanzia-icon {
    color: #dedacf;
}

.garanzia-box:hover .garanzia-icon {
    transform: scale(1.1);
    color: #333;
}

/* Pulsanti */
.btn {
    display: inline-block;
    margin-top: 20px;
    padding: 15px 25px;
    text-decoration: none;
    border-radius: 5px;
    font-size: 1rem;
    font-weight: bold;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

/* Stile per il pulsante Platino */
.btn-platino {
    background: #dedacf;
    color: #333;
    border: 1px solid #ccc;
}

.btn-platino:hover {
    background: #b4b2aa;
    transform: translateY(-2px);
    box-shadow: 0px 4px 15px rgba(0, 0, 0, 0.2);
}

/* Stile per il pulsante Antracite */
.btn-antracite {
    background: #333;
    color: #fff;
    border: 1px solid #333;
}

.btn-antracite:hover {
    background: #555;
    transform: translateY(-2px);
    box-shadow: 0px 4px 15px rgba(0, 0, 0, 0.2);
}

/* Layout responsivo per dispositivi mobili */
@media (max-width: 480px) {
    .garanzia-options {
        padding: 10px;
        overflow-x: hidden;
    }

    .garanzia-grid {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 10px;
        width: 100%;
        margin: 0 auto;
        box-sizing: border-box;
    }

    .garanzia-box {
        min-width: 0;
        padding: 10px;
        box-sizing: border-box;
        max-width: 100%;
    }

    .garanzia-box:nth-child(3) {
        grid-column: span 2;
    }

    .garanzia-box h2 {
        font-size: 16px;
        line-height: 1.3;
        margin-bottom: 8px;
        white-space: normal;
    }

    .garanzia-box p {
        font-size: 14px;
        line-height: 1.5;
        margin-bottom: 10px;
    }

    .btn {
        font-size: 0.9rem;
        padding: 10px 15px;
    }
}
