/* =====================================================
   STYLE.CSS - DEL TREDICI STUDIO PROFESSIONALE
   ===================================================== */

:root {
    --primary-color: #0073aa;
    --secondary-color: #005177;
    --accent-color: #00a0d2;
    --text-dark: #23282d;
    --text-light: #606060;
    --bg-light: #f9f9f9;
    --white: #ffffff;
    --border-color: #e1e1e1;
    --international-primary: #2c5aa0;
    --international-secondary: #1e3d6f;
    --international-bg: #f8fcff;
    --international-border: #e8f4f8;
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    font-size: 16px;
}

/* =====================================================
   HEADER E NAVIGATION - MENU A DESTRA
   ===================================================== */

.header {
    background: var(--white);
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    transition: all 0.3s ease;
}

.header.scrolled {
    box-shadow: 0 2px 20px rgba(0,0,0,0.1);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    height: 45px;
}

.logo {
    display: none;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 8px;
}

.hamburger span {
    width: 22px;
    height: 2px;
    background: var(--text-dark);
    margin: 2px 0;
    transition: 0.3s;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(-45deg) translate(-4px, 5px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(45deg) translate(-4px, -5px);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 25px;
}

.nav-menu a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    transition: color 0.3s ease;
    padding: 3px 0;
    font-size: 15px;
}

.nav-menu a:hover,
.nav-menu a.active {
    color: var(--primary-color);
}

/* =====================================================
   HERO SECTION
   ===================================================== */
/* =====================================================
   HERO SECTION CON BACKGROUND CHIESA DI BREBBIA
   ===================================================== */

.hero {
    /* OPZIONE 1: Overlay molto leggero (consigliata) */
    background: linear-gradient(135deg, rgba(0, 115, 170, 0.3) 0%, rgba(0, 81, 119, 0.3) 100%), 
                url('../img/chiesa-brebbia.jpg') center/70% no-repeat;
    
 
    color: var(--white);
    padding: 50px 0 25px;
    text-align: center;
    position: relative;
    overflow: hidden;
    min-height: 45vh;
}


.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="20" cy="20" r="1" fill="white" opacity="0.3"><animate attributeName="cy" values="20;80;20" dur="3s" repeatCount="indefinite"/></circle><circle cx="80" cy="40" r="1.5" fill="white" opacity="0.4"><animate attributeName="cy" values="40;90;40" dur="4s" repeatCount="indefinite"/></circle><circle cx="60" cy="10" r="0.8" fill="white" opacity="0.5"><animate attributeName="cy" values="10;70;10" dur="2.5s" repeatCount="indefinite"/></circle></svg>') repeat;
    animation: snowfall 10s linear infinite;
}

@keyframes snowfall {
    0% { background-position: 0 0; }
    100% { background-position: 100px 100px; }
}

/* Miglioramento del contrasto del testo */
.hero-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 2;
    /* Aggiunge un leggero shadow al testo per migliorare la leggibilità */
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.hero h1 {
    font-size: clamp(2.2rem, 4.5vw, 3.5rem);
    margin-bottom: 15px;
    font-weight: 600;
    line-height: 1.2;
    /* Testo più leggibile sulla foto */
    text-shadow: 0 3px 6px rgba(0,0,0,0.4);
}

.hero p {
    font-size: clamp(1rem, 2.2vw, 1.2rem);
    margin-bottom: 25px;
    opacity: 0.95;
    line-height: 1.6;
    /* Testo più leggibile sulla foto */
    text-shadow: 0 2px 4px rgba(0,0,0,0.4);
}

.cta-button {
    display: inline-block;
    background: var(--white);
    color: var(--primary-color);
    padding: 12px 25px;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 600;
    font-size: 15px;
    transition: all 0.3s ease;
    box-shadow: 0 3px 15px rgba(0,0,0,0.2);
    /* Migliore visibilità del pulsante */
    text-shadow: none;
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 25px rgba(0,0,0,0.3);
    background: #f8f9fa;
}


/* =====================================================
   RESPONSIVE - OTTIMIZZAZIONI MOBILE
   ===================================================== */

@media screen and (max-width: 768px) {
    .hero {
        min-height: 50vh;
        padding: 55px 0 25px;
        /* Su mobile potrebbe servire un overlay più scuro */
		background: linear-gradient(135deg, rgba(0, 115, 170, 0.3) 0%, rgba(0, 81, 119, 0.3) 100%), 
                    url('../img/chiesa-brebbia.jpg') center/100% no-repeat;
    }
}

