/* ================================================= */
/* RESET & BASE                                      */
/* ================================================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    background: #f7f7f5;
    color: #202020;
    line-height: 1.6;
    animation: fadeInPage 0.8s ease-out;
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
}


/* ================================================= */
/* HEADER - MOBILE FIRST                            */
/* ================================================= */

.site-header {
    width: 100%;
    padding: 15px 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    background: #ffffff;
    border-bottom: 1px solid #e5e5e5;
}

/* ================================================= */
/* BRAND                                             */
/* ================================================= */

.brand {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.brand-symbol {
    width: 26px;
    height: 26px;
    color: #202020;
    flex-shrink: 0;
}

.brand span {
    font-family: Georgia, "Times New Roman", serif;
    font-size: 15px;
    letter-spacing: 2px;
    font-weight: 500;
    display: inline-block;
    white-space: nowrap;
    animation: brandFloat 4s ease-in-out infinite;
}

@keyframes brandFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-2px); }
}


/* ================================================= */
/* NAVIGATION - MOBILE FIRST                        */
/* ================================================= */

.main-nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px 18px;
}

.main-nav a {
    position: relative;
    color: #333333;
    text-decoration: none;
    font-size: 13px;
    transition: color 0.3s ease;
    padding-bottom: 2px;
}

.main-nav a:hover {
    color: #000000;
}

.main-nav a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 0;
    height: 1px;
    background-color: currentColor;
    transition: width 0.3s ease;
}

.main-nav a:hover::after {
    width: 100%;
}


/* ================================================= */
/* LANGUAGE SELECTOR - MOBILE FIRST                 */
/* ================================================= */

.language-selector {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 4px;
}

.language-selector button {
    padding: 4px 7px;
    border: 1px solid #cccccc;
    background: #ffffff;
    cursor: pointer;
    font-size: 10px;
    transition: 0.3s ease;
    white-space: nowrap;
    border-radius: 3px;
}

.language-selector button:hover {
    background: #202020;
    color: #ffffff;
}


/* ================================================= */
/* HERO - MOBILE FIRST                              */
/* ================================================= */

.hero {
    min-height: auto;
    display: flex;
    align-items: center;
    padding: 60px 16px;
    background: #eeeeeb;
}

.hero-content {
    max-width: 100%;
}

.eyebrow,
.section-label {
    font-size: 11px;
    letter-spacing: 2px;
    font-weight: bold;
    color: #777777;
    margin-bottom: 16px;
}

.hero h1 {
    font-size: 36px;
    line-height: 1.05;
    margin-bottom: 20px;
    letter-spacing: -1px;
}

.hero-description {
    max-width: 100%;
    font-size: 16px;
    color: #555555;
    margin-bottom: 25px;
}


/* ================================================= */
/* BUTTONS - MOBILE FIRST                           */
/* ================================================= */

.hero-buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.button {
    display: inline-block;
    padding: 14px 20px;
    text-decoration: none;
    font-weight: bold;
    font-size: 14px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
}

.button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.primary-button {
    background: #202020;
    color: #ffffff;
}

.primary-button:hover {
    background: #444444;
}

.secondary-button {
    border: 1px solid #202020;
    color: #202020;
}

.secondary-button:hover {
    background: #202020;
    color: #ffffff;
}


/* ================================================= */
/* SECTIONS - MOBILE FIRST                          */
/* ================================================= */

.about-section,
.services-section,
.difference-section,
.process-section,
.trial-section,
.contact-section,
.privacy-section {
    padding: 60px 16px;
}

h2 {
    max-width: 100%;
    font-size: 30px;
    line-height: 1.1;
    letter-spacing: -1px;
    margin-bottom: 25px;
}


/* ================================================= */
/* ABOUT                                             */
/* ================================================= */

.about-section {
    max-width: 100%;
}

.about-text {
    max-width: 100%;
}

.about-text p {
    font-size: 16px;
    color: #555555;
    margin-bottom: 16px;
}


/* ================================================= */
/* SERVICES                                          */
/* ================================================= */

.services-section {
    background: #ffffff;
}

.services-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
    margin-top: 30px;
}

.service-card {
    padding: 24px 18px;
    border: 1px solid #e3e3e3;
    background: #fafafa;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.service-card:hover {
    transform: translateY(-4px);
    border-color: #999999;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
}

.service-icon {
    display: inline-block;
    font-size: 28px;
    margin-bottom: 14px;
    transition: transform 0.3s ease;
}

.service-card:hover .service-icon {
    transform: scale(1.1) rotate(3deg);
}

.service-card h3 {
    font-size: 18px;
    margin-bottom: 10px;
}

.service-card p {
    color: #666666;
    font-size: 14px;
}


/* ================================================= */
/* DIFFERENCE                                        */
/* ================================================= */

.difference-section {
    background: #202020;
    color: #ffffff;
}

.difference-section .section-label {
    color: #aaaaaa;
}

.difference-text {
    max-width: 100%;
}

.difference-text p {
    font-size: 17px;
    color: #cccccc;
    margin-bottom: 16px;
}


/* ================================================= */
/* PROCESS                                           */
/* ================================================= */

