@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;700&display=swap');

body {
    font-family: 'Poppins', sans-serif;
    color: #333;
    background-color: #f7f8fa;
    line-height: 1.6;
}

button,
input[type="button"],
input[type="reset"],
input[type="submit"] {
    border-radius: 8px;
    padding: 10px 20px;
    border: 1px solid transparent;
    cursor: pointer;
    font-weight: bold;
}

.site-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1rem 2rem;
    background: linear-gradient(to right, #f0f2f5, #ffffff 50%, #f0f2f5);
    color: #2d3436;
    border-bottom: 1px solid #e9ecef;
}

.site-branding {
    margin: 0;
    margin-bottom: 1rem;
    text-align: center;
}

.site-title {
    margin: 0;
    font-size: 1.5rem;
}

.site-title a {
    color: #2d3436; /* Testo scuro per contrasto */
    text-decoration: none;
}

/* Stile per il logo personalizzato */
.custom-logo-link {
    line-height: 0; /* Rimuove spazio extra sotto l'immagine se è inline-block */
}

.site-branding .custom-logo {
    max-width: 200px; /* Imposta la larghezza massima del logo, puoi cambiare questo valore */
    height: auto; /* Mantiene le proporzioni corrette */
}

.site-description {
    font-size: 0.8rem;
    color: #777;
    margin: 0;
}

/* ==========================================================================
   Menu di Navigazione Principale
   ========================================================================== */
.main-navigation {
    display: block;
}

.main-navigation ul {
    display: flex; /* Allinea gli elementi orizzontalmente */
    list-style: none; /* Rimuove i pallini della lista */
    margin: 0;
    padding: 0;
}

.main-navigation li {
    margin: 0 0.4rem; /* Aggiunge un piccolo spazio tra i bottoni */
}

.main-navigation a {
    display: block;
    padding: 0.6rem 1.2rem;
    font-size: 0.9rem;
    text-decoration: none;
    color: #f5f5dc;
    font-weight: bold;
    border-radius: 8px;
    background-color: #005f99;
    transition: background-color 0.2s ease-in-out, color 0.2s ease-in-out;
}

.main-navigation a:hover,
.main-navigation .current-menu-item > a {
    background-color: #007acc; /* Blu più acceso per hover e pagina attiva */
    color: #ffffff;
}

/* ==========================================================================
   Menu Hamburger e Popup (Mobile)
   ========================================================================== */
.menu-toggle {
    display: none;
    background-color: transparent;
    color: #2d3436;
    border: 2px solid #2d3436;
    padding: 5px 10px;
    cursor: pointer;
}

.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(45, 52, 54, 0.98);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0s 0.3s;
}

.mobile-menu-overlay.is-open {
    opacity: 1;
    visibility: visible;
    transition: opacity 0.3s ease;
}

.mobile-menu-close {
    position: absolute;
    top: 20px;
    right: 25px;
    background: transparent;
    border: none;
    color: #fff;
    font-size: 3rem;
    line-height: 1;
    cursor: pointer;
    padding: 0;
}

.mobile-menu-overlay .mobile-navigation ul {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: center;
}

.mobile-menu-overlay .mobile-navigation li {
    margin-bottom: 1.5rem;
}

.mobile-menu-overlay .mobile-navigation a {
    color: #fff;
    text-decoration: none;
    font-size: 1.6rem;
    font-weight: 500;
    transition: color 0.2s ease;
    padding: 0.5rem;
    display: inline-block;
}

.mobile-menu-overlay .mobile-navigation a:hover,
.mobile-menu-overlay .mobile-navigation .current-menu-item > a {
    color: #007acc; /* Blu per hover e pagina attiva */
}

/* Impedisce lo scroll della pagina quando il menu è aperto */
body.mobile-menu-is-open {
    overflow: hidden;
}

/* ==========================================================================
   Stili per la Homepage e le Sezioni
   ========================================================================== */
.home-section {
    background-color: #ffffff;
    padding: 2rem 2.5rem;
    margin: 2.5rem auto;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    max-width: 1100px;
}

.home-section h2 {
    margin-top: 0;
    margin-bottom: 1.5rem;
}

.section-description {
    text-align: center;
    max-width: 750px;
    margin: -1rem auto 2rem auto;
    color: #555;
    font-size: 1rem;
}

/* Stile per i badge con scroll orizzontale */
.horizontal-scroll-container {
    overflow-x: auto;
    white-space: nowrap;
    padding-bottom: 1rem; /* Spazio per la barra di scorrimento */
    -webkit-overflow-scrolling: touch; /* Scrolling fluido su iOS */
}