@media screen and (max-width: 480px) {
    .hero {
        min-height: 45vh;
    }
}
/* =====================================================
   LAYOUT GENERALE
   ===================================================== */

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    padding: 60px 0;
}

.section-title {
    text-align: center;
    font-size: clamp(1.8rem, 3.5vw, 2.2rem);
    margin-bottom: 15px;
    color: var(--text-dark);
    font-weight: 600;
}

.section-subtitle {
    text-align: center;
    font-size: 17px;
    color: var(--text-light);
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.section-description {
    color: #666;
    font-size: 1.1rem;
    line-height: 1.7;
    max-width: 900px;
    margin: 0 auto 20px;
    text-align: center;
}

.bg-light {
    background: var(--bg-light);
}

/* =====================================================
   SEZIONE SERVIZI - STILE FISCALITÀ INTERNAZIONALE
   ===================================================== */

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    margin-top: 40px;
}

.service-card {
    background: var(--white);
    padding: 30px 25px;
    border-radius: 8px;
    border-left: 4px solid var(--international-primary);
    transition: all 0.3s ease;
    text-align: center;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(44, 90, 160, 0.15);
}

.service-card .service-icon {
    font-size: 2.8rem;
    color: var(--international-primary);
    margin-bottom: 20px;
}

.service-card h3 {
    color: var(--international-primary);
    font-size: 1.4rem;
    margin-bottom: 18px;
    font-weight: 600;
    line-height: 1.3;
}

.service-card p {
    color: #555;
    line-height: 1.6;
    font-size: 0.95rem;
    margin: 0;
}

/* =====================================================
   FISCALITÀ INTERNAZIONALE - SEZIONE SEPARATA
   ===================================================== */

.international-services-container {
    background: var(--white);
    border: 2px solid var(--international-border);
    border-radius: 12px;
    padding: 40px 30px;
    margin-top: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.international-services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    margin-top: 20px;
}

.international-service-card {
    background: var(--white);
    padding: 30px 25px;
    border-radius: 8px;
    border-left: 4px solid var(--international-primary);
    transition: all 0.3s ease;
    text-align: center;
}

.international-service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(44, 90, 160, 0.15);
}

.international-service-card .service-icon {
    font-size: 2.8rem;
    color: var(--international-primary);
    margin-bottom: 20px;
}

.international-service-card h3 {
    color: var(--international-primary);
    font-size: 1.4rem;
    margin-bottom: 18px;
    font-weight: 600;
    line-height: 1.3;
}

.international-service-card p {
    color: #555;
    line-height: 1.6;
    font-size: 0.95rem;
}

/* =====================================================
   SEZIONE CHI SIAMO
   ===================================================== */

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
    margin-top: 30px;
}

.about-text h3 {
    font-size: 1.4rem;
    margin-bottom: 15px;
    color: var(--text-dark);
}

.about-text p {
    color: var(--text-light);
    margin-bottom: 15px;
    font-size: 15px;
}

.about-image {
    background: var(--bg-light);
    border-radius: 8px;
    height: 350px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    font-size: 1.1rem;
}

/* =====================================================
   SEZIONE NEWS CON CAROUSEL
   ===================================================== */

.news-section-wrapper {
    position: relative;
    overflow: hidden;
    margin-top: 30px;
}

.news-carousel {
    display: flex;
    transition: transform 0.5s ease;
    gap: 25px;
}

.news-card {
    background: var(--white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 25px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
    cursor: pointer;
    min-width: 320px;
    max-width: 320px;
    width: 320px;
    flex: 0 0 320px;
}

.news-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 35px rgba(0,0,0,0.12);
}

.news-content {
    padding: 20px;
}

.news-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
    font-size: 13px;
    color: var(--text-light);
}

.news-category {
    background: var(--accent-color);
    color: var(--white);
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 500;
}

.news-title {
    font-size: 1.1rem;
    margin-bottom: 12px;
    color: var(--text-dark);
    font-weight: 600;
    line-height: 1.4;
}

.news-excerpt {
    color: var(--text-light);
    line-height: 1.6;
    font-size: 14px;
}

/* News Grid Fallback */
.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 25px;
    margin-top: 30px;
}

