/*
Theme Name: GD
Theme URI: https://www.fullcreative.it
Author: Giuseppe De Sanctis
Author URI: https://www.fullcreative.it
Description: Starter Theme with Font Awesome and Bootstrap 5
Version: 1.0
Requires at least: 5.0
Tested up to: 6.6
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Tags: one-column, two-columns, right-sidebar, custom-header, custom-menu, editor-style, featured-images, sticky-post, translation-ready, e-commerce, woocommerce
Text Domain: gd
This theme, like WordPress, is licensed under the GPL.
Use it to make something cool, have fun, and share what you've learned with others.
*/
/* Gotham Font Faces */
@font-face {
    font-family: 'Gotham';
    src: url('assets/Gotham/Gotham-Thin.otf') format('opentype');
    font-weight: 100;
    font-style: normal;
}

@font-face {
    font-family: 'Gotham';
    src: url('assets/Gotham/Gotham-ThinItalic.otf') format('opentype');
    font-weight: 100;
    font-style: italic;
}

@font-face {
    font-family: 'Gotham';
    src: url('assets/Gotham/Gotham-XLight.otf') format('opentype');
    font-weight: 200;
    font-style: normal;
}

@font-face {
    font-family: 'Gotham';
    src: url('assets/Gotham/Gotham-XLightItalic.otf') format('opentype');
    font-weight: 200;
    font-style: italic;
}

@font-face {
    font-family: 'Gotham';
    src: url('assets/Gotham/Gotham-Light.otf') format('opentype');
    font-weight: 300;
    font-style: normal;
}

@font-face {
    font-family: 'Gotham';
    src: url('assets/Gotham/Gotham-LightItalic.otf') format('opentype');
    font-weight: 300;
    font-style: italic;
}

@font-face {
    font-family: 'Gotham';
    src: url('assets/Gotham/Gotham-Book.otf') format('opentype');
    font-weight: 400;
    font-style: normal;
}

@font-face {
    font-family: 'Gotham';
    src: url('assets/Gotham/Gotham-BookItalic.otf') format('opentype');
    font-weight: 400;
    font-style: italic;
}

@font-face {
    font-family: 'Gotham';
    src: url('assets/Gotham/Gotham-Medium.otf') format('opentype');
    font-weight: 500;
    font-style: normal;
}

@font-face {
    font-family: 'Gotham';
    src: url('assets/Gotham/Gotham-MediumItalic.otf') format('opentype');
    font-weight: 500;
    font-style: italic;
}

@font-face {
    font-family: 'Gotham';
    src: url('assets/Gotham/Gotham-Bold.otf') format('opentype');
    font-weight: 700;
    font-style: normal;
}

@font-face {
    font-family: 'Gotham';
    src: url('assets/Gotham/Gotham-BoldItalic.otf') format('opentype');
    font-weight: 700;
    font-style: italic;
}

@font-face {
    font-family: 'Gotham';
    src: url('assets/Gotham/Gotham-Black.otf') format('opentype');
    font-weight: 900;
    font-style: normal;
}

@font-face {
    font-family: 'Gotham';
    src: url('assets/Gotham/Gotham-BlackItalic.otf') format('opentype');
    font-weight: 900;
    font-style: italic;
}

@font-face {
    font-family: 'Gotham';
    src: url('assets/Gotham/Gotham-Ultra.otf') format('opentype');
    font-weight: 950;
    font-style: normal;
}

@font-face {
    font-family: 'Gotham';
    src: url('assets/Gotham/Gotham-UltraItalic.otf') format('opentype');
    font-weight: 950;
    font-style: italic;
}

*,
*::after,
*::before {margin: 0; padding: 0; box-sizing: border-box;
}

a{text-decoration: none;}

/* Ottimizzazioni per performance */
img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* ===== HEADER PAGES INTERNE ===== */
.site-header {
    background: #ffffff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.site-header .navbar {
    padding: 1rem 0;
}

.site-header .header-logo {
    max-width: 140px;
    height: auto;
    max-height: 60px;
}

.site-header .navbar-nav .nav-link {
    color: #333;
    font-weight: 500;
    padding: 0.5rem 1rem;
    transition: color 0.3s ease;
}

.site-header .navbar-nav .nav-link:hover {
    color: #EC6635;
}