.service-badge {
    display: inline-block;
    padding: 0.6rem 1.2rem;
    background-color: #eaf2f8;
    color: #345c7d;
    border-radius: 25px;
    margin-right: 1rem;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s ease;
    white-space: nowrap; /* Impedisce al testo di andare a capo */
}

.service-badge:hover {
    background-color: #d4e3f3;
    transform: translateY(-2px);
}

/* Stile per la griglia dei servizi */
.services-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.service-card {
    border: 1px solid #e0e0e0;
    padding: 1.5rem;
    border-radius: 8px;
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

/* ==========================================================================
   Stili per Sezione Pacchetti
   ========================================================================== */
.packages-section {
    background-color: #eef3f7;
}

.packages-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 3 colonne su desktop */
    gap: 2rem;
}

.package-card {
    background-color: #fff;
    border: 1px solid #dce9f2;
    padding: 2rem;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.package-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.package-card h3 {
    margin-top: 0;
    color: #005f99;
}

.package-card .package-description {
    font-size: 0.9rem;
    color: #555;
    flex-grow: 1; /* Spinge la lista e il bottone in basso */
}

.package-card .package-features {
    list-style: none;
    padding-left: 0;
    margin-bottom: 1.5rem;
}

.package-card .package-features li {
    padding-left: 1.5em;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="%2328a745" class="bi bi-check-circle-fill" viewBox="0 0 16 16"><path d="M16 8A8 8 0 1 1 0 8a8 8 0 0 1 16 0zm-3.97-3.03a.75.75 0 0 0-1.08.022L7.477 9.417 5.384 7.323a.75.75 0 0 0-1.06 1.06L6.97 11.03a.75.75 0 0 0 1.079-.02l3.992-4.99a.75.75 0 0 0-.01-1.05z"/></svg>');
    background-repeat: no-repeat;
    background-position: left center;
    margin-bottom: 0.5rem;
}

/* ==========================================================================
   Stili per Sezione Progetti
   ========================================================================== */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.project-card {
    background-color: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.project-card__image-link {
    display: block;
    line-height: 0; /* Rimuove spazio sotto l'immagine */
}

.project-card img {
    width: 100%;
    height: 200px;
    max-width: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.project-card:hover img {
    transform: scale(1.05);
}

.project-card__content {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

/* ==========================================================================
   Stili per Elementi Singoli
   ========================================================================== */
.button-back {
    display: inline-block;
    margin-bottom: 1.5rem;
    text-decoration: none;
    font-weight: bold;
}

/* ==========================================================================
   Stili per Archivio Servizi
   ========================================================================== */
.page-header {
    margin-bottom: 2rem;
    text-align: center;
}

.archive-description {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 2.5rem auto;
    font-size: 1.1rem;
    color: #555;
}

.services-archive-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.service-badge-item {
    display: block;
    text-decoration: none;
    color: #333;
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
    text-align: center;
    transition: all 0.3s ease;
}

.service-badge-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.service-badge-item img {
    max-width: 100%;
    height: auto;
}

.service-badge-title {
    margin: 1rem 0 0.5rem;
}

.service-badge-price {
    display: block;
    margin-bottom: 1rem;
    font-weight: bold;
    color: #005f99;
}

/* ==========================================================================
   Stili per Singolo Servizio
   ========================================================================== */
.servizio-singolo-article {
    max-width: 900px;
    margin: 2.5rem auto; /* Centra il box e dà spazio sopra/sotto */
    padding: 2.5rem;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.07);
}

.servizio-singolo-article .entry-header {
    text-align: center;
    margin-bottom: 2rem;
    border-bottom: 1px solid #eee;
    padding-bottom: 1.5rem;
}
.servizio-singolo-article .entry-header .button-request-quote {
    margin-top: 1rem; /* Spazio tra titolo e pulsante */
    display: inline-block; /* Necessario per applicare margini */
}


.servizio-singolo-article .entry-title {
    font-size: 2.5rem;
    color: #2d3436; /* Grigio scuro per il titolo */
}

.servizio-singolo-article .entry-content {
    font-size: 1.1rem;
    line-height: 1.7;
    color: #444;
}

.servizio-singolo-article .entry-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 1.5rem 0;
}

/* ==========================================================================
   Stili per Singolo Servizio
   ========================================================================== */
.servizio-singolo-article {
    max-width: 900px;
    margin: 2.5rem auto; /* Centra il box e dà spazio sopra/sotto */
    padding: 2.5rem;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.07);
}

.servizio-singolo-article .entry-header {
    text-align: center;
    margin-bottom: 2rem;
    border-bottom: 1px solid #eee;
    padding-bottom: 1.5rem;
}
.servizio-singolo-article .entry-header .button-request-quote {
    margin-top: 1rem;
    display: inline-block;
}


.servizio-singolo-article .entry-title {
    font-size: 2.5rem;
    color: #2d3436;
}

.servizio-singolo-article .entry-content {
    font-size: 1.1rem;
    line-height: 1.7;
    color: #444;
}

.servizio-singolo-article .entry-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 1.5rem 0;
}