/* Controlli Carousel */
.carousel-controls {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 25px;
}

.carousel-btn {
    background: var(--primary-color);
    color: white;
    border: none;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.carousel-btn:hover {
    background: var(--secondary-color);
    transform: scale(1.1);
}

.carousel-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
}

/* Indicatori */
.carousel-indicators {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin-top: 15px;
}

.indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #ccc;
    cursor: pointer;
    transition: background 0.3s ease;
}

.indicator.active {
    background: var(--primary-color);
}

/* Barra progresso auto-scroll */
.progress-bar {
    width: 100%;
    height: 3px;
    background: #eee;
    border-radius: 2px;
    margin-top: 15px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: var(--primary-color);
    width: 0%;
    transition: width 0.1s linear;
}

/* =====================================================
   SEZIONE CONTATTI
   ===================================================== */

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-top: 30px;
}

.contact-info h3 {
    font-size: 1.2rem;
    margin-bottom: 15px;
    color: var(--text-dark);
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 15px;
}

.contact-icon {
    color: var(--primary-color) !important;
    font-size: 1.1rem;
    width: 18px;
}

/* =====================================================
   FOOTER
   ===================================================== */

.footer {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: var(--white);
    padding: 40px 0 25px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 30px;
    margin-bottom: 25px;
}

.footer-section h3 {
    margin-bottom: 15px;
    color: var(--white);
    font-size: 1.1rem;
}

.footer-section p, 
.footer-section a {
    color: #b0b0b0;
    text-decoration: none;
    line-height: 1.6;
    font-size: 14px;
}

.footer-section a:hover {
    color: var(--accent-color);
}

.footer-bottom {
    border-top: 1px solid #404040;
    padding-top: 15px;
    text-align: center;
    color: #b0b0b0;
    font-size: 14px;
}

/* =====================================================
   MODAL NEWS
   ===================================================== */

.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.8);
}

.modal-content {
    background-color: var(--white);
    margin: 5% auto;
    padding: 30px;
    border-radius: 8px;
    width: 90%;
    max-width: 750px;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
}

.close {
    position: absolute;
    right: 15px;
    top: 15px;
    font-size: 24px;
    font-weight: bold;
    cursor: pointer;
    color: var(--text-light);
}

.close:hover {
    color: var(--text-dark);
}

/* =====================================================
   ANIMAZIONI
   ===================================================== */

.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* =====================================================
   VIDEO CONTAINERS
   ===================================================== */

.video-container {
    max-width: 300px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.video-container video {
    width: 100%;
    height: auto;
    border-radius: 10px;
}

.video-container-vertical {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    padding: 20px;
}

.video-container-vertical video {
    width: auto;
    height: 400px;
    max-width: 100%;
    border-radius: 15px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.15);
    object-fit: cover;
}

.play-button-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
}

.custom-play-btn {
    background: rgba(0,0,0,0.7);
    border: none;
    border-radius: 50%;
    width: 80px;
    height: 80px;
    cursor: pointer;
    pointer-events: auto;
    transition: all 0.3s ease;
}

.custom-play-btn:hover {
    background: rgba(0,0,0,0.9);
    transform: scale(1.1);
}

.video-container-vertical.playing .play-button-overlay {
    display: none;
}

/* =====================================================
   PAGINA UTILITY - UNIFICATA CON COLORI INTERNAZIONALI
   ===================================================== */

.utility-hero {
    background: linear-gradient(135deg, rgba(0, 115, 170, 0.3) 0%, rgba(0, 81, 119, 0.3) 100%), 
                url('../img/ufficio.jpg') center/70% no-repeat;    color: var(--white);
    min-height: 45vh;
    padding: 50px 0 25px;
    text-align: center;
    position: relative;
    overflow: hidden;
}


@media screen and (max-width: 768px) {
    .utility-hero {
        min-height: 50vh;
        padding: 55px 0 25px;
        /* Su mobile potrebbe servire un overlay più scuro */
		background: linear-gradient(135deg, rgba(0, 115, 170, 0.3) 0%, rgba(0, 81, 119, 0.3) 100%), 
                    url('../img/ufficio.jpg') center/100% no-repeat;
    }
}

@media screen and (max-width: 480px) {
    .utility-hero {
        min-height: 45vh;
    }
}