.process-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
    margin-top: 30px;
}

.process-step {
    padding-top: 20px;
    border-top: 1px solid #cccccc;
}

.step-number {
    font-size: 34px;
    font-weight: bold;
    margin-bottom: 16px;
}

.process-step h3 {
    font-size: 19px;
    margin-bottom: 10px;
}

.process-step p {
    color: #666666;
    font-size: 14px;
}


/* ================================================= */
/* TRIAL                                             */
/* ================================================= */

.trial-section {
    text-align: center;
    background: #eeeeeb;
}

.trial-section h2 {
    margin-left: auto;
    margin-right: auto;
}

.trial-section > p:not(.section-label) {
    max-width: 100%;
    margin: 0 auto 25px;
    font-size: 16px;
    color: #555555;
}


/* ================================================= */
/* CONTACT                                           */
/* ================================================= */

.contact-section {
    background: #ffffff;
}

.contact-section > p:not(.section-label) {
    font-size: 16px;
    color: #555555;
}

.contact-list {
    margin-top: 30px;
    font-size: 16px;
}

.contact-list p {
    margin-bottom: 14px;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.contact-list strong {
    word-break: break-word;
}

.contact-hint {
    font-size: 13px !important;
    color: #888888 !important;
    margin-top: 2px !important;
}


/* ================================================= */
/* TIMER DI RISPOSTA                                */
/* ================================================= */

.response-timer {
    background: #f7f7f5;
    border-radius: 10px;
    padding: 16px 18px;
    margin: 16px 0 24px 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    border-left: 4px solid #202020;
}

.response-timer .timer-icon {
    font-size: 24px;
}

.response-timer .timer-title {
    margin: 0;
    font-size: 15px;
    font-weight: 600;
    color: #202020;
}

.response-timer .timer-sub {
    margin: 2px 0 0 0;
    font-size: 13px;
    color: #666;
}

.response-timer .timer-status {
    display: flex;
    align-items: center;
    gap: 6px;
}

.response-timer .status-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    background: #22c55e;
    border-radius: 50%;
    animation: pulse-dot 1.5s ease-in-out infinite;
}

.response-timer .status-text {
    font-size: 12px;
    color: #22c55e;
    font-weight: 600;
}

@keyframes pulse-dot {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(0.8); }
}


/* ================================================= */
/* BADGE DI SICUREZZA                               */
/* ================================================= */

.badge-section {
    padding: 60px 16px;
    background: #ffffff;
}

.badge-section h2 {
    margin-bottom: 30px;
}

.badge-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
    max-width: 100%;
    margin: 0 auto;
}

.badge-item {
    text-align: center;
    padding: 24px 18px;
    background: #f7f7f5;
    border-radius: 10px;
    border: 1px solid #e5e5e5;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.badge-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.06);
    border-color: #bbbbbb;
}

.badge-icon {
    font-size: 34px;
    margin-bottom: 12px;
    display: block;
}

.badge-item h3 {
    font-size: 17px;
    font-weight: 600;
    color: #202020;
    margin-bottom: 8px;
}

.badge-item p {
    font-size: 14px;
    line-height: 1.6;
    color: #666666;
    margin: 0;
}


/* ================================================= */
/* FAQ                                               */
/* ================================================= */

.faq-section {
    padding: 60px 16px;
    background: #f7f7f5;
}

.faq-section h2 {
    margin-bottom: 30px;
}

.faq-grid {
    max-width: 100%;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.faq-item {
    background: #ffffff;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    overflow: hidden;
    transition: border-color 0.3s ease;
}

.faq-item:hover {
    border-color: #bbbbbb;
}

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 18px;
    cursor: pointer;
    font-weight: 600;
    font-size: 15px;
    color: #202020;
    transition: background 0.3s ease;
    user-select: none;
    gap: 14px;
}

.faq-question:hover {
    background: #f5f5f5;
}

.faq-question span:first-child {
    flex: 1;
    font-size: 15px;
    line-height: 1.4;
}

.faq-icon {
    font-size: 20px;
    font-weight: 300;
    color: #202020;
    transition: transform 0.3s ease;
    flex-shrink: 0;
    width: 28px;
    text-align: center;
    background: #f0f0f0;
    border-radius: 50%;
    line-height: 28px;
    height: 28px;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.4s ease;
    padding: 0 18px;
}

.faq-answer.active {
    padding: 0 18px 18px 18px;
}

.faq-answer p {
    margin: 0;
    font-size: 14px;
    line-height: 1.7;
    color: #555555;
}

/* ================================================= */
/* FAQ LINK - SEMPRE LEGGIBILE IN DARK MODE         */
/* ================================================= */

/* Colore di default per il link (normale) */
.faq-answer a,
.faq-link {
    color: #202020 !important;
    font-weight: 600 !important;
    text-decoration: underline !important;
    transition: color 0.3s ease !important;
}

/* Hover sempre visibile */
.faq-answer a:hover,
.faq-link:hover {
    color: #22c55e !important;
    text-decoration: underline !important;
}

/* Dark mode - il link diventa bianco */
[data-theme="dark"] .faq-answer a,
[data-theme="dark"] .faq-link {
    color: #ffffff !important;
}