.insight-section {
    padding: 2rem 1rem;
    max-width: 900px;
    margin: 2.5rem auto;
}

.insight-section h2 {
    text-align: center;
    font-size: 2.2rem;
    margin-bottom: 2.5rem;
}

.insight-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2.5rem;
    max-width: 1100px; /* Allarga leggermente il contenitore per ospitare 2 colonne */
}

.insight-item {
    display: flex;
    background-color: #fff;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.07);
    margin-bottom: 2.5rem;
    overflow: hidden;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Stile per rendere l'intera card un link */
.insight-item-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

/* Manteniamo l'effetto hover sulla card quando è un link */
.insight-item-link:hover .insight-item {
    transform: translateY(-8px);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.12);
}

.insight-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.12);
}

.insight-item__image {
    flex: 0 0 40%;
    min-height: 200px; /* Riduciamo l'altezza minima dell'immagine */
    background-size: cover;
    background-position: center;
    transition: transform 0.4s ease;
}

.insight-item:hover .insight-item__image {
    transform: scale(1.05);
}

.insight-item__image-link {
    display: block;
    flex: 0 0 40%;
}

.insight-item__content {
    padding: 2rem 2.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.insight-item__content h3 {
    margin-top: 0;
}

.insight-item__content .button-read-more {
    margin-top: auto;
    align-self: flex-start;
}

/* Promo Banner */
.promo-banner {
    background: linear-gradient(45deg, #005f99, #007acc);
    color: #fff;
    padding: 2.5rem;
    border-radius: 12px;
    text-align: center;
    margin: 3rem 0;
}

/* Sezione Messaggio Promozionale */
.promo-message-section {
    background-color: #eef3f7;
    text-align: center;
}

.promo-message-content {
    max-width: 800px;
    margin: 0 auto;
}

.promo-message-content h3 {
    color: #005f99;
    font-size: 1.6rem;
}

.promo-message-content p {
    font-size: 1.1rem;
}

/* ==========================================================================
   Stili Footer
   ========================================================================== */
.site-footer {
    background-color: #2d3436;
    color: #aaa;
    padding: 3rem 1rem;
    text-align: center;
    position: relative; /* Necessario per posizionare gli elementi figli */
}

.site-footer .custom-logo-link {
    display: inline-block;
    margin-bottom: 1.5rem;
}

footer#colophon .custom-logo {
    max-width: 120px !important; /* Forza la dimensione del logo nel footer */
    height: auto;
}

.site-footer .site-info {
    font-size: 0.85rem;
    margin-top: 1.5rem;
}

.footer-donation {
    margin-top: 1.5rem;
}

.donation-button {
    display: inline-block;
    padding: 8px 16px; /* Padding ridotto per un pulsante piccolo */
    font-size: 0.8rem; /* Testo piccolo */
    font-weight: bold;
    color: #2d3436; /* Testo scuro per contrasto */
    background-color: #ffdd57; /* Giallo per donazioni */
    border-radius: 5px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.donation-button:hover {
    background-color: #ffca28; /* Giallo più scuro al passaggio del mouse */
}

.footer-contact-info {
    font-size: 0.85rem;
    position: absolute;
    bottom: 1rem;
    right: 1.5rem;
}

.footer-contact-info a,
.footer-contact-info span {
    color: #ddd; /* Grigio più chiaro per una migliore leggibilità */
}

.footer-contact-info a {
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-contact-info a:hover {
    color: #fff;
    text-decoration: underline;
}

/* ==========================================================================
   Stili per Pagine Interne (Chi Siamo, Contatti)
   ========================================================================== */
/* Stile per il contenitore delle pagine generiche create con page.php */
.page-template-template-chisiamo .entry-content,
.page-template-template-contatti .entry-content {
    max-width: 900px;
    margin: 2rem auto;
    padding: 2.5rem;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.07);
}

.page-template-template-chisiamo .entry-header,
.page-template-template-contatti .entry-header {
    text-align: center;
    margin-bottom: 2rem;
}

.about-us-image {
    margin-bottom: 2rem;
    border-radius: 8px;
    overflow: hidden;
}

.contact-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

/* ==========================================================================
   Stili per Prezzo e Pulsanti Servizi (Versione Definitiva)
   ========================================================================== */
.service-price,
.service-price-single {
    margin-top: 1rem;
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    color: #333;
    background-color: #f8f9fa;
    padding: 0.75rem 1rem;
    border-radius: 6px;
    border-left: 4px solid #007bff;
}

.service-price-single {
    max-width: 300px;
}

.service-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: auto;
    padding-top: 1rem;
}

/* Stile base COMUNE per entrambi i pulsanti */
.button-request-quote,
.button-view-service {
    display: inline-block;
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    text-align: center;
    transition: all 0.3s ease;
    border: none;
    color: white !important;
}

/* Stile specifico per il pulsante "Dettagli" */
.button-view-service {
    background-color: #6c757d;
}
.button-view-service:hover {
    background-color: #5a6268;
}

/* Stile specifico per il pulsante "Richiedi ora" */
.button-request-quote {
    background-color: #007bff;
}
.button-request-quote:hover {
    background-color: #0056b3;
}

/* Footer del singolo servizio */
.servizio-singolo-article .entry-footer {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid #eee;
}

/* ==========================================================================
   Stili Form (Preventivo e Contatti)
   ========================================================================== */
.form-logo-container {
    text-align: center;
    margin-bottom: 1.5rem;
}

.form-logo-container .custom-logo {
    max-width: 100px; /* Logo piccolo come richiesto */
    height: auto;
    margin: 0 auto; /* Centra se il contenitore è più largo */
}

.preventivo-container {
    max-width: 800px; /* Larghezza massima per una buona leggibilità */
    margin: 2.5rem auto; /* Centra il box e dà spazio sopra/sotto */
    padding: 2.5rem;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.07);
}