.utility-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.utility-card {
    background: var(--white);
    padding: 30px 25px;
    border-radius: 8px;
    transition: all 0.3s ease;
    text-align: center;
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.08);
    border: 1px solid var(--border-color);
    border-left: 4px solid var(--international-primary);
}

.utility-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(44, 90, 160, 0.15);
}

.utility-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(44, 90, 160, 0.15);
}

.utility-icon {
    font-size: 3rem;
    color: var(--international-primary);
    margin-bottom: 20px;
}

.utility-card h3 {
    color: var(--international-primary);
    font-size: 1.4rem;
    margin-bottom: 15px;
    font-weight: 600;
}

.utility-card p {
    color: #555;
    line-height: 1.6;
    margin-bottom: 25px;
    font-size: 0.95rem;
}

.utility-btn {
    color: var(--international-primary);
    text-decoration: none;
    font-weight: 500;
    padding: 12px 25px;
    border: 2px solid var(--international-primary);
    border-radius: 25px;
    transition: all 0.3s ease;
    display: inline-block;
    background: transparent;
    cursor: pointer;
    font-size: 0.95rem;
}

.utility-btn:hover {
    background: var(--international-primary);
    color: white;
    transform: translateY(-2px);
}

/* Utility Disclaimer */
.utility-disclaimer {
    margin-top: 40px;
    padding: 20px;
    background: #e8f4f8;
    border: 1px solid #bee5eb;
    border-left: 4px solid var(--international-primary);
    border-radius: 8px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.utility-disclaimer .disclaimer-content {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    font-size: 0.9rem;
    color: #055160;
    line-height: 1.5;
}

.utility-disclaimer .disclaimer-triangle {
    font-size: 1.2rem;
    flex-shrink: 0;
    margin-top: 1px;
}

/* Resources Grid */
.resources-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 25px;
    margin-top: 40px;
    justify-content: center;
    place-items: center;
}

.resource-card {
    background: var(--white);
    padding: 30px 25px;
    border-radius: 8px;
    transition: all 0.3s ease;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
    width: 100%;
    min-height: 280px;
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.08);
    border: 1px solid var(--border-color);
    border-left: 4px solid var(--international-primary);
}

.resource-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(44, 90, 160, 0.15);
}

.resource-icon {
    font-size: 2.5rem;
    color: var(--international-primary);
    margin-bottom: 15px;
}

.resource-card h3 {
    color: var(--international-primary);
    font-size: 1.2rem;
    margin-bottom: 12px;
    font-weight: 600;
}

.resource-card p {
    color: #555;
    line-height: 1.5;
    margin-bottom: 20px;
    font-size: 0.9rem;
    flex-grow: 1;
}

.resource-link {
    color: var(--international-primary);
    text-decoration: none;
    font-weight: 500;
    padding: 8px 20px;
    border: 2px solid var(--international-primary);
    border-radius: 20px;
    transition: all 0.3s ease;
    display: inline-block;
    margin-top: auto;
    align-self: center;
}

.resource-link:hover {
    background: var(--international-primary);
    color: white;
}

/* Calculator Modal */
.calculator-modal {
    max-width: 600px;
    max-height: 80vh;
    overflow-y: auto;
}

.calculator-header {
    text-align: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e0e0e0;
}

.studio-name {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 10px;
    font-weight: 500;
}

.calculator-header h2 {
    color: var(--international-primary);
    font-size: 1.6rem;
    margin: 0;
    font-weight: 600;
}

.calculator-form {
    padding: 20px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--international-primary);
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 12px;
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--international-primary);
}

.calculate-btn {
    background: var(--international-primary);
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    width: 100%;
    margin: 20px 0;
    transition: background 0.3s ease;
}

.calculate-btn:hover {
    background: var(--international-secondary);
}

.result-box {
    background: #f0f8ff;
    border: 2px solid var(--international-primary);
    border-radius: 8px;
    padding: 20px;
    margin-top: 20px;
    text-align: center;
}

.result-box h4 {
    color: var(--international-primary);
    margin-bottom: 10px;
}

.result-value {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--international-secondary);
}

/* =====================================================
   PAGINA PRIVACY E SICUREZZA - STILI COMPLETI
   ===================================================== */

.privacy-hero {
    background: linear-gradient(135deg, rgba(0, 115, 170, 0.3) 0%, rgba(0, 81, 119, 0.3) 100%), 
                url('../img/ufficio1.jpg') center/70% no-repeat;    color: var(--white);
    min-height: 45vh;
    padding: 50px 0 25px;
    text-align: center;
    position: relative;
    overflow: hidden;
}



