/**
 * TuramaGo CSS - Template Mockup Finale
 */

/* CRITICAL CSS - Previeni scroll orizzontale */
* {
    box-sizing: border-box;
}

/* Tutti i container TuramaGo (NON body globale) */
[class*="turamago-"],
[class*="tmg-"],
.elementor-widget-turamago {
    max-width: 100%;
    overflow-x: hidden;
}

/* Immagini responsive SOLO nei container TuramaGo */
[class*="turamago-"] img,
[class*="tmg-"] img,
.elementor-widget-turamago img {
    max-width: 100%;
    height: auto;
}

/* Reset e Base */
.turamago-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
    font-family: 'Montserrat', sans-serif;
}

/* Box Struttura */
.offerta-box {
    background: white;
    margin-bottom: 30px;
    padding: 20px;
    border-radius: 0px;
}

/* RIGA 1: Nome Hotel */
.hotel-nome {
    font-size: 32px;
    font-weight: 800;
    color: #00c0be;
    margin-bottom: 5px;
    line-height: 1;
    text-transform: uppercase;
}

/* RIGA 2: Stelle | Località */
.hotel-info-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 15px;
}

.hotel-stelle {
    font-size: 20px;
    color: #f39c12;
    letter-spacing: 2px;
}

.hotel-localita {
    font-size: 18px;
    color: #666;
    font-weight: 700;
}

/* RIGA 3: Gallery */
.hotel-gallery {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    margin-bottom: 15px;
}

.hotel-gallery img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 4px;
}

/* RIGA 4: Distanze e Valutazione */
.hotel-dettagli {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background: #f2f2f2;
    border-radius: 8px;
    margin-bottom: 15px;
}

.hotel-distanze {
    display: flex;
    gap: 40px;
}

.distanza-item {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.distanza-label {
    font-size: 14px;
    color: #666;
    font-weight: 600;
    text-transform: uppercase;
}

.distanza-value {
    font-size: 16px;
    color: #333;
    font-weight: 700;
}

.hotel-valutazione {
    background: #27ae60;
    color: white;
    padding: 12px 20px;
    border-radius: 8px;
    font-size: 20px;
    font-weight: 800;
    min-width: 80px;
    text-align: center;
}

/* RIGA 5: Descrizione */
.hotel-descrizione {
    padding: 15px 0;
    font-size: 14px;
    line-height: 1.6;
    color: #333;
    border-bottom: 1px solid #e0e0e0;
    margin-bottom: 15px;
}

.hotel-descrizione strong {
    text-transform: uppercase;
}

/* RIGA 6: Pulsanti */
.hotel-buttons {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
}

.btn-vedi-hotel,
.btn-direct {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    padding: 15px 25px;
    border: 3px solid;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 800;
    transition: all 0.3s;
}

.btn-vedi-hotel {
    color: #9E60A8;
    border-color: #9E60A8;
    background: white;
}

.btn-vedi-hotel:hover {
    background: #9E60A8;
    color: white;
}

.btn-direct {
    color: #27ae60;
    border-color: #27ae60;
    background: white;
}

.btn-vedi-hotel:hover {
    background: #9E60A8;
    color: white;
}

.btn-vedi-hotel:hover .btn-icon {
    color: white;
}

.btn-direct:hover {
    background: #27ae60;
    color: white;
}

.btn-direct:hover .btn-icon {
    color: white;
}

.btn-icon {
    font-size: 32px;
}

.btn-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
    text-align: center;
}

.btn-label {
    font-size: 12px;
    text-transform: uppercase;
    font-weight: 600;
}

.btn-value {
    font-size: 18px;
    font-weight: 800;
    text-transform: uppercase;
}

/* OFFERTE */
.offerte-lista {
    margin-top: 20px;
}

/* === VANTAGGI (Badges sopra offerte) === */
.turamago-vantaggi {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
    padding: 0;
    justify-content: center;
}

.turamago-badge {
    background: #00c0be;
    color: white;
    padding: 8px 18px;
    border-radius: 4px;
    font-weight: 700;
    font-size: 13px;
    text-transform: uppercase;
    display: inline-block;
    font-family: 'Montserrat', sans-serif;
}

.offerta-row {
    display: grid;
    grid-template-columns: 2fr 1fr 2fr 1.2fr 1.5fr;
    align-items: center;
    gap: 15px;
    padding: 15px 20px;
    background: #f2f2f2;
    margin-bottom: 10px;
    border-radius: 4px;
}

.offerta-periodo {
    font-size: 14px;
    color: #333;
    font-weight: 600;
}

.offerta-notti {
    font-size: 32px;
    color: #00c0be;
    font-weight: 900;
    line-height: 1;
}

.offerta-trattamento {
    font-size: 14px;
    color: #333;
    font-weight: 700;
    text-transform: uppercase;
    line-height: 1.3;
}