.preventivo-container .header-divider {
    border: 0;
    height: 1px;
    background-color: #444; /* Grigio scuro */
    width: 90%; /* Più corta dei lati */
    margin: 0 auto 2rem auto; /* Centrata e con spazio sotto */
}

.preventivo-container .form-intro-text {
    text-align: center;
}

.preventivo-container .wpcf7-form p,
.contact-form .wpcf7-form p {
    margin-bottom: 1.5rem;
}

.preventivo-container .wpcf7-form label,
.contact-form .wpcf7-form label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #333;
}

.preventivo-container .wpcf7-form input[type="text"],
.preventivo-container .wpcf7-form input[type="email"],
.preventivo-container .wpcf7-form input[type="tel"],
.preventivo-container .wpcf7-form textarea,
.preventivo-container .wpcf7-form select,
.contact-form .wpcf7-form input[type="text"],
.contact-form .wpcf7-form input[type="email"],
.contact-form .wpcf7-form input[type="tel"],
.contact-form .wpcf7-form textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 6px;
    background-color: #f8f9fa;
    transition: border-color 0.2s ease;
    box-sizing: border-box; /* Assicura che padding e border non alterino la larghezza */
}

.preventivo-container .wpcf7-form input:focus,
.preventivo-container .wpcf7-form textarea:focus,
.preventivo-container .wpcf7-form select:focus,
.contact-form .wpcf7-form input:focus,
.contact-form .wpcf7-form textarea:focus,
.contact-form .wpcf7-form select:focus {
    outline: none;
    border-color: #007bff; /* Blu primario al focus */
    box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.25);
}

.preventivo-container .wpcf7-form hr {
    border: 0;
    height: 1px;
    background-color: #eee;
    margin: 2rem 0;
}

/* Stile per il pulsante di invio, coerente con il tema */
.preventivo-container .wpcf7-form input[type="submit"],
.contact-form .wpcf7-form input[type="submit"] {
    background-color: #007bff; /* Blu primario */
    color: white !important;
    font-weight: bold;
    border: none;
    border-radius: 5px;
    padding: 12px 25px;
}

.preventivo-container .wpcf7-form input[type="submit"]:hover,
.contact-form .wpcf7-form input[type="submit"]:hover {
    background-color: #0056b3; /* Blu più scuro */
}