[data-theme="dark"] .faq-answer a:hover,
[data-theme="dark"] .faq-link:hover {
    color: #22c55e !important;
}


/* ================================================= */
/* PRIVACY                                           */
/* ================================================= */

.privacy-section {
    background: #f1f1ef;
    font-size: 14px;
    color: #666666;
}

.privacy-section h3 {
    color: #202020;
    margin-bottom: 14px;
    font-size: 17px;
}

.privacy-section p {
    max-width: 100%;
    margin-bottom: 12px;
    font-size: 14px;
}


/* ================================================= */
/* FOOTER                                            */
/* ================================================= */

.site-footer {
    padding: 30px 16px;
    background: #202020;
    color: #aaaaaa;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    font-size: 12px;
    text-align: center;
}

.site-footer .footer-copyright,
.site-footer .footer-tagline {
    margin: 0;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 6px 10px;
}

.footer-links a {
    color: #d0d0d0;
    text-decoration: none;
    font-size: 12px;
    transition: color .25s ease;
}

.footer-links a:hover {
    color: #ffffff;
}

.footer-links span {
    color: #666;
    user-select: none;
}

.footer-social {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 14px;
    margin-top: 4px;
    padding-top: 12px;
    border-top: 1px solid rgba(255,255,255,0.06);
    width: 100%;
}

.footer-social a,
.footer-social span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.footer-social svg {
    width: 16px;
    height: 16px;
}

.footer-social a {
    color: #888888;
    text-decoration: none;
    transition: all 0.3s ease;
}

.footer-social a:hover {
    color: #ffffff;
    transform: translateY(-2px);
}

.footer-social .footer-icon-disabled {
    color: #666666;
    opacity: 0.3;
    cursor: default;
}


/* ================================================= */
/* ANIMAZIONI                                       */
/* ================================================= */

@keyframes fadeInPage {
    from { opacity: 0; transform: translateY(15px); }
    to { opacity: 1; transform: translateY(0); }
}

.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}


/* ================================================= */
/* ================================================= */
/* ============ TABLET (600px - 1024px) ============ */
/* ================================================= */
/* ================================================= */

@media (min-width: 600px) and (max-width: 1024px) {
    .site-header {
        flex-direction: row;
        padding: 20px 5%;
        gap: 10px;
        flex-wrap: wrap;
    }

    .brand span {
        font-size: 16px;
    }

    .main-nav {
        gap: 16px 24px;
    }

    .main-nav a {
        font-size: 14px;
    }

    .language-selector button {
        font-size: 11px;
        padding: 4px 8px;
    }

    .hero {
        padding: 80px 5%;
        min-height: auto;
    }

    .hero h1 {
        font-size: 48px;
    }

    .hero-description {
        font-size: 17px;
        max-width: 80%;
    }

    .hero-buttons {
        flex-direction: row;
    }

    .badge-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .services-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .process-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }

    h2 {
        font-size: 38px;
    }

    .about-section,
    .services-section,
    .difference-section,
    .process-section,
    .trial-section,
    .contact-section,
    .privacy-section {
        padding: 80px 5%;
    }

    .badge-section {
        padding: 80px 5%;
    }

    .faq-section {
        padding: 80px 5%;
    }
}


/* ================================================= */
/* ================================================= */
/* ============ DESKTOP (1025px+) ================== */
/* ================================================= */
/* ================================================= */

@media (min-width: 1025px) {
    .site-header {
        flex-direction: row;
        padding: 25px 8%;
        gap: 30px;
    }

    .brand span {
        font-size: 18px;
        letter-spacing: 3px;
    }

    .main-nav {
        gap: 30px;
    }

    .main-nav a {
        font-size: 14px;
    }

    .language-selector button {
        font-size: 12px;
        padding: 6px 9px;
    }

    .hero {
        min-height: 85vh;
        padding: 100px 8%;
    }

    .hero-content {
        max-width: 900px;
    }

    .hero h1 {
        font-size: clamp(48px, 8vw, 100px);
        letter-spacing: -3px;
    }

    .hero-description {
        max-width: 650px;
        font-size: 20px;
    }

    .hero-buttons {
        flex-direction: row;
    }

    .button {
        padding: 15px 25px;
        font-size: 16px;
    }

    .badge-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 30px;
        max-width: 1100px;
    }

    .badge-item {
        padding: 35px 25px;
    }

    .badge-icon {
        font-size: 44px;
    }

    .badge-item h3 {
        font-size: 19px;
    }

    .badge-item p {
        font-size: 15px;
    }

    .services-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 25px;
        margin-top: 50px;
        max-width: 1200px;
        margin-left: auto;
        margin-right: auto;
    }

    .service-card {
        padding: 35px;
    }

    .service-card h3 {
        font-size: 21px;
    }

    .service-card p {
        font-size: 15px;
    }

    .service-icon {
        font-size: 32px;
    }

    .process-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 40px;
        margin-top: 50px;
        max-width: 1200px;
        margin-left: auto;
        margin-right: auto;
    }

    .process-step h3 {
        font-size: 22px;
    }

    .process-step p {
        font-size: 16px;
    }

    .step-number {
        font-size: 42px;
    }

    h2 {
        font-size: clamp(38px, 6vw, 72px);
        max-width: 850px;
        letter-spacing: -2px;
    }

    .about-section,
    .services-section,
    .difference-section,
    .process-section,
    .trial-section,
    .contact-section,
    .privacy-section {
        padding: 120px 8%;
    }

    .badge-section {
        padding: 100px 8%;
    }

    .faq-section {
        padding: 100px 8%;
    }

    .faq-grid {
        max-width: 920px;
    }

    .faq-question {
        padding: 22px 28px;
        font-size: 17px;
    }

    .faq-answer p {
        font-size: 16px;
    }

    .contact-list {
        font-size: 18px;
    }

    .site-footer {
        padding: 35px 8%;
        flex-direction: row;
        justify-content: space-between;
        text-align: left;
    }

    .footer-social {
        width: auto;
        border-top: none;
        padding-top: 0;
        margin-top: 0;
    }

    .footer-links {
        gap: 10px;
    }

    .about-text {
        max-width: 750px;
    }

    .about-text p {
        font-size: 19px;
    }

    .difference-text {
        max-width: 750px;
    }

    .difference-text p {
        font-size: 20px;
    }

    .privacy-section p {
        max-width: 850px;
    }

    .response-timer {
        flex-direction: row;
        padding: 20px 25px;
    }

    .response-timer .timer-title {
        font-size: 16px;
    }

    .response-timer .timer-sub {
        font-size: 14px;
    }

    .response-timer .timer-status {
        margin-left: auto;
    }

    .response-timer .status-text {
        font-size: 13px;
    }
}


