/**
 * Stili specifici della homepage Publivoce
 */

/* ============================================================
   HERO
   ============================================================ */
.pv-home-hero {
    width: 100%;
    overflow: hidden;
    margin-bottom: 60px;
}

.pv-home-hero__fallback {
    position: relative;
    width: 100%;
    height: 600px;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pv-home-hero__overlay {
    position: absolute;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.35);
}

.pv-home-hero__content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: #fff;
    padding: 0 20px;
}

.pv-home-hero__content h1 {
    color: #fff;
    font-size: 48px;
    margin-bottom: 16px;
}

.pv-home-hero__content p {
    font-size: 18px;
    opacity: 0.9;
}

/* ============================================================
   CHI SIAMO
   ============================================================ */
.pv-home-chi-siamo {
    margin-bottom: 60px;
}

.pv-home-chi-siamo h2 {
    margin-bottom: 24px;
}

.pv-home-chi-siamo__testo {
    color: #555;
    line-height: 1.7;
}

.pv-home-chi-siamo__testo a {
    color: #995958;
    text-decoration: underline;
}

/* ============================================================
   SERVIZI
   ============================================================ */
.pv-home-servizi {
    margin-bottom: 20px;
}

.pv-home-servizi-grid {
    margin-bottom: 50px;
}

.pv-home-servizi-grid--seconda {
    margin-bottom: 0;
}

.pv-home-servizi-grid .col-md-3 {
    text-align: center;
    padding: 30px 15px;
}

.pv-home-servizi-grid .servizi img {
    margin: 0 auto;
    max-width: 176px;
    transition: transform 0.3s ease;
}

.pv-home-servizi-grid .servizi a:hover img {
    transform: scale(1.05);
}

.pv-home-servizi-grid .text-center {
    margin-top: 20px;
    font-size: 15px;
    text-align: center;
}

.pv-home-servizi-grid .text-center a {
    color: #995958;
    text-transform: lowercase;
}

.pv-home-servizi-grid .text-center a:hover {
    color: #7f4545;
    text-decoration: underline;
}

/* ============================================================
   PROMOZIONI
   ============================================================ */
.pv-home-promo {
    margin: 80px 0;
}

.pv-home-promo h2 {
    margin-bottom: 30px;
}

.pv-promo-img {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.pv-newsletter-wrapper {
    padding: 30px;
    border-radius: 4px;
    margin-top: 20px;
}

.pv-newsletter-inner {
    padding: 20px;
}

.pv-newsletter-inner h3 {
    font-size: 18px;
    margin-bottom: 20px;
    color: #995958;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.pv-newsletter-form input[type="text"],
.pv-newsletter-form input[type="email"],
.pv-newsletter-form select {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
    margin-bottom: 12px;
}

.pv-newsletter-form .pv-privacy {
    font-size: 13px;
    line-height: 1.4;
    margin: 16px 0;
}

.pv-newsletter-form .buttoncontinua {
    cursor: pointer;
}

/* ============================================================
   PUNTI DI FORZA
   ============================================================ */
.pv-home-punti-forza {
    padding: 80px 0;
    margin: 60px 0;
}

.pv-home-punti-forza h2 {
    margin-bottom: 50px;
}

.pv-home-punti-forza .col-md-3 {
    text-align: center;
    margin-bottom: 40px;
}

.pv-home-punti-forza .imgcirc {
    max-width: 70%;
    margin: 0 auto 20px;
}

.pv-home-punti-forza .imgcirc img {
    margin: 0 auto;
    transition: transform 0.4s ease;
}

.pv-home-punti-forza .col-md-3:hover .imgcirc img {
    transform: scale(1.05);
}

.pv-home-punti-forza .textcirc {
    text-align: center;
    font-weight: 700;
    font-size: 16px;
    color: #333;
    margin-bottom: 8px;
}

.pv-home-punti-forza .textcirc2 {
    text-align: center;
    font-size: 14px;
    line-height: 1.4;
    padding: 0 20px;
    color: #777;
}

/* ============================================================
   CONTATTI
   ============================================================ */
.pv-home-contatti {
    padding: 80px 0;
    margin-top: 60px;
}

.pv-home-contatti__tel {
    font-size: 22px;
    color: #7f4545;
    margin-bottom: 10px;
    line-height: 1.3;
}

.pv-home-contatti__email {
    font-size: 18px;
    color: #7f4545;
    margin-bottom: 30px;
}

.pv-home-contatti__email a {
    color: #7f4545;
}

.pv-home-contatti__email a:hover {
    color: #995958;
    text-decoration: underline;
}

.pv-home-contatti__map iframe {
    width: 100%;
    height: 488px;
    border: 0;
    border-radius: 4px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

/* Form contatti fallback */
.pv-contatti-form label {
   /* display: block;*/
    font-weight: 600;
    color: #333;
    margin-top: 8px;
}

.pv-contatti-form .intext {
    width: 100%;
    padding: 10px 12px;
    margin: 4px 0 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
    outline: none;
}

.pv-contatti-form .intext:focus {
    border-color: #995958;
    box-shadow: 0 0 0 2px rgba(153, 89, 88, 0.15);
}

.pv-contatti-form #cometrovato {
    font-weight: 600;
    margin-top: 10px;
    display: block;
    color: #333;
}

.pv-contatti-form .optval {
    margin-right: 6px;
}

.pv-contatti-form #checkprivacy {
    margin-right: 8px;
}

.pv-contatti-form #labelprivacy {
    font-size: 13px;
    line-height: 1.4;
}