/* ==========================================================================
   Stili Specifici Form Contatti (Compressione)
   ========================================================================== */
.contact-form .wpcf7-form p {
    margin-bottom: 1rem; /* Riduci lo spazio tra i campi */
}

.contact-form .wpcf7-form input[type="text"],
.contact-form .wpcf7-form input[type="email"],
.contact-form .wpcf7-form input[type="tel"],
.contact-form .wpcf7-form textarea {
    padding: 10px; /* Riduci il padding interno */
}

.contact-form .wpcf7-form .wpcf7-list-item {
    margin-left: 0; /* Allinea i radio button */
}

.contact-form .wpcf7-form input[type="submit"] {
    width: 100%; /* Pulsante a larghezza piena */
}

.contact-details .response-time-notice {
    margin-top: 1.5rem;
    padding: 1rem;
    background-color: #f8f9fa;
    border-left: 4px solid #007bff;
    font-size: 0.9em;
}

/* ==========================================================================
   Stili Sezione Prezzi su Misura
   ========================================================================== */
.custom-pricing-section {
    background-color: #eef3f7; /* Sfondo blu molto chiaro, come pacchetti */
    text-align: center;
}

.custom-pricing-content {
    max-width: 800px;
    margin: 0 auto;
}

.custom-pricing-content h3 {
    color: #005f99;
    font-size: 1.6rem;
}

.custom-pricing-content p {
    font-size: 1.1rem;
}

/* Versione per pagina preventivo */
.custom-pricing-section-inline {
    margin: 2rem auto;
    padding: 1.5rem;
    background-color: #f8f9fa;
    border-left: 4px solid #007bff;
    border-radius: 0 8px 8px 0;
}
.custom-pricing-section-inline h3 {
    margin-top: 0;
    color: #333;
}

/* ==========================================================================
   Stili Sezione Vantaggi Sito Web
   ========================================================================== */
.benefits-section {
    background: linear-gradient(45deg, #005f99, #007acc);
    color: #fff;
    text-align: center;
    border-radius: 12px;
}

.benefits-content h3 {
    font-size: 1.6rem;
}
.benefits-content p {
    font-size: 1.1rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 1.5rem;
}

/* ==========================================================================
   Stili Responsive (per schermi fino a 768px)
   ========================================================================== */
@media screen and (max-width: 768px) {
    /* --- Layout e Menu --- */
    .menu-toggle {
        display: block; /* Mostra l'hamburger */
    }
    .main-navigation {
        display: none; /* Nasconde il menu desktop */
    }
    .services-grid,
    .contact-section {
        grid-template-columns: 1fr; /* Griglie a una colonna */
    }
    .packages-grid {
        grid-template-columns: 1fr;
    }
    .insight-item {
        flex-direction: column; /* Elementi degli approfondimenti in colonna */
    }

    /* Per la pagina servizi, forziamo il layout in colonna anche su mobile per coerenza */
    .services-list-container .insight-item {
        flex-direction: column;
    }

    .services-list-container .insight-item__image {
        min-height: 200px; /* Altezza minima per l'immagine su mobile */
    }

    .services-list-container .insight-item__content {
        padding: 1.5rem;
    }

    /* --- Riduzione Dimensioni e Spazi --- */
    .site-branding .custom-logo {
        max-width: 150px; /* Riduci il logo nell'header */
    }

    /* Riduci i titoli */
    h1, .page-title, .entry-title {
        font-size: 1.8rem;
        line-height: 1.3;
    }
    .servizio-singolo-article .entry-title {
        font-size: 2rem;
    }
    h2 {
        font-size: 1.5rem;
    }
    h3 {
        font-size: 1.2rem;
    }

    /* Riduci il padding dei contenitori principali */
    .home-section,
    .preventivo-container,
    .servizio-singolo-article,
    .page:not(.home) article.page,
    .page-template-template-chisiamo .entry-content,
    .page-template-template-contatti .entry-content {
        padding: 1.5rem;
        margin-top: 1.5rem;
        margin-bottom: 1.5rem;
    }

    .insight-item__content {
        padding: 1.5rem;
    }

    .contact-section {
        gap: 2rem;
    }
}
@media screen and (min-width: 769px) {
    .insight-grid {
        grid-template-columns: repeat(2, 1fr); /* 2 colonne su schermi più grandi */
    }

    /* Layout Orizzontale per la lista servizi su Desktop */
    .services-list-container .insight-item {
        flex-direction: row; /* Immagine a sx, contenuto a dx */
        align-items: stretch; /* Allunga i figli per avere la stessa altezza */
    }

    .services-list-container .insight-item__image {
        flex: 0 0 300px; /* Larghezza fissa per l'immagine */
        min-height: auto; /* Rimuove l'altezza minima non necessaria */
    }

    .services-list-container .insight-item__content {
        padding: 2rem 2.5rem;
    }
}

@media screen and (max-width: 768px) {
    .site-footer {
        /* Aumenta il padding inferiore per fare spazio ai contatti */
        padding-bottom: 5rem; 
    }
    .footer-contact-info {
        position: static; /* Rimuove il posizionamento assoluto */
        margin-top: 1rem;
        text-align: center;
    }
}
/* ==========================================================================
   Stili per Landing Page (template-landing.php)
   ========================================================================== */
.landing-hero {
    position: relative;
    padding: 6rem 1.5rem;
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background-color: #2d3436;
    background-size: cover;
    background-position: center;
    color: #fff;
}

.landing-hero__overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    z-index: 1;
}