/* ================================================= */
/* ================================================= */
/* ============ LAPTOP HI-DPI (1366px-1920px) ====== */
/* ================================================= */
/* ================================================= */

@media (min-width: 1366px) and (max-width: 1919px) {
    .badge-grid {
        gap: 30px;
    }

    .badge-item {
        padding: 40px 30px;
    }

    .badge-icon {
        font-size: 48px;
    }

    .services-grid {
        gap: 30px;
    }

    .service-card {
        padding: 40px;
    }
}


/* ================================================= */
/* ================================================= */
/* ============ TV FULL HD / 4K (1920px+) ========= */
/* ================================================= */
/* ================================================= */

@media (min-width: 1920px) {
    .hero {
        padding: 150px 12%;
        min-height: 70vh;
    }

    .hero h1 {
        font-size: 100px;
    }

    .hero-description {
        font-size: 24px;
        max-width: 800px;
    }

    .button {
        padding: 18px 35px;
        font-size: 18px;
    }

    .badge-grid {
        max-width: 1400px;
        gap: 40px;
    }

    .badge-item {
        padding: 50px 40px;
    }

    .badge-icon {
        font-size: 56px;
    }

    .badge-item h3 {
        font-size: 22px;
    }

    .badge-item p {
        font-size: 17px;
    }

    .services-grid {
        max-width: 1400px;
        gap: 35px;
    }

    .service-card {
        padding: 45px;
    }

    .service-card h3 {
        font-size: 24px;
    }

    .service-card p {
        font-size: 17px;
    }

    .service-icon {
        font-size: 40px;
    }

    .process-grid {
        max-width: 1400px;
        gap: 50px;
    }

    .process-step h3 {
        font-size: 26px;
    }

    .process-step p {
        font-size: 18px;
    }

    .step-number {
        font-size: 56px;
    }

    .faq-grid {
        max-width: 1100px;
    }

    .faq-question {
        padding: 26px 32px;
        font-size: 20px;
    }

    .faq-answer p {
        font-size: 18px;
    }

    .faq-icon {
        font-size: 26px;
        width: 36px;
        height: 36px;
        line-height: 36px;
    }

    .site-footer {
        padding: 45px 12%;
    }

    .footer-links a {
        font-size: 15px;
    }

    .footer-social svg {
        width: 20px;
        height: 20px;
    }

    h2 {
        font-size: 72px;
        max-width: 1100px;
    }

    .about-text p {
        font-size: 22px;
    }

    .contact-list {
        font-size: 22px;
    }

    .contact-hint {
        font-size: 16px !important;
    }

    .privacy-section p {
        font-size: 17px;
    }

    .difference-text p {
        font-size: 22px;
    }

    .trial-section > p:not(.section-label) {
        font-size: 20px;
        max-width: 750px;
    }
}


/* ================================================= */
/* ================================================= */
/* ============ 4K ULTRA HD (2560px+) ============== */
/* ================================================= */
/* ================================================= */