.pv-contatti-form #buttoninvia {
    background-color: #995958;
    color: #fff;
    border: none;
    padding: 12px 30px;
    cursor: pointer;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    font-size: 11px;
    border-radius: 4px;
    transition: background-color 0.3s ease;
    margin-top: 10px;
}

.pv-contatti-form #buttoninvia:hover {
    background-color: #7f4545;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 991px) {

    .pv-home-hero__fallback { height: 450px; }
    .pv-home-hero__content h1 { font-size: 36px; }
    .pv-home-hero__content p { font-size: 16px; }

    .pv-home-servizi-grid .col-md-3 {
        padding: 20px 10px;
    }

    .pv-home-punti-forza {
        padding: 50px 0;
    }

    .pv-home-contatti {
        padding: 50px 0;
    }

    .pv-home-contatti__tel { font-size: 19px; }
    .pv-home-contatti__email { font-size: 16px; }

    .pv-home-contatti__map iframe {
        height: 350px;
        margin-top: 30px;
    }
}

@media (max-width: 767px) {

    .pv-home-hero__fallback { height: 300px; }
    .pv-home-hero__content h1 { font-size: 28px; }
    .pv-home-hero__content p { font-size: 14px; }

    .pv-home-chi-siamo { margin-bottom: 40px; }

    .pv-home-servizi-grid {
        margin-bottom: 30px;
    }

    .pv-home-servizi-grid .col-md-3 {
        flex: 0 0 50%;
        max-width: 50%;
    }

    .pv-home-promo { margin: 50px 0; }

    .pv-newsletter-wrapper {
        padding: 20px 15px;
    }

    .pv-home-punti-forza .col-md-3 {
        flex: 0 0 100%;
        max-width: 100%;
    }

    .pv-home-punti-forza .imgcirc {
        max-width: 180px;
    }
}


/* ============================================
   SEZIONE CONTATTI HOMEPAGE
   ============================================ */
.pv-home-contatti {
    padding: 80px 0;
    background: #f4f4f4;
}

.pv-home-contatti .pv-section-title {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 2em;
    color: #1a1a1a;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.pv-home-contatti .pv-section-subtitle {
    color: #6c757d;
    font-size: 1.05em;
    margin-bottom: 45px;
}

/* Form */
.pv-contatti-form {
    background: #fff;
    padding: 35px 30px;
    border-radius: 15px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.08);
}

.pv-form-row {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 18px;
}

.pv-form-group {
    flex: 1 1 100%;
    display: flex;
    flex-direction: column;
}

.pv-form-group--half {
    flex: 1 1 calc(50% - 8px);
    min-width: 200px;
}

.pv-form-group label {
    font-size: 0.9em;
    font-weight: 600;
    color: #495057;
    margin-bottom: 6px;
}

.pv-form-group .pv-required {
    color: #dc3545;
    font-weight: 700;
}

.pv-form-group input[type="text"],
.pv-form-group input[type="email"],
.pv-form-group input[type="tel"],
.pv-form-group select {
    width: 100%;
    padding: 11px 14px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 0.95em;
    color: #333;
    background: #fff;
    transition: all 0.25s ease;
    font-family: inherit;
    box-sizing: border-box;
}

.pv-form-group input:focus,
.pv-form-group select:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.15);
    outline: none;
}

/* Checkbox privacy */
.pv-form-group--checkbox {
    margin-top: 5px;
}
.pv-checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 0.9em;
    color: #495057;
    font-weight: 400;
    cursor: pointer;
    line-height: 1.5;
}
.pv-checkbox-label input[type="checkbox"] {
    margin-top: 3px;
    width: 18px;
    height: 18px;
    accent-color: #667eea;
    flex-shrink: 0;
    cursor: pointer;
}
.pv-checkbox-label a {
    color: #667eea;
    text-decoration: underline;
}

/* Bottone submit */
.pv-form-group--submit {
    margin-top: 10px;
}

.pv-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 13px 30px;
    border: none;
    border-radius: 50px;
    font-size: 1em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
    text-decoration: none;
}