.landing-hero__content {
    position: relative;
    z-index: 2;
    max-width: 800px;
}

.landing-hero__title {
    font-size: 3rem;
    margin-top: 0;
    margin-bottom: 1rem;
    font-weight: 700;
    line-height: 1.2;
}

.landing-hero__excerpt {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.landing-section {
    padding: 4rem 1.5rem;
}

.landing-section__container {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.landing-cta {
    background-color: #f7f8fa;
}

.button-cta-large {
    padding: 15px 35px;
    font-size: 1.1rem;
}

.landing-hero {
    position: relative;
    padding: 6rem 1.5rem;
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background-color: #2d3436; /* Colore di fallback se non c'è immagine */
    background-size: cover;
    background-position: center;
    color: #fff;
}

.landing-hero__overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6); /* Overlay scuro per leggibilità */
    z-index: 1;
}

.landing-hero__content {
    position: relative;
    z-index: 2;
    max-width: 800px;
}

.landing-hero__title {
    font-size: 3rem;
    margin-top: 0;
    margin-bottom: 1rem;
    font-weight: 700;
    line-height: 1.2;
}

.landing-hero__excerpt {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.landing-section {
    padding: 4rem 1.5rem;
}

.landing-section__container {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.landing-cta {
    background-color: #f7f8fa;
}

.button-cta-large {
    padding: 15px 35px;
    font-size: 1.1rem;
}

.faq-container {
    max-width: 900px;
    margin: 2.5rem auto;
    padding: 2.5rem;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.07);
}

.faq-list {
    margin-top: 2rem;
}

.faq-item {
    border-bottom: 1px solid #eee;
    padding-bottom: 1.5rem;
    margin-bottom: 1.5rem;
}

.faq-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.faq-question {
    margin-top: 0;
    margin-bottom: 1rem;
    font-size: 1.3rem;
    color: #005f99;
}

.faq-answer p {
    margin: 0;
    font-size: 1rem;
    line-height: 1.7;
}

/* ==========================================================================
   Stili per Sezione Link a FAQ
   ========================================================================== */
.faq-link-section {
    background: linear-gradient(45deg, #eaf2f8, #eef3f7);
    text-align: center;
}

.faq-link-content h3 {
    font-size: 1.6rem;
    color: #005f99;
}

.faq-link-content p {
    max-width: 600px;
    margin: 0 auto 1.5rem auto;
}

/* Stili aggiuntivi per il contenuto della landing page */
.landing-section .entry-content {
    text-align: left;
}

.landing-section .entry-content h2,
.landing-section .entry-content h3 {
    text-align: left;
}

@media screen and (max-width: 768px) {
    .landing-hero__title { font-size: 2.2rem; }
    .landing-hero__excerpt { font-size: 1.1rem; }
}

/* ==========================================================================
   Stili per Pagina di Ringraziamento (template-grazie.php)
   ========================================================================== */
.thank-you-container {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 60vh;
    text-align: center;
    padding: 2rem;
}

.thank-you-content {
    max-width: 600px;
    margin: 0 auto;
    padding: 3rem;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.07);
}

.thank-you-icon {
    margin-bottom: 1.5rem;
}

.thank-you-title {
    font-size: 2.5rem;
    margin-top: 0;
    margin-bottom: 1rem;
    color: #333;
}

.thank-you-message, .thank-you-notice {
    font-size: 1.1rem;
    color: #555;
}