@media (min-width: 2560px) {
    .hero {
        padding: 180px 15%;
    }

    .hero h1 {
        font-size: 120px;
    }

    .hero-description {
        font-size: 28px;
        max-width: 900px;
    }

    .badge-grid {
        max-width: 1600px;
        gap: 50px;
    }

    .badge-item {
        padding: 60px 50px;
    }

    .badge-icon {
        font-size: 64px;
    }

    .badge-item h3 {
        font-size: 26px;
    }

    .badge-item p {
        font-size: 19px;
    }

    .services-grid {
        max-width: 1600px;
        gap: 40px;
    }

    .service-card {
        padding: 55px;
    }

    .service-card h3 {
        font-size: 28px;
    }

    .service-card p {
        font-size: 19px;
    }

    .process-grid {
        max-width: 1600px;
        gap: 60px;
    }

    .process-step h3 {
        font-size: 30px;
    }

    .process-step p {
        font-size: 20px;
    }

    .step-number {
        font-size: 64px;
    }

    .faq-grid {
        max-width: 1300px;
    }

    .faq-question {
        padding: 30px 38px;
        font-size: 22px;
    }

    .faq-answer p {
        font-size: 20px;
    }

    h2 {
        font-size: 84px;
        max-width: 1300px;
    }

    .about-text p {
        font-size: 24px;
    }

    .contact-list {
        font-size: 24px;
    }

    .contact-hint {
        font-size: 18px !important;
    }

    .button {
        padding: 20px 40px;
        font-size: 20px;
    }

    .site-footer {
        padding: 50px 15%;
    }

    .footer-links a {
        font-size: 17px;
    }

    .footer-social svg {
        width: 24px;
        height: 24px;
    }

    .footer-social {
        gap: 25px;
    }

    .privacy-section p {
        font-size: 19px;
    }

    .difference-text p {
        font-size: 24px;
    }

    .trial-section > p:not(.section-label) {
        font-size: 22px;
        max-width: 850px;
    }
}


/* ================================================= */
/* PRIVACY PAGE                                      */
/* ================================================= */

.privacy-page {
    max-width: 950px;
    margin: 0 auto;
    padding: 80px 16px;
}

.privacy-page h1 {
    max-width: 100%;
    font-size: clamp(32px, 6vw, 72px);
    line-height: 1.05;
    letter-spacing: -2px;
    margin-bottom: 30px;
}

.privacy-page h2 {
    max-width: 100%;
    font-size: 24px;
    line-height: 1.2;
    letter-spacing: -0.5px;
    margin-top: 40px;
    margin-bottom: 16px;
}

.privacy-page p {
    max-width: 100%;
    font-size: 16px;
    line-height: 1.7;
    color: #555555;
    margin-bottom: 16px;
}

.privacy-page .privacy-intro {
    font-size: 18px;
    color: #444444;
    margin-bottom: 35px;
}

.privacy-page ul {
    max-width: 100%;
    padding-left: 20px;
    margin-bottom: 25px;
}

.privacy-page li {
    color: #555555;
    font-size: 16px;
    line-height: 1.7;
    margin-bottom: 8px;
}

.privacy-page a {
    color: #202020;
    font-weight: bold;
    text-decoration: none;
}

.privacy-page a:hover {
    opacity: 0.6;
}

.privacy-update {
    margin-top: 40px;
    font-size: 13px !important;
    color: #888888 !important;
}


/* ================================================= */
/* PRIVACY MOBILE                                    */
/* ================================================= */

@media (min-width: 768px) {
    .privacy-page {
        padding: 120px 8%;
    }

    .privacy-page h1 {
        max-width: 850px;
    }

    .privacy-page h2 {
        max-width: 850px;
        font-size: 28px;
        margin-top: 60px;
    }

    .privacy-page p {
        max-width: 850px;
        font-size: 17px;
    }

    .privacy-page ul {
        max-width: 850px;
    }

    .privacy-page li {
        font-size: 17px;
    }

    .privacy-page .privacy-intro {
        font-size: 20px;
        margin-bottom: 50px;
    }

    .privacy-update {
        margin-top: 60px;
        font-size: 14px !important;
    }
}


/* ================================================= */
/* CLICKABLE CONTACT LINKS                          */
/* ================================================= */

.contact-list a {
    color: inherit;
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.contact-list a:hover {
    opacity: 0.6;
}


/* ================================================= */
/* FIX PER IPHONE NOTCH                             */
/* ================================================= */

@supports (padding: max(0px)) {
    .site-header {
        padding-left: max(16px, env(safe-area-inset-left)) !important;
        padding-right: max(16px, env(safe-area-inset-right)) !important;
    }
}

@media (min-width: 1025px) {
    @supports (padding: max(0px)) {
        .site-header {
            padding-left: max(8%, env(safe-area-inset-left)) !important;
            padding-right: max(8%, env(safe-area-inset-right)) !important;
        }
    }
}


/* ================================================= */
/* BACK TO TOP CON INDICATORE - MOBILE              */
/* ================================================= */

@media (max-width: 768px) {
    #progress-container svg {
        width: 48px !important;
        height: 48px !important;
    }

    #progress-container div {
        font-size: 16px !important;
    }

    #progress-container {
        bottom: 20px !important;
        right: 20px !important;
    }
}

@media (max-width: 480px) {
    #progress-container svg {
        width: 42px !important;
        height: 42px !important;
    }

    #progress-container div {
        font-size: 14px !important;
    }

    #progress-container {
        bottom: 15px !important;
        right: 15px !important;
    }
}


/* ================================================= */
/* ============ DARK MODE ========================== */
/* ================================================= */