@media screen and (max-width: 768px) {
    .privacy-hero {
        min-height: 50vh;
        padding: 55px 0 25px;
        /* Su mobile potrebbe servire un overlay più scuro */
		background: linear-gradient(135deg, rgba(0, 115, 170, 0.3) 0%, rgba(0, 81, 119, 0.3) 100%), 
                    url('../img/ufficio1.jpg') center/100% no-repeat;
    }
}

@media screen and (max-width: 480px) {
    .privacy-hero {
        min-height: 45vh;
    }
}


.privacy-hero h1 {
    font-size: clamp(2.2rem, 4.5vw, 3.5rem);
    margin-bottom: 15px;
    font-weight: 600;
    line-height: 1.2;
    color: white;
}

.privacy-hero .subtitle {
    font-size: 0.8em;
    font-weight: 500;
    opacity: 0.95;
}

.privacy-hero p {
    font-size: clamp(1rem, 2.2vw, 1.2rem);
    margin-bottom: 25px;
    opacity: 0.95;
    line-height: 1.6;
    color: white;
}

.privacy-content {
    max-width: 900px;
    margin: 0 auto;
}

.privacy-section {
    margin-bottom: 40px;
    padding: 30px;
    background: var(--white);
    border-radius: 8px;
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.08);
    border: 1px solid var(--border-color);
}

.privacy-section h3 {
    color: var(--international-primary);
    font-size: 1.4rem;
    margin: 0 0 20px 0;
    padding: 0;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
}

.privacy-section h3 i {
    font-size: 1.2rem;
    flex-shrink: 0;
}

.privacy-section p {
    color: #555;
    line-height: 1.6;
    margin: 0 0 15px 0;
    padding: 0;
    text-align: left;
    font-size: 1rem;
}

.privacy-section ul {
    margin: 0 0 20px 20px;
    padding: 0;
    color: #555;
}

.privacy-section li {
    margin: 0 0 10px 0;
    padding: 0;
    line-height: 1.6;
    color: #555;
    text-align: left;
}

.privacy-section strong {
    color: var(--international-primary);
    font-weight: 600;
}

.privacy-section a {
    color: var(--international-primary);
    text-decoration: none;
}

.privacy-section a:hover {
    text-decoration: underline;
}

/* Grids specifiche Privacy */
.retention-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin: 20px 0 0 0;
}

.retention-item {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 6px;
    border-left: 3px solid var(--accent-color);
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.retention-item h4 {
    color: var(--international-primary);
    margin-bottom: 8px;
    font-size: 1rem;
    font-weight: 600;
}

.retention-item p {
    color: #666;
    font-size: 0.9rem;
    margin: 0;
    font-weight: 600;
}

.rights-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
    margin: 20px 0 0 0;
}

.right-item {
    text-align: center;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 6px;
    transition: transform 0.3s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    border: 1px solid #e0e0e0;
}

.right-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(44, 90, 160, 0.15);
}

.right-item i {
    font-size: 2rem;
    color: var(--international-primary);
    margin-bottom: 10px;
    display: block;
}

.right-item strong {
    color: var(--international-primary);
    font-size: 0.9rem;
    display: block;
    margin-bottom: 5px;
}

.right-item p {
    font-size: 0.8rem;
    color: #666;
    margin: 0;
    text-align: center;
}

/* Security Grid */
.security-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    margin-top: 40px;
}

.security-card {
    background: var(--white);
    padding: 30px 25px;
    border-radius: 8px;
    border-left: 4px solid var(--international-primary);
    transition: all 0.3s ease;
    text-align: center;
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.08);
    border: 1px solid var(--border-color);
}

.security-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(44, 90, 160, 0.15);
}

.security-icon {
    font-size: 2.8rem;
    color: var(--international-primary);
    margin-bottom: 20px;
}

.security-card h3 {
    color: var(--international-primary);
    font-size: 1.4rem;
    margin-bottom: 18px;
    font-weight: 600;
    line-height: 1.3;
}

.security-card p {
    color: #555;
    line-height: 1.6;
    font-size: 0.95rem;
    margin: 0;
}

/* Cookie Content */
.cookie-content {
    max-width: 800px;
    margin: 0 auto;
}