.site-header .navbar-nav .nav-link.active {
    color: #EC6635;
}

@media (max-width: 991.98px) {
    .site-header .header-logo {
        max-width: 140px;
        max-height: 50px;
    }
}

@media (max-width: 575.98px) {
    .site-header .header-logo {
        max-width: 120px;
        max-height: 40px;
    }
}


/* Prevenzione scroll orizzontale */
body {
    overflow-x: hidden;
    font-family: 'Gotham', sans-serif;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Hero Section */
.hero-section {
    overflow: hidden;
}

.hero-logo {
    filter: drop-shadow(0 2px 12px rgba(0,0,0,0.18));
}

/* Button Styles */
.btn-primary, .btn-primary:focus, .btn-primary:active {
    background-color: #EC6635 !important;
    border-color: #EC6635 !important;
}

.btn-primary:hover {
    background-color: #c65121 !important;
    border-color: #c65121 !important;
}

/* Hero Section Styles */
.hero-section h1 {
    font-size: 58px;
    max-width: 88%;
    text-align: center;
    margin: 0 auto;
    font-weight: 900;
    text-transform: uppercase;    
}

.hero-section .hero-subtitle {
    font-size: 30px;
}

.hero-section .hero-cta {
    background-color: #EC6635;
    border-color: #EC6635;
    font-size: 1.2rem;
}

/* Content Section Styles */
.content-section {
    position: relative;
    padding: 18px 0 80px 0;
    background: #f8f9fa;
}

@media (max-width: 767.98px) {
    .content-section {
        padding: 18px 0 0px 0;
    }

    .content-section .section-header .header-content {
        padding: 100px 0 !important;
    }

    .services-section {
        padding: 0 0 0px 0 !important;

    }
}

.content-section .section-header {
    height: 606px;
    position: relative;
}

.content-section .section-header .header-content {
    padding: 140px 0;
}

.content-section .content-section-title {
    font-size: 58px;
    max-width: 88%;
    text-align: center;
    margin: 0 auto;
    font-weight: 900;
    text-transform: uppercase;
}

.content-section .content-section-cta {
    font-size: 1.1rem !important;
}

.content-section .grid-overlay {
    margin-top: -120px;
    position: relative;
    z-index: 10;
}

.content-section .card {
    border-radius: 0;
    background: #fff;
    min-height: 300px;
}

.content-section .card-title {
    font-size: 1.375rem;
    text-transform: uppercase;
}

.content-section .card-description {
    line-height: 1.7;
    font-size: 1rem;
    color: #505254;
    font-family: 'Gotham', sans-serif;
    font-weight: 400;
    /* RIMUOVI word-wrap, overflow-wrap e hyphens */
    white-space: normal;
    word-break: normal;
}

.content-section .card-image {
    max-height: 200px;
    object-fit: contain;
    width: 100%;
}

.content-section .card-image-full {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Services Section Styles */
.services-section {
    position: relative;
    padding: 0 0 80px 0;
    background: #f8f9fa
}

.services-section .section-header {
    height: 606px;
    position: relative;
}

.services-section .section-header .header-content {
    padding: 140px 0;
}

.services-section .services-section-title h2{
    font-size: 58px;
    max-width: 88%;
    text-align: center;
    margin: 0 auto;
    font-weight: 900;
    text-transform: uppercase;

}

.services-section .services-section-cta {
    font-size: 1.1rem !important;
}

.services-section .grid-overlay {
    margin-top: -120px;
    position: relative;
    z-index: 10;
}

.services-section .card {
    border-radius: 0;
    background: #fff;
    min-height: 300px;
}

.services-section .card-title {
    font-size: 1.375rem;
    text-transform: uppercase;
}

.services-section .card-description {
    line-height: 1.7;
    font-size: 1rem;
    color: #505254;
    font-family: 'Gotham', sans-serif;
    font-weight: 400;
}

.services-section .card-image {
    max-height: 200px;
    object-fit: contain;
    width: 100%;
}

.services-section .card-image-full {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Contact Section Styles */
.contact-section {
    position: relative;
    padding: 0;
    background: #f8f9fa;
}

.contact-section .section-header {
    min-height: 60vh;
    position: relative;
}

.contact-section .section-header .header-content {
    padding: 100px 20px 180px 20px;
}

.contact-section .contact-section-title {
    font-size: 58px;
    max-width: 88%;
    text-align: center;
    margin: 0 auto;
    font-weight: 900;
}

.contact-section .contact-section-title p{
    margin-bottom: 0rem;
}

.contact-section .contact-section-subtitle {
    font-size: 40px;
        width: 100%;
        text-align: center;
    margin: 0 auto;
    font-weight: bold;
}

.contact-section .contact-section-cta {
    font-size: 1rem !important;
    border-radius: 0 !important;
}

/* Forza aggiornamento cache */
.force-update {
    display: none;
}

/* ===== CONTACT FORM STYLES ===== */

/* Form Title - Removed as per reference image */

/* Form Container */
.contact-form-wrapper {
    background: #ffffff;
    padding: 2rem;
        border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* Form Inputs */
.contact-form .form-control {
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 12px 15px;
    font-size: 1rem;
    background-color: #f8f9fa;
    transition: border-color 0.3s ease;
}

.contact-form .form-control:focus {
    border-color: #EC6635;
    box-shadow: 0 0 0 0.2rem rgba(236, 99, 53, 0.25);
    background-color: #ffffff;
}

.contact-form .form-control::placeholder {
    color: #505254;
    font-style: italic;
}

/* Message Textarea */
.message-textarea {
    height: 200px;
    resize: vertical;
}

/* Privacy Toggle Switch - Removed as per reference image */

/* Privacy Text */
.privacy-text {
    font-size: 0.9rem;
    color: #505254;
    line-height: 1.4;
}

/* Submit Button */
.submit-btn {
    background-color: #EC6635;
    border-color: #EC6635;
    color: #ffffff;
    padding: 12px 30px;
    font-weight: 600;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.submit-btn:hover {
    background-color: #d55a2e;
    border-color: #d55a2e;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(236, 99, 53, 0.3);
}

/* Form Responsive */
@media (max-width: 767.98px) {
    .contact-form-wrapper {
        padding: 1.5rem;
    }
    
    .privacy-section {
    margin-top: 1rem;
    }
}

/* ===== CUSTOM CONTAINER FOR GRIDS ===== */

/* Container personalizzato per le griglie - 1640px */
.custom-grid-container {
    max-width: 1640px !important;
    margin: 0 auto;
    padding-left: 15px;
    padding-right: 15px;
}

/* Override per le sezioni con griglie */
.content-section .container,
.services-section .container,
.contact-section .container,
footer .container {
    max-width: 1640px !important;
    margin: 0 auto;
    padding-left: 15px;
    padding-right: 15px;
}

/* Responsive per il container personalizzato */
@media (max-width: 1640px) {
    .custom-grid-container {
        max-width: 100% !important;
        padding-left: 20px;
        padding-right: 20px;
    }
}

@media (max-width: 1200px) {
    .custom-grid-container {
        max-width: 100% !important;
        padding-left: 15px;
        padding-right: 15px;
    }
}

/* ===== RESPONSIVE STYLES ===== */

/* Mobile First - Small devices (landscape phones, 576px and up) */
@media (max-width: 575.98px) {
    /* Hero Section Mobile */
    .hero-section {
        height: 70vh !important;
        min-height: 400px;
    }
    
    .hero-logo {
        max-width: 150px !important;
    }
    
    .hero-title,
    .hero-section h1 {
        font-size: 26px !important;
        line-height: 1.2;
        max-width: 100% !important;
        font-weight: 900 !important;
    }
    
    .hero-subtitle {
        font-size: 0.9rem !important;
    }
    
    /* Hero CTA Button Mobile */
    .hero-cta {
        font-size: 0.8rem !important;
        padding: 0.5rem 1rem !important;
    }
    
    /* Section Headers Mobile */
    .section-header {
        height: 400px !important;
        padding: 2rem 0;
    }
    
    .section-header h2,
    .section-header .display-4,
    .content-section-title,
    .services-section-title,
    .contact-section-title {
        font-size: 26px !important;
        line-height: 1.3;
        font-weight: 900 !important;
    }
    
    .section-header .lead,
    .content-section-subtitle,
    .services-section-subtitle,
    .contact-section-subtitle {
        font-size: 0.9rem !important;
    }
    
    /* Section CTA Buttons Mobile */
    .content-section-cta,
    .services-section-cta,
    .contact-section-cta {
        font-size: 0.8rem !important;
        padding: 0.5rem 1rem !important;
    }
    
    /* Grid Cards Mobile */
    .grid-overlay {
        margin-top: -60px !important;
    }
    
    .card {
        margin-bottom: 1rem;
        min-height: 250px !important;
    }
    
    .card-body {
        padding: 1.5rem !important;
    }
    
    .card-title {
        font-size: 0.9rem !important;
    }
    
    .card-description {
        font-size: 0.8rem !important;
    }
    
    /* Card Titles Mobile - Override uppercase */
    .content-section .card-title,
    .services-section .card-title {
        font-size: 0.9rem !important;
        text-transform: uppercase;
    }
    
    /* Buttons Mobile */
    .btn {
        font-size: 0.9rem !important;
        padding: 0.5rem 1rem !important;
    }
    
    /* Contact Section Mobile */
    .contact-section .card-body {
        padding: 2rem !important;
    }
    
    .info-title {
        font-size: 1.2rem !important;
    }
    
    .info-date,
    .info-location {
        font-size: 1.1rem !important;
    }
    
    .info-company,
    .info-stand {
        font-size: 1rem !important;
    }
}

/* Medium devices (tablets, 768px and up) */
@media (min-width: 576px) and (max-width: 767.98px) {
    .hero-section {
        height: 80vh !important;
    }
    
    .hero-section h1 {
        font-size: 2.5rem !important;
        max-width: 90% !important;
    }
    
    .section-header {
        height: 500px !important;
    }
    
    .grid-overlay {
        margin-top: -80px !important;
    }
    
    .card {
        min-height: 280px !important;
    }
}

/* Large devices (desktops, 992px and up) */
@media (min-width: 768px) and (max-width: 991.98px) {
    .hero-section h1 {
        font-size: 3.5rem !important;
        max-width: 85% !important;
    }
    
    .section-header {
        height: 550px !important;
    }
    
    .grid-overlay {
        margin-top: -100px !important;
    }
}

.contact-section .grid-overlay {
    margin-top: -140px;
    position: relative;
    z-index: 10;
}

.contact-section .info-card {
    border-radius: 0;
    background: #EC6635;
}

.contact-section .info-title {
    font-size: 3rem;
    letter-spacing: -1px;
}

.contact-section .info-date {
        font-size: 2rem;
    }
    
.contact-section .info-location {
    font-size: 2rem;
}

.contact-section .info-company {
    font-size: 1.5rem;
}

.contact-section .info-stand {
        font-size: 1.5rem;
    }
    
.contact-section .description-card {
    border-radius: 0;
    background: #fff;
}

.contact-section .description-text {
    color: #333;
    line-height: 1.8;
    font-size: 1.125rem;
}

.contact-section .form-card {
    border-radius: 0;
    background: #6a6a6a;
    margin-top: 0;
}

.contact-section .form-content {
    padding: 33px 46px;
}

/* Toggle Switch Styles */
.switch input:checked + span {
    background-color: #EC6635 !important;
}

.switch input:checked + span + span {
    transform: translateX(26px);
}

.switch span:first-of-type {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .4s;
    border-radius: 24px;
}

.switch span:last-of-type {
    position: absolute;
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}


/* Aggiungi queste regole al tuo CSS esistente */

/* Form Title */
.contact-section .form-title {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 1px;
    margin-bottom: 2.5rem;
}

/* Override per il wrapper del form nella sezione contact */
.contact-section .contact-form-wrapper {
    background: transparent !important;
    padding: 0 !important;
    box-shadow: none !important;
    border-radius: 0 !important;
}

/* Form Inputs nella sezione contact - sfondo bianco */
.contact-section .form-control {
    background-color: #ffffff !important;
    border: none;
    color: #333;
    border-radius: 0;
}

.contact-section .form-control:focus {
    background-color: #ffffff !important;
    border-color: #EC6635;
    box-shadow: 0 0 0 0.2rem rgba(236, 99, 53, 0.25);
}

.contact-section .form-control::placeholder {
    color: #999;
    font-style: normal;
}

/* Checkbox Privacy */
.contact-section .form-check-input {
    width: 20px;
    height: 20px;
    cursor: pointer;
    border: 2px solid #ffffff;
    background-color: transparent;
}

.contact-section .form-check-input:checked {
    background-color: #EC6635;
    border-color: #EC6635;
}

.contact-section .form-check-input:focus {
    box-shadow: 0 0 0 0.2rem rgba(236, 99, 53, 0.25);
}

/* Privacy Text nella sezione contact */
.contact-section .privacy-text {
    color: #ffffff !important;
    font-size: 0.85rem;
}

/* Responsive per il titolo del form */
@media (max-width: 767.98px) {
    .contact-section .form-title {
    font-size: 1.2rem;
        margin-bottom: 1.5rem;
    }
    
    .contact-section .form-content {
        padding: 30px 20px !important;
    }
    
    .contact-section .message-textarea {
        min-height: 200px !important;
        margin-top: 1rem;
    }
    
    /* Form Title Mobile */
    .contact-section .form-title {
        font-size: 1.2rem !important;
    margin-bottom: 1.5rem;
}

    /* Form Inputs Mobile */
    .contact-form .form-control {
        font-size: 0.9rem !important;
        padding: 10px 12px !important;
    }
    
    /* Submit Button Mobile */
    .submit-btn {
        font-size: 0.8rem !important;
        padding: 0.5rem 1.5rem !important;
    }
}



/* ===== PRIVACY TOGGLE SWITCH - VERSIONE FUNZIONANTE ===== */

.contact-section .privacy-section {
    margin-top: 1.5rem;
    margin-bottom: 0;
}

/* Wrapper principale */
.contact-section .privacy-toggle-wrapper {
    display: flex;
    align-items: center;
    cursor: pointer;
    user-select: none;
    position: relative;
}

/* Container del toggle */
.contact-section .toggle-container {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 30px;
    margin-right: 15px;
    flex-shrink: 0;
}

/* Nascondi elementi CF7 mantenendo funzionalità */
.contact-section .toggle-container .wpcf7-form-control-wrap {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
}

.contact-section .toggle-container .wpcf7-acceptance {
    position: absolute;
    width: 100%;
    height: 100%;
    margin: 0;
}

.contact-section .toggle-container .wpcf7-list-item {
    margin: 0;
    position: absolute;
    width: 100%;
    height: 100%;
}

/* Checkbox invisibile ma cliccabile */
.contact-section .toggle-container input[type="checkbox"] {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
    z-index: 3;
    margin: 0;
}

/* Toggle background (slider) */
.contact-section .toggle-container::before {
    content: "";
    position: absolute;
    width: 60px;
    height: 30px;
    background-color: #ccc;
    border-radius: 30px;
    transition: 0.4s;
    top: 0;
    left: 0;
}

/* Toggle pallino */
.contact-section .toggle-container::after {
    content: "";
    position: absolute;
    height: 22px;
    width: 22px;
    left: 4px;
    top: 4px;
    background-color: white;
    border-radius: 50%;
    transition: 0.4s;
    z-index: 2;
}

/* Stato CHECKED - Background arancione */
.contact-section .toggle-container:has(input:checked)::before {
    background-color: #EC6635;
}

/* Stato CHECKED - Pallino spostato */
.contact-section .toggle-container:has(input:checked)::after {
    transform: translateX(30px);
}

/* Privacy Text */
.contact-section .privacy-text {
    color: #ffffff !important;
    font-size: 0.9rem !important;
    line-height: 1.4 !important;
    margin: 0 !important;
}

/* ===== RESPONSIVE TOGGLE MOBILE ===== */

@media (max-width: 767.98px) {
    /* Toggle più piccolo */
    .contact-section .toggle-container {
        width: 50px !important;
        height: 26px !important;
        margin-right: 12px !important;
    }
    
    .contact-section .toggle-container::before {
        width: 50px !important;
        height: 26px !important;
    }
    
    .contact-section .toggle-container::after {
        height: 20px !important;
        width: 20px !important;
        left: 3px !important;
        top: 3px !important;
    }
    
    .contact-section .toggle-container:has(input:checked)::after {
        transform: translateX(24px) !important;
    }
    
    .contact-section .privacy-text {
        font-size: 0.85rem !important;
    }
}

/* Message Textarea allineata */
.contact-section .message-textarea {
    height: auto !important;
    min-height: auto !important;
}

/* Privacy Text */
.contact-section .privacy-text {
    color: #ffffff !important;
    font-size: 0.9rem;
    line-height: 1.4;
}

/* Responsive */
@media (max-width: 767.98px) {
    .toggle-switch {
        width: 50px;
        height: 26px;
    }
    
    .toggle-slider:before {
        height: 18px;
        width: 18px;
    }
    
    .toggle-switch input:checked + .toggle-slider:before {
        transform: translateX(24px);
    }
    
    .contact-section .message-textarea {
        margin-top: 0 !important;
        min-height: 200px;
    }
}










/* Contact Form 7 - Reset stili */
.contact-section .wpcf7-form p {
    margin: 0;
}

/* Nascondi checkbox di default e mostra solo il toggle */
.contact-section .wpcf7-acceptance input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

/* Toggle attivo quando checkbox è checked */
.contact-section .wpcf7-acceptance input[type="checkbox"]:checked ~ .toggle-slider {
    background-color: #EC6635;
}

.contact-section .wpcf7-acceptance input[type="checkbox"]:checked ~ .toggle-slider:before {
    transform: translateX(30px);
}

/* Textarea altezza fissa DESKTOP */
.contact-section .message-textarea {
    height: 245px !important;
    resize: none !important;
}

/* Submit button */
.contact-section .wpcf7-submit {
    background-color: #EC6635 !important;
    border-color: #EC6635 !important;
    color: #ffffff !important;
    padding: 12px 30px !important;
    font-weight: 600 !important;
    border-radius: 5px !important;
    transition: all 0.3s ease !important;
    border: none !important;
    text-transform: uppercase;
}

.contact-section .wpcf7-submit:hover {
    background-color: #d55a2e !important;
    border-color: #d55a2e !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(236, 99, 53, 0.3);
}

/* Messaggi di validazione */
.contact-section .wpcf7-not-valid-tip {
    color: #ff6b6b;
    font-size: 0.85rem;
    margin-top: 5px;
}

.contact-section .wpcf7-response-output {
    margin: 20px 0;
    padding: 15px;
    border-radius: 5px;
}

/* ===== RESPONSIVE MOBILE ===== */
@media (max-width: 767.98px) {
    /* Su mobile: stack verticale (una colonna) */
    .contact-section .row > [class*="col-"] {
        width: 100%;
        max-width: 100%;
    }
    
    /* Input */
    .contact-section .form-control {
        padding: 10px 12px !important;
        font-size: 0.95rem !important;
    }
    
    /* Textarea su mobile */
    .contact-section .message-textarea {
        height: 180px !important;
        min-height: 180px !important;
    }
    
    /* Toggle più piccolo */
    .toggle-switch {
        width: 50px !important;
        height: 26px !important;
    }
    
    .toggle-slider:before {
        height: 20px !important;
        width: 20px !important;
        left: 3px !important;
        bottom: 3px !important;
    }
    
    .contact-section .wpcf7-acceptance input[type="checkbox"]:checked ~ .toggle-slider:before {
        transform: translateX(24px) !important;
    }
    
    /* Privacy text */
    .contact-section .privacy-text {
        font-size: 0.85rem !important;
        line-height: 1.4 !important;
    }
    
    /* Privacy section spacing */
    .privacy-section {
        margin-top: 1rem !important;
    }
    
    /* Bottone */
    .contact-section .wpcf7-submit {
        padding: 12px 25px !important;
        font-size: 0.9rem !important;
    width: 100%;
    }
    
    /* Titolo */
    .contact-section .form-title {
        font-size: 1.1rem !important;
        margin-bottom: 2rem !important;
        line-height: 1.3;
    }
    
    /* Padding del form content */
    .contact-section .form-content {
        padding: 25px 20px !important;
    }
}

/* Tablet */
@media (min-width: 768px) and (max-width: 991.98px) {
    .contact-section .message-textarea {
        height: 228px !important;
    }
}
.privacy-section {display: flex;}
.privacy-section p br{display: none;}

/* ===== MOBILE CONTENT SLIDER ===== */
.mobile-content-slider {
    position: relative;
    background: #ffffff;
    z-index: 10; /* Assicura che sia sopra la testata */
    padding: 2rem 0 0 0 !important;
}

/* Container Slider */
.mobile-slider-container {
    position: relative;
    padding: 0 1rem;
    margin-top: -70px;
    margin-bottom: 2rem; /* Spazio inferiore per i dots */
}

.mobile-content-swiper {
    width: 100%;
    height: auto;
    padding-bottom: 2rem;
}

/* Card Slide */
.mobile-slide-card {
    background: #FCF9F9;
    margin: 0 0.5rem;
    overflow: hidden;
    position: relative;
    min-height: 550px;
}

.slide-content {
    padding: 0; /* Rimuovi padding per immagine a tutta larghezza */
    height: 100%;
    display: flex;
    flex-direction: column;
}

.slide-title {
    color: #EC6635;
    font-size: 1.3rem;
    font-weight: 900;
    margin-bottom: 1rem;
    line-height: 1.3;
    padding: 2rem 2rem 0 2rem; /* Padding solo per il titolo */
    position: relative;
    z-index: 2;
    background: rgba(252, 249, 249, 0.95); /* Sfondo semi-trasparente */
}

.slide-description {
    color: #505254;
    font-size: 0.90rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    flex-grow: 1;
    padding: 0 2rem;
    position: relative;
    z-index: 2;
    background: rgba(252, 249, 249, 0.95);
    /* RIMUOVI word-wrap e overflow-wrap */
    white-space: normal;
    word-break: normal;
}

.slide-image-container {
    margin-top: auto;
    padding: 0; /* Rimuovi padding per immagine a tutta larghezza */
    margin: 0; /* Rimuovi tutti i margini */
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1;
}

.slide-image {
    width: 100%; /* Larghezza completa della card */
    height: 300px; /* Aumentata l'altezza dell'immagine */
    object-fit: cover;
    border-radius: 0; /* Rimuovi border-radius per immagine a tutta larghezza */
    box-shadow: none; /* Rimuovi ombra per immagine a tutta larghezza */
    display: block;
}

/* Pagination Dots */
.mobile-content-swiper .swiper-pagination {
    position: relative;
    margin-top: 2rem;
    bottom: 0;
    padding: 1rem 0; /* Spazio extra per i dots */
    z-index: 10; /* Assicura che siano sopra altri elementi */
}

.mobile-content-swiper .swiper-pagination-bullet {
    width: 12px;
    height: 12px;
    background: #ccc;
    opacity: 0.5;
    transition: all 0.3s ease;
    margin: 0 4px;
}

.mobile-content-swiper .swiper-pagination-bullet-active {
    background: #EC6635;
    opacity: 1;
    transform: scale(1.2);
}

/* Responsive */
@media (max-width: 768px) {
    .slide-title {
        font-size: 1.2rem;
        font-weight: 900;
        padding: 1.5rem 1.5rem 0 1.5rem; /* Padding ridotto per mobile */
        background: rgba(252, 249, 249, 0.95); /* Sfondo semi-trasparente mobile */
    }
    
    .slide-description {
        padding: 0 1.5rem;
        background: rgba(252, 249, 249, 0.95);
        /* RIMUOVI word-wrap e overflow-wrap */
        white-space: normal;
        word-break: normal;
    }
    
    .slide-image {
        height: 100%; /* Altezza ottimizzata per mobile */
    }
}

/* ===== MOBILE SERVICES SLIDER ===== */
.mobile-services-slider {
    position: relative;
    background: #ffffff;
    padding: 2rem 0 0 0 !important;
}

/* Nascondi griglia desktop su mobile */
@media (max-width: 991px) {
    .services-section .custom-grid-container {
        display: none !important;
    }
}

.mobile-services-slider-container {
    position: relative;
    padding: 0 1rem;
    margin-top: -70px;
    margin-bottom: 2rem; /* Spazio inferiore per i dots */
}

.mobile-services-swiper {
    width: 100%;
    height: auto;
    padding-bottom: 2rem;
}

/* Card Slide Services */
.mobile-services-slide-card {
    background: #FCF9F9;
    margin: 0 0.5rem;
    overflow: hidden;
    position: relative;
    min-height: 550px;
}

.services-slide-content {
    padding: 0;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.services-slide-title {
    color: #EC6635;
    font-size: 1.3rem;
    font-weight: 900;
    margin-bottom: 1rem;
    line-height: 1.3;
    padding: 2rem 2rem 0 2rem;
    position: relative;
    z-index: 2;
    background: rgba(252, 249, 249, 0.95);
}

.services-slide-description {
    color: #505254;
    font-size: 0.90rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    flex-grow: 1;
    padding: 0 2rem;
    position: relative;
    z-index: 2;
    background: rgba(252, 249, 249, 0.95);
    /* RIMUOVI word-wrap e overflow-wrap */
    white-space: normal;
    word-break: normal;
}

.services-slide-image-container {
    margin-top: auto;
    padding: 0;
    margin: 0;
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1;
}

.services-slide-image {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: 0;
    box-shadow: none;
    display: block;
}

/* Pagination Dots Services */
.mobile-services-swiper .swiper-pagination {
    position: relative;
    margin-top: 2rem;
    bottom: 0;
    padding: 1rem 0; /* Spazio extra per i dots */
    z-index: 10; /* Assicura che siano sopra altri elementi */
}

.mobile-services-swiper .swiper-pagination-bullet {
    width: 12px;
    height: 12px;
    background: #ccc;
    opacity: 0.5;
    transition: all 0.3s ease;
    margin: 0 4px;
}

.mobile-services-swiper .swiper-pagination-bullet-active {
    background: #EC6635;
    opacity: 1;
    transform: scale(1.2);
}

/* Responsive Services */
@media (max-width: 768px) {
    .services-slide-title {
        font-size: 1.2rem;
        font-weight: 900;
        padding: 1.5rem 1.5rem 0 1.5rem;
        background: rgba(252, 249, 249, 0.95);
    }
    
    .services-slide-description {
        padding: 0 1.5rem;
        background: rgba(252, 249, 249, 0.95);
        /* RIMUOVI word-wrap e overflow-wrap */
        white-space: normal;
        word-break: normal;
    }
    
    .services-slide-image {
        height: 100%;
    }
}

/* ===== FOOTER MOBILE LAYOUT ===== */
.footer-mobile-layout {
    padding: 2rem 0;
}

.footer-mobile-layout .row {
    align-items: center;
    min-height: 60px;
}

.footer-social-mobile {
    gap: 1rem !important;
}

.footer-social-mobile a {
    transition: all 0.3s ease;
}

.footer-social-mobile a:hover {
    transform: scale(1.1);
}

.footer-social-mobile a:hover img {
    filter: grayscale(0%) opacity(1) !important;
    transform: scale(1.1);
}

/* Desktop Social Icons */
.footer-desktop-layout a:hover img {
    filter: grayscale(0%) opacity(1) !important;
    transform: scale(1.1);
}

/* Dati Aziendali Mobile */
.footer-mobile-data {
    margin-top: 2rem;
}

.footer-mobile-section {
    padding-bottom: 1rem;
}

.footer-mobile-section:last-of-type {
    border-bottom: none;
}

.footer-mobile-legal {
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid #e9ecef;
}

.footer-mobile-legal ul {
    margin-bottom: 0;
}

/* Legal Links Menu Styling */
.footer-mobile-legal ul li,
.footer-desktop-layout ul li {
    margin-bottom: 0.8rem;
}

.footer-mobile-legal ul li a,
.footer-desktop-layout ul li a {
    color: #4a4a4a !important;
    font-size: 0.85rem;
    font-weight: 500;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-mobile-legal ul li a:hover,
.footer-desktop-layout ul li a:hover {
    color: #EC6635 !important;
}

/* Smooth scroll per ancoraggio form */
html {
    scroll-behavior: smooth;
    height: 100%;
}

/* Sticky Footer - Footer sempre in fondo */
main.main-content,
#primary,
.site-content {
    flex: 1;
}

footer {
    margin-top: auto;
}

/* Stile per il form di contatto ancorato */
#contact-form-wrapper {
    scroll-margin-top: 2rem;
}

/* Responsive Footer Mobile */
@media (max-width: 576px) {
    .footer-mobile-layout {
        padding: 1.5rem 0;
    }
    
    .footer-social-mobile {
        gap: 0.5rem !important;
    }
    
    .footer-mobile-data {
        margin-top: 2.5rem;
    }
    
    .footer-mobile-section {
        margin-bottom: 1.5rem;
        padding-bottom: 0.8rem;
    }
}