/* Variabili per il tema chiaro (default) */
:root {
    --bg-primary: #f7f7f5;
    --bg-secondary: #ffffff;
    --bg-card: #fafafa;
    --bg-footer: #202020;
    --text-primary: #202020;
    --text-secondary: #555555;
    --text-light: #888888;
    --text-white: #ffffff;
    --border-color: #e5e5e5;
    --border-light: #e3e3e3;
    --shadow-color: rgba(0, 0, 0, 0.08);
    --hero-bg: #eeeeeb;
    --faq-bg: #f7f7f5;
    --privacy-bg: #f1f1ef;
    --timer-bg: #f7f7f5;
    --preloader-bg: #f7f7f5;
    --badge-bg: #f7f7f5;
    --cookie-bg: #1a1a1a;
    --cookie-text: #dddddd;
    --transition-speed: 0.3s;
}

/* Variabili per il tema scuro */
[data-theme="dark"] {
    --bg-primary: #1a1a1a;
    --bg-secondary: #242424;
    --bg-card: #2a2a2a;
    --bg-footer: #0d0d0d;
    --text-primary: #f0f0f0;
    --text-secondary: #bbbbbb;
    --text-light: #999999;
    --text-white: #ffffff;
    --border-color: #3a3a3a;
    --border-light: #333333;
    --shadow-color: rgba(0, 0, 0, 0.4);
    --hero-bg: #1e1e1e;
    --faq-bg: #1a1a1a;
    --privacy-bg: #161616;
    --timer-bg: #2a2a2a;
    --preloader-bg: #1a1a1a;
    --badge-bg: #2a2a2a;
    --cookie-bg: #0a0a0a;
    --cookie-text: #cccccc;
}

/* Applica le variabili a TUTTI gli elementi */
body {
    background: var(--bg-primary) !important;
    color: var(--text-primary) !important;
    transition: background var(--transition-speed) ease, color var(--transition-speed) ease;
}

.site-header {
    background: var(--bg-secondary) !important;
    border-bottom: 1px solid var(--border-color) !important;
    transition: background var(--transition-speed) ease, border-color var(--transition-speed) ease;
}

.brand-symbol {
    color: var(--text-primary) !important;
    transition: color var(--transition-speed) ease;
}

.brand-symbol path:last-child {
    fill: var(--bg-primary) !important;
    transition: fill var(--transition-speed) ease;
}

.main-nav a {
    color: var(--text-secondary) !important;
}

.main-nav a:hover {
    color: var(--text-primary) !important;
}

.language-selector button {
    background: var(--bg-secondary) !important;
    color: var(--text-secondary) !important;
    border-color: var(--border-color) !important;
}

.language-selector button:hover {
    background: var(--text-primary) !important;
    color: var(--bg-primary) !important;
}

.hero {
    background: var(--hero-bg) !important;
    transition: background var(--transition-speed) ease;
}

.hero-description {
    color: var(--text-secondary) !important;
}

.primary-button {
    background: var(--text-primary) !important;
    color: var(--bg-primary) !important;
}

.primary-button:hover {
    background: var(--text-secondary) !important;
}

.secondary-button {
    border-color: var(--text-primary) !important;
    color: var(--text-primary) !important;
}

.secondary-button:hover {
    background: var(--text-primary) !important;
    color: var(--bg-primary) !important;
}

.about-section,
.services-section,
.difference-section,
.process-section,
.trial-section,
.contact-section,
.privacy-section {
    background: var(--bg-primary) !important;
    transition: background var(--transition-speed) ease;
}

.services-section {
    background: var(--bg-secondary) !important;
}

.service-card {
    background: var(--bg-card) !important;
    border-color: var(--border-light) !important;
}

.service-card:hover {
    border-color: var(--text-light) !important;
    box-shadow: 0 8px 25px var(--shadow-color) !important;
}

.service-card p {
    color: var(--text-secondary) !important;
}

/* ================================================= */
/* CORREZIONE SEZIONE "COSA CI DISTINGUE"           */
/* ================================================= */

/* Tema chiaro - sezione difference */
.difference-section {
    background: #202020 !important;
    color: #ffffff !important;
}

.difference-section .section-label {
    color: #aaaaaa !important;
}

.difference-text p {
    color: #cccccc !important;
}

/* Tema scuro - sezione difference */
[data-theme="dark"] .difference-section {
    background: #1a1a1a !important;
    color: #f0f0f0 !important;
}

[data-theme="dark"] .difference-section .section-label {
    color: #999999 !important;
}

[data-theme="dark"] .difference-text p {
    color: #bbbbbb !important;
}

.process-step {
    border-top-color: var(--border-color) !important;
}

.process-step p {
    color: var(--text-secondary) !important;
}

.trial-section {
    background: var(--hero-bg) !important;
}

.trial-section > p:not(.section-label) {
    color: var(--text-secondary) !important;
}

.contact-section {
    background: var(--bg-secondary) !important;
}

.contact-section > p:not(.section-label) {
    color: var(--text-secondary) !important;
}

.contact-hint {
    color: var(--text-light) !important;
}

.response-timer {
    background: var(--timer-bg) !important;
    border-left-color: var(--text-primary) !important;
}

.response-timer .timer-title {
    color: var(--text-primary) !important;
}