.pv-btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    width: 100%;
}

.pv-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.4);
}

/* Info contatti */
.pv-contatti-info {
    background: #fff;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.08);
    margin-bottom: 20px;
}

.pv-contatti-info h3 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 1.3em;
    color: #1a1a1a;
    margin: 0 0 20px 0;
    padding-bottom: 15px;
    border-bottom: 2px solid #f4f4f4;
}

.pv-contatti-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.pv-contatti-list li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 10px 0;
    font-size: 0.95em;
    color: #495057;
    line-height: 1.5;
}

.pv-contatti-list li i {
    color: #667eea;
    font-size: 1.1em;
    margin-top: 3px;
    flex-shrink: 0;
    width: 20px;
    text-align: center;
}

.pv-contatti-list a {
    color: #495057;
    text-decoration: none;
    transition: color 0.2s;
}
.pv-contatti-list a:hover {
    color: #667eea;
}

/* Mappa */
.pv-mappa-wrapper {
    background: #fff;
    padding: 15px;
    border-radius: 15px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.08);
    overflow: hidden;
}

.pv-mappa-wrapper iframe {
    display: block;
}

.pv-mappa-placeholder {
    background: #fff;
    padding: 50px 30px;
    border-radius: 15px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.08);
    text-align: center;
    color: #6c757d;
}

.pv-mappa-placeholder i {
    font-size: 3em;
    color: #dee2e6;
    margin-bottom: 15px;
    display: block;
}

/* Messaggi di feedback */
.pv-form-message {
    padding: 14px 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 0.95em;
    font-weight: 500;
    animation: pvMsgIn 0.3s ease;
}

@keyframes pvMsgIn {
    from { transform: translateY(-10px); opacity: 0; }
    to   { transform: translateY(0); opacity: 1; }
}

.pv-form-message--success {
    background: #d4edda;
    color: #155724;
    border-left: 4px solid #28a745;
}

.pv-form-message--error {
    background: #f8d7da;
    color: #721c24;
    border-left: 4px solid #dc3545;
}

/* Responsive */
@media (max-width: 768px) {
    .pv-home-contatti {
        padding: 50px 0;
    }
    .pv-home-contatti .pv-section-title {
        font-size: 1.5em;
    }
    .pv-contatti-form {
        padding: 25px 20px;
        margin-bottom: 25px;
    }
    .pv-form-group--half {
        flex: 1 1 100%;
    }
}

/* ============================================
   GRIGLIA "COME CI HAI TROVATO" - 2 COLONNE
   ============================================ */
.pv-checkbox-grid {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 10px !important;
    margin-top: 5px !important;
    width: 100%;
}

.pv-checkbox-tile {
    display: block !important;
    cursor: pointer !important;
    margin: 0 !important;
    position: relative !important;
    width: auto !important;
    float: none !important;
}

/* Nasconde la checkbox nativa */
.pv-checkbox-tile input[type="checkbox"] {
    position: absolute !important;
    opacity: 0 !important;
    width: 0 !important;
    height: 0 !important;
    pointer-events: none !important;
}

/* Il "tile" visibile */
.pv-checkbox-tile-content {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    padding: 12px 14px !important;
    border: 2px solid #e9ecef !important;
    border-radius: 8px !important;
    background: #fff !important;
    font-size: 0.95em !important;
    font-weight: 500 !important;
    color: #495057 !important;
    transition: all 0.2s ease !important;
    user-select: none;
    line-height: 1.3 !important;
    box-sizing: border-box !important;
    width: 100%;
}

.pv-checkbox-tile-content i {
    color: #adb5bd !important;
    font-size: 1em !important;
    width: 18px !important;
    text-align: center !important;
    transition: color 0.2s ease !important;
    flex-shrink: 0 !important;
}

/* Hover */
.pv-checkbox-tile:hover .pv-checkbox-tile-content {
    border-color: #b8c2f0 !important;
    background: #f8f9ff !important;
}

/* Stato selezionato */
.pv-checkbox-tile input[type="checkbox"]:checked + .pv-checkbox-tile-content {
    border-color: #667eea !important;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.08) 0%, rgba(118, 75, 162, 0.08) 100%) !important;
    color: #4c51bf !important;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.15) !important;
}

.pv-checkbox-tile input[type="checkbox"]:checked + .pv-checkbox-tile-content i {
    color: #667eea !important;
}

/* Focus accessibilità */
.pv-checkbox-tile input[type="checkbox"]:focus + .pv-checkbox-tile-content {
    outline: 2px solid #667eea !important;
    outline-offset: 2px !important;
}

/* Responsive: sotto 400px diventa 1 colonna */
@media (max-width: 400px) {
    .pv-checkbox-grid {
        grid-template-columns: 1fr !important;
    }
}