.offerta-prezzo {
    font-size: 32px;
    color: #00c0be;
    font-weight: 900;
    text-align: right;
}

.btn-mi-interessa {
    background: linear-gradient(to right, #ff00c6 0%, #aa01ce 51%, #ff00c6 100%);
    background-size: 200% auto;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 800;
    font-size: 14px;
    cursor: pointer;
    transition: 0.3s;
    text-transform: uppercase;
    font-family: 'Montserrat', sans-serif;
}

.btn-mi-interessa:hover {
    background-position: right center;
}

/* VEDI PIÙ OFFERTE */
.vedi-piu-offerte-container {
    text-align: center;
    margin-top: 20px;
}

.btn-vedi-piu-offerte {
    background: white;
    color: #9E60A8;
    border: 2px solid #9E60A8;
    padding: 15px 40px;
    border-radius: 8px;
    font-weight: 800;
    font-size: 16px;
    cursor: pointer;
    transition: 0.3s;
    text-transform: uppercase;
    font-family: 'Montserrat', sans-serif;
}

.btn-vedi-piu-offerte:hover {
    background: #9E60A8;
    color: white;
}

/* ===== MOBILE ===== */
@media (max-width: 768px) {
    .turamago-container {
        padding: 10px;
    }
    
    .offerta-box {
        padding: 15px 8px;
        margin-bottom: 20px;
    }
    
    /* Nome Hotel */
    .hotel-nome {
        font-size: 24px;
        margin-bottom: 3px;
    }
    
    /* Stelle e Località */
    .hotel-info-row {
        margin-bottom: 10px;
    }
    
    .hotel-stelle {
        font-size: 24px;
    }
    
    .hotel-localita {
        font-size: 16px;
    }
    
    /* Gallery 2x2 */
    .hotel-gallery {
        grid-template-columns: repeat(2, 1fr);
        gap: 5px;
        margin-bottom: 10px;
    }
    
    .hotel-gallery img {
        height: 150px;
    }
    
    /* Distanze */
    .hotel-dettagli {
        padding: 12px 15px;
        margin-bottom: 10px;
    }
    
    .hotel-distanze {
        gap: 20px;
    }
    
    .distanza-label {
        font-size: 10px;
    }
    
    .distanza-value {
        font-size: 14px;
    }
    
    .hotel-valutazione {
        padding: 10px 15px;
        font-size: 18px;
        min-width: 70px;
    }
    
    /* Descrizione */
    .hotel-descrizione {
        font-size: 13px;
        padding: 12px 8px;
        margin-bottom: 10px;
    }
    
    /* Pulsanti */
    .hotel-buttons {
        flex-direction: column;
        gap: 10px;
        margin-bottom: 15px;
    }
    
    .btn-vedi-hotel,
    .btn-direct {
        padding: 12px 15px;
    }
    
    .btn-icon {
        font-size: 20px;
    }
    
    .btn-label {
        font-size: 10px;
    }
    
    .btn-value {
        font-size: 13px;
    }
    
    /* Offerte Mobile - Stack Verticale */
    .offerta-row {
        grid-template-columns: 1fr;
        gap: 10px;
        padding: 15px;
    }
    
    .offerta-periodo {
        font-size: 13px;
        order: 1;
    }
    
    .offerta-notti {
        font-size: 28px;
        order: 2;
        text-align: center;
    }
    
    .offerta-trattamento {
        font-size: 13px;
        order: 3;
        text-align: center;
    }
    
    .offerta-prezzo {
        font-size: 28px;
        order: 4;
        text-align: center;
    }
    
    .btn-mi-interessa {
        order: 5;
        width: 100%;
        padding: 14px;
        font-size: 13px;
    }
    
    /* Vedi Più Offerte */
    .btn-vedi-piu-offerte {
        padding: 12px 30px;
        font-size: 14px;
        width: 100%;
    }
}

/* === HOVER PULSANTI - COMPATIBILE SAFARI === */
a.btn-turama:hover {
    text-decoration: none !important;
}

a.btn-vedi-hotel:hover {
    background: #9E60A8 !important;
    background-color: #9E60A8 !important;
    color: white !important;
}

a.btn-vedi-hotel:hover i,
a.btn-vedi-hotel:hover .fas {
    color: white !important;
}

a.btn-direct-booking:hover {
    background: #27ae60 !important;
    background-color: #27ae60 !important;
    color: white !important;
}

a.btn-direct-booking:hover i,
a.btn-direct-booking:hover .fas {
    color: white !important;
}

/* Fallback webkit per Safari */
@supports (-webkit-appearance: none) {
    a.btn-vedi-hotel:hover {
        -webkit-transition: all 0.3s ease;
        transition: all 0.3s ease;
    }
    
    a.btn-direct-booking:hover {
        -webkit-transition: all 0.3s ease;
        transition: all 0.3s ease;
    }
}