.response-timer .timer-sub {
    color: var(--text-secondary) !important;
}

.badge-section {
    background: var(--bg-secondary) !important;
}

.badge-item {
    background: var(--badge-bg) !important;
    border-color: var(--border-color) !important;
}

.badge-item:hover {
    border-color: var(--text-light) !important;
    box-shadow: 0 8px 25px var(--shadow-color) !important;
}

.badge-item h3 {
    color: var(--text-primary) !important;
}

.badge-item p {
    color: var(--text-secondary) !important;
}

.faq-section {
    background: var(--faq-bg) !important;
}

.faq-item {
    background: var(--bg-secondary) !important;
    border-color: var(--border-color) !important;
}

.faq-item:hover {
    border-color: var(--text-light) !important;
}

.faq-question {
    color: var(--text-primary) !important;
}

.faq-question:hover {
    background: var(--bg-card) !important;
}

.faq-icon {
    color: var(--text-primary) !important;
    background: var(--bg-card) !important;
}

.faq-answer p {
    color: var(--text-secondary) !important;
}

.privacy-section {
    background: var(--privacy-bg) !important;
}

.privacy-section h3 {
    color: var(--text-primary) !important;
}

.privacy-section p {
    color: var(--text-secondary) !important;
}

.site-footer {
    background: var(--bg-footer) !important;
}

.site-footer .footer-tagline {
    color: var(--footer-text, #888888) !important;
}

.footer-links a {
    color: var(--footer-link, #aaaaaa) !important;
}

.footer-links a:hover {
    color: var(--text-white) !important;
}

.footer-social a {
    color: var(--footer-text, #888888) !important;
}

.footer-social a:hover {
    color: var(--text-white) !important;
}

.footer-social .footer-icon-disabled {
    color: var(--footer-text, #888888) !important;
}

.footer-ssl-badge {
    color: var(--text-light) !important;
}

.footer-ssl-secure {
    color: var(--text-secondary) !important;
}

/* ================================================= */
/* BADGE CRITTOGRAFIA E2EE - DARK MODE              */
/* ================================================= */
.footer-e2ee-badge {
    color: var(--text-light) !important;
}

.footer-e2ee-secure {
    color: var(--text-secondary) !important;
}

[data-theme="dark"] .footer-e2ee-badge {
    color: #999999 !important;
}

[data-theme="dark"] .footer-e2ee-secure {
    color: #bbbbbb !important;
}

/* ================================================= */
/* BADGE AFFIDABILE - DARK MODE                     */
/* ================================================= */
.footer-trust-badge {
    color: #22c55e !important;
}

.footer-trust-secure {
    color: var(--text-secondary) !important;
}

[data-theme="dark"] .footer-trust-badge {
    color: #22c55e !important;
}

[data-theme="dark"] .footer-trust-secure {
    color: #bbbbbb !important;
}

[data-theme="dark"] .footer-trust-badge {
    color: #22c55e !important;
}

/* ================================================= */
/* TRUST SEAL - PATTO DI RISERVATEZZA               */
/* ================================================= */

.trust-seal-section {
    padding: 60px 16px;
    background: var(--bg-primary, #f7f7f5);
    transition: background 0.3s ease;
}

.trust-seal-section .section-label {
    color: var(--text-light, #888888);
}

.trust-seal-section h2 {
    color: var(--text-primary, #202020);
    margin-bottom: 30px;
}

.trust-seal-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
    max-width: 100%;
    margin: 0 auto;
}

.trust-seal-item {
    background: var(--bg-secondary, #ffffff);
    border: 1px solid var(--border-color, #e5e5e5);
    border-radius: 10px;
    padding: 24px 20px;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    display: flex;
    align-items: flex-start;
    gap: 14px;
}

.trust-seal-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px var(--shadow-color, rgba(0,0,0,0.06));
    border-color: var(--text-light, #bbbbbb);
}

.trust-seal-icon {
    font-size: 28px;
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-card, #f7f7f5);
    border-radius: 50%;
    border: 1px solid var(--border-color, #e5e5e5);
}

.trust-seal-item h3 {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary, #202020);
    margin-bottom: 4px;
}

.trust-seal-item p {
    font-size: 14px;
    line-height: 1.6;
    color: var(--text-secondary, #555555);
    margin: 0;
}

/* Dark mode - Trust Seal */
[data-theme="dark"] .trust-seal-item {
    background: var(--bg-secondary, #242424);
    border-color: var(--border-color, #3a3a3a);
}

[data-theme="dark"] .trust-seal-item:hover {
    border-color: var(--text-light, #888888);
}

[data-theme="dark"] .trust-seal-icon {
    background: var(--bg-card, #2a2a2a);
    border-color: var(--border-color, #3a3a3a);
}

[data-theme="dark"] .trust-seal-item h3 {
    color: var(--text-primary, #f0f0f0);
}

[data-theme="dark"] .trust-seal-item p {
    color: var(--text-secondary, #bbbbbb);
}

/* ================================================= */
/* TRUST SEAL - TABLET E DESKTOP                     */
/* ================================================= */

@media (min-width: 600px) {
    .trust-seal-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .trust-seal-section {
        padding: 80px 5%;
    }
}

@media (min-width: 1025px) {
    .trust-seal-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 25px;
        max-width: 1100px;
    }
    
    .trust-seal-section {
        padding: 100px 8%;
    }
    
    .trust-seal-item {
        padding: 30px 25px;
    }
    
    .trust-seal-item h3 {
        font-size: 18px;
    }
    
    .trust-seal-item p {
        font-size: 15px;
    }
}

#preloader {
    background: var(--preloader-bg) !important;
}

#preloader p {
    color: var(--text-primary) !important;
}

#preloader-bar {
    background: var(--text-primary) !important;
}

#progress-container circle:first-child {
    stroke: var(--border-color) !important;
}

#progress-container circle:last-child {
    stroke: var(--text-primary) !important;
}

#progress-container div {
    color: var(--text-primary) !important;
}

/* Cookie banner in dark mode */
#cookie-banner {
    background: var(--cookie-bg) !important;
    color: var(--cookie-text) !important;
}

#cookie-banner p {
    color: var(--cookie-text) !important;
}

#cookie-banner span {
    color: var(--cookie-text) !important;
}

#cookie-banner a {
    color: #ffffff !important;
}

#cookie-banner a:hover {
    color: #cccccc !important;
}

#cookie-banner button {
    background: #ffffff !important;
    color: #1a1a1a !important;
}

#cookie-banner button:hover {
    background: #e0e0e0 !important;
    color: #1a1a1a !important;
}

/* Privacy page */
.privacy-page h1,
.privacy-page h2 {
    color: var(--text-primary) !important;
}

.privacy-page p {
    color: var(--text-secondary) !important;
}

.privacy-page li {
    color: var(--text-secondary) !important;
}

.privacy-page a {
    color: var(--text-primary) !important;
}

.privacy-update {
    color: var(--text-light) !important;
}

/* Scrollbar in dark mode */
[data-theme="dark"] ::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

[data-theme="dark"] ::-webkit-scrollbar-track {
    background: #1a1a1a;
}

[data-theme="dark"] ::-webkit-scrollbar-thumb {
    background: #444444;
    border-radius: 5px;
}

[data-theme="dark"] ::-webkit-scrollbar-thumb:hover {
    background: #666666;
}

/* Dark Mode Toggle - Stili aggiuntivi */
#darkModeToggle {
    background: var(--bg-secondary, #ffffff) !important;
    border: 1px solid var(--border-color, #cccccc) !important;
    border-radius: 30px !important;
    padding: 6px 12px !important;
    cursor: pointer !important;
    display: flex !important;
    align-items: center !important;
    gap: 6px !important;
    transition: all 0.3s ease !important;
    font-size: 13px !important;
    color: var(--text-primary, #202020) !important;
    min-width: 60px !important;
    justify-content: center !important;
    touch-action: manipulation !important;
    -webkit-tap-highlight-color: transparent !important;
}

#darkModeToggle:hover {
    border-color: var(--text-primary, #202020) !important;
}

#darkModeToggle:active {
    transform: scale(0.95) !important;
}

#darkModeIcon {
    font-size: 16px !important;
    line-height: 1 !important;
    transition: transform 0.3s ease !important;
}

#darkModeToggle:hover #darkModeIcon {
    transform: rotate(20deg) !important;
}

#darkModeLabel {
    font-size: 10px !important;
    font-weight: 600 !important;
    letter-spacing: 0.5px !important;
    text-transform: uppercase !important;
}

@media (max-width: 768px) {
    #darkModeToggle {
        padding: 5px 10px !important;
        min-width: 50px !important;
    }
    
    #darkModeIcon {
        font-size: 14px !important;
    }
    
    #darkModeLabel {
        font-size: 9px !important;
    }
}