.cookie-section {
    background: var(--white);
    padding: 25px;
    border-radius: 8px;
    border-left: 4px solid var(--international-primary);
    margin-bottom: 30px;
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.08);
    border: 1px solid var(--border-color);
}

.cookie-section h3 {
    color: var(--international-primary);
    font-size: 1.3rem;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.cookie-types {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.cookie-type {
    background: var(--white);
    padding: 20px;
    border-radius: 8px;
    border-left: 4px solid var(--accent-color);
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.08);
    border: 1px solid var(--border-color);
}

.cookie-type h4 {
    color: var(--international-primary);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.cookie-type p {
    color: #555;
    line-height: 1.5;
    margin-bottom: 8px;
    font-size: 0.9rem;
}

/* Cookie Table */
.cookie-table {
    margin-top: 30px;
}

.cookie-table h4 {
    color: var(--international-primary);
    margin-bottom: 15px;
}

.table-responsive {
    overflow-x: auto;
    margin: 20px 0;
}

.cookie-details {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

.cookie-details th,
.cookie-details td {
    padding: 12px 8px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

.cookie-details th {
    background: var(--international-primary);
    color: white;
    font-weight: 600;
}

.cookie-details tr:hover {
    background: #f8f9fa;
}

.cookie-management {
    margin-top: 30px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid var(--accent-color);
}

.cookie-management h4 {
    color: var(--international-primary);
    margin-bottom: 15px;
}

.cookie-management ul {
    margin-left: 20px;
}

/* Security Disclaimer */
.security-disclaimer {
    margin-top: 30px;
    text-align: center;
    font-style: italic;
    color: #666;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 6px;
}

/* Privacy Contacts */
.privacy-contacts {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.contact-method {
    background: var(--white);
    padding: 25px;
    border-radius: 8px;
    border-left: 4px solid var(--international-primary);
    display: flex;
    align-items: flex-start;
    gap: 15px;
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease;
    border: 1px solid var(--border-color);
}

.contact-method:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(44, 90, 160, 0.12);
}

.contact-method i {
    font-size: 2rem;
    color: var(--international-primary);
    margin-top: 5px;
}

.contact-method h4 {
    color: var(--international-primary);
    margin-bottom: 5px;
    font-size: 1.1rem;
}

.contact-method p {
    margin: 0;
    color: #555;
}

.contact-method a {
    color: var(--international-primary);
    text-decoration: none;
}

.contact-method a:hover {
    text-decoration: underline;
}

.contact-method small {
    color: #888;
    font-size: 0.8rem;
    display: block;
    margin-top: 5px;
}

/* Privacy Disclaimer */
.privacy-disclaimer {
    margin-top: 40px;
    padding: 20px;
    background: #e8f4f8;
    border: 1px solid #bee5eb;
    border-left: 4px solid var(--international-primary);
    border-radius: 8px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.privacy-disclaimer .disclaimer-content {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    font-size: 0.9rem;
    color: #055160;
    line-height: 1.5;
}

.privacy-disclaimer .disclaimer-triangle {
    font-size: 1.2rem;
    flex-shrink: 0;
    margin-top: 1px;
}

/* =====================================================
   RESPONSIVE MOBILE - SOLO QUESTE REGOLE MODIFICATE
   ===================================================== */

@media screen and (max-width: 768px) {
    /* NAVIGATION MOBILE */
    .nav-container {
        justify-content: center !important;
        height: 40px !important;
        padding: 0 15px !important;
    }

    .hamburger {
        display: flex !important;
    }

    .nav-menu {
        position: fixed !important;
        left: -100% !important;
        top: 40px !important;
        flex-direction: column !important;
        background-color: var(--white) !important;
        width: 100% !important;
        text-align: center !important;
        transition: 0.3s !important;
        box-shadow: 0 10px 27px rgba(0,0,0,0.05) !important;
        padding: 15px 0 !important;
        gap: 0 !important;
    }

    .nav-menu.active {
        left: 0 !important;
    }

    .nav-menu li {
        padding: 12px 0 !important;
        border-bottom: 1px solid var(--border-color) !important;
    }

    .nav-menu li:last-child {
        border-bottom: none !important;
    }

    /* VIDEO SOTTO AL TESTO */
    .about-content {
        display: flex !important;
        flex-direction: column !important;
        gap: 25px !important;
    }
    
    .about-text {
        order: 1 !important;
        width: 100% !important;
    }
    
    .about-image {
        order: 2 !important;
        width: 100% !important;
    }

    /* GRIGLIE 1 COLONNA - FLEXBOX */
    .resources-grid {
        display: flex !important;
        flex-direction: column !important;
        gap: 20px !important;
        width: 100% !important;
        margin-top: 40px !important;
    }
    
    .utility-grid {
        display: flex !important;
        flex-direction: column !important;
        gap: 20px !important;
        width: 100% !important;
        margin-top: 40px !important;
    }

    /* CARDS MOBILE */
    .resource-card,
    .utility-card {
        width: 100% !important;
        padding: 25px 20px !important;
        margin: 0 !important;
        min-height: auto !important;
        display: flex !important;
        flex-direction: column !important;
        justify-content: space-between !important;
    }

    /* ALTRE SEZIONI */
    .services-grid {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
    }

    .contact-grid {
        grid-template-columns: 1fr !important;
        gap: 25px !important;
    }

    .news-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)) !important;
    }

    .news-card {
        min-width: 280px;
        max-width: 280px;
        width: 280px;
        flex: 0 0 280px;
    }

    .international-services-container {
        padding: 25px 20px;
    }
    
    .international-services-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .international-service-card {
        padding: 20px;
    }

    .carousel-controls {
        gap: 8px;
    }

    .carousel-btn {
        width: 40px;
        height: 40px;
        font-size: 14px;
    }

    .video-container-vertical video {
        height: 300px;
    }

    /* HERO SECTIONS */
    .hero {
        padding: 55px 0 25px !important;
    }

    .utility-hero {
        padding: 55px 0 25px !important;
    }

    .privacy-hero {
        padding: 55px 0 25px !important;
    }

    .section {
        padding: 45px 0 !important;
    }

    /* PRIVACY */
    .privacy-section,
    .cookie-section {
        padding: 20px;
    }
    
    .retention-grid,
    .rights-grid,
    .security-grid,
    .cookie-types,
    .privacy-contacts {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .contact-method {
        padding: 20px;
    }
    
    .privacy-section h3 {
        font-size: 1.2rem;
    }
}

@media screen and (max-width: 480px) {
    .resource-card,
    .utility-card {
        padding: 20px 15px !important;
    }
    
    .resource-card h3 {
        font-size: 1.1rem !important;
    }
    
    .resource-card p {
        font-size: 0.9rem !important;
    }
    
    .resource-link {
        padding: 8px 16px !important;
        font-size: 0.9rem !important;
    }
}

/* =====================================================
   UTILITY GRID SPECIFICA - pec
   ===================================================== */

/* Nuova classe specifica per il layout personalizzato */
.utility-grid-custom {
    display: grid;
    gap: 30px;
    margin-top: 40px;
    grid-template-columns: repeat(4, 1fr);
}

/* Prima card full-width centrata - SOLO nella griglia custom */
.utility-grid-custom .utility-card:first-child {
    grid-column: 1 / -1; /* Occupa tutte le 4 colonne */
    max-width: 400px; /* Mantiene dimensione attuale */
    justify-self: center; /* La centra */
}

/* Responsive per mobile - SOLO per utility-grid-custom */
@media screen and (max-width: 768px) {
    .utility-grid-custom {
        display: flex !important;
        flex-direction: column !important;
        gap: 20px !important;
        width: 100% !important;
        margin-top: 40px !important;
    }
    
    .utility-grid-custom .utility-card:first-child {
        grid-column: unset !important;
        max-width: 100% !important;
        justify-self: unset !important;
    }
}

@media screen and (max-width: 1024px) and (min-width: 769px) {
    .utility-grid-custom {
        grid-template-columns: repeat(2, 1fr); /* 2 colonne su tablet */
    }
    
    .utility-grid-custom .utility-card:first-child {
        grid-column: 1 / -1; /* Ancora full-width */
    }
}
/* Rinforzo colori per pagina PEC */
.retention-item {
    background: #f1f6fb;
    border-left: 3px solid var(--international-primary);
}

.right-item {
    background: #f1f6fb;
    border: 1px solid var(--international-border);
}

.cookie-type {
    border-left: 4px solid var(--international-primary);
}

/* Dopo (aggancia la card delle news) */
.news-excerpt { white-space: pre-line !important; }