@media (max-width: 480px) {
    #darkModeToggle {
        padding: 4px 8px !important;
        min-width: 44px !important;
    }
    
    #darkModeIcon {
        font-size: 12px !important;
    }
    
    #darkModeLabel {
        font-size: 8px !important;
    }
}

/* ================================================= */
/* TIMER DI RISPOSTA - DARK MODE DEFINITIVO         */
/* ================================================= */

/* Tema chiaro - timer */
.response-timer {
    background: #f7f7f5 !important;
    border-left-color: #202020 !important;
}

.response-timer .timer-title {
    color: #202020 !important;
}

.response-timer .timer-sub {
    color: #666666 !important;
}

.response-timer .status-text {
    color: #22c55e !important;
}

/* Tema scuro - timer */
[data-theme="dark"] .response-timer {
    background: #2a2a2a !important;
    border-left-color: #ffffff !important;
}

[data-theme="dark"] .response-timer .timer-title {
    color: #ffffff !important;
}

[data-theme="dark"] .response-timer .timer-sub {
    color: #cccccc !important;
}

[data-theme="dark"] .response-timer .status-text {
    color: #22c55e !important;
}

[data-theme="dark"] .response-timer .timer-icon {
    color: #ffffff !important;
}

[data-theme="dark"] .response-timer p:first-of-type {
    color: #ffffff !important;
}

[data-theme="dark"] .response-timer p {
    color: #cccccc !important;
}