body.no-scroll {
    overflow: hidden;
}

/* Solo per la landing */
.landing-hero {
    min-height: 80vh; /* invece di 100vh */
}

.landing-section {
    padding: 70px 20px;
    background: #ffffff;
    text-align: center;
}

.landing-title {
    font-size: 30px;
    font-weight: 700;
    margin-bottom: 15px;
	margin-top: -20px;

}

.landing-subtitle {
    font-size: 16px;
    color: #666;
    max-width: 650px;
    margin: 0 auto 40px auto;
}

.landing-columns {
    display: flex;
    gap: 25px;
    justify-content: center;
    flex-wrap: wrap;
}

.landing-card {
    background: #fff;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0px 4px 12px rgba(0,0,0,0.08);
	flex: 1;
    min-width: 260px;
max-width: 400px;

    transition: transform .2s, box-shadow .2s;
}
.landing-card:hover {
    transform: translateY(-4px);
    box-shadow: 0px 6px 16px rgba(0,0,0,0.15);
}

.landing-card h3 {
    font-size: 20px;
    margin-bottom: 10px;
    color: #1877f2;
}

.landing-card p {
    font-size: 14px;
    line-height: 1.5;
    color: #444;
}
.hero-overlay {
    background: rgba(0,0,0,0.45);
}

/* ================================
   SEZIONE 2 – SFONDO CON IMMAGINE
================================ */

.landing-section-bg {
    position: relative;
    padding: 120px 20px;
    text-align: center;
    color: white;

    background: url('images/auth_bg.jpg') center/cover no-repeat;
    /* usa la stessa hero del login */
}

.landing-section-bg::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.48);
    backdrop-filter: blur(2px);
}

.landing-section-bg-inner {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: auto;
}

.landing-section-bg h2 {
    font-size: 36px;
    margin-bottom: 15px;
}

.landing-section-bg-subtitle {
    font-size: 18px;
    line-height: 1.6;
    max-width: 650px;
    margin: 0 auto 25px auto;
    opacity: 0.95;
}

.landing-bg-btn {
    display: inline-block;
    padding: 14px 32px;
    background: #42b72a;
    color: white;
    font-size: 18px;
    font-weight: 600;
    border-radius: 8px;
    text-decoration: none;
    transition: background .2s ease;
}

.landing-bg-btn:hover {
    background: #36a420;
}

/* ================================
   SEZIONE FEATURES CON SFONDO
================================ */

.landing-feature-bg {
    position: relative;
    background: url("images/auth_bg.jpg") center/cover no-repeat;
    padding: 100px 20px;
    /*margin-top: 40px;*/
}

.landing-feature-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.45);
    z-index: 1;
}

.landing-feature-inner {
    position: relative;
    z-index: 2;
    max-width: 1100px;
    margin: 0 auto;
    text-align: center;
}

.landing-title-white {
    color: white;
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 10px;
}

.landing-subtitle-white {
    color: #f0f0f0;
    font-size: 17px;
    max-width: 650px;
    margin: 0 auto 40px auto;
}

.landing-features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 25px;
}

.feature-item {
    background: rgba(255,255,255,0.95);
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.3);
    text-align: left;
    transition: .2s ease;
}

.feature-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 18px rgba(0,0,0,0.45);
}

.feature-item h3 {
    color: #1877f2;
    margin-bottom: 8px;
}

.feature-item p {
    color: #333;
    font-size: 14px;
    line-height: 1.5;
}

.landing-footer {
    background: #111;
    color: #eee;
    padding: 6px 20px;
    /*margin-top: 60px;*/
}

.landing-footer-inner {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.landing-footer-left {
    font-size: 14px;
}

.landing-footer-links a {
    color: #ccc;
    margin-left: 20px;
    text-decoration: none;
    font-size: 14px;
}

.landing-footer-links a:hover {
    color: #fff;
}

.doc-modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.65);
    backdrop-filter: blur(3px);
    z-index: 9999;
    justify-content: center;
    align-items: center;
}




/* IL CONTENITORE BIANCO */
.doc-modal-content {
    background: white;
    width: 90%;
    max-width: 900px;
    
    /* Questo definisce l'altezza massima del box bianco */
    max-height: 85vh; 
    
    border-radius: 14px;
    padding: 0;
    position: relative;
    
    /* FONDAMENTALE: visible per far uscire la X, flex per gestire l'altezza interna */
    overflow: visible; 
    display: flex;
    flex-direction: column;
    
    box-shadow: 0 4px 20px rgba(0,0,0,0.25);
}

/* LA X DI CHIUSURA (Sovrapposta per 1/4) */
.doc-modal-close {
    position: absolute;
    /* Coordinate negative: tira fuori il bottone */
    top: -12px;    
    right: -12px;
    
    width: 34px;
    height: 34px;
    border-radius: 50%;
    
    /* Stile colori */
    background: white;  /* Sfondo nero come nell'esempio 'Saved' */
    color: black;       /* X bianca */
    border: 2px solid white; /* Bordo bianco per staccare */
    
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10001;
    font-size: 20px;
    padding: 0;
    line-height: 1;
    box-shadow: 0 2px 5px rgba(0,0,0,0.3);
}

/* L'AREA DI SCROLL (Contenuto) */
.doc-modal-scroll {
    /* Rimuovi max-height fissa, lascia che flex occupi lo spazio disponibile */
    flex: 1; 
    overflow-y: auto;
    
    /* Margine interno: siccome usiamo flex, questo spazio viene sottratto correttamente */
    margin: 30px; 
    
    /* Fix visivo per Chrome/Safari: arrotonda la scrollbar se tocca i bordi */
    border-radius: 4px; 
}

.doc-modal-close:hover {
    background: black;
	color: white;
}


.doc-modal-scroll .privacy-content {
    border-radius: 0 !important;
    box-shadow: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

@keyframes fadeInScale {
    from { opacity: 0; transform: scale(0.93); }
    to   { opacity: 1; transform: scale(1); }
}

/* --- Stile per contenuti caricati nel modale (privacy, terms, cookies, rules) --- */

.doc-modal-content .privacy-content {
    max-width: 900px;
    margin: 0 auto;
    background: white;
    padding: 40px 30px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}

.doc-modal-content .privacy-content h2 {
    margin-top: 35px;
    font-size: 26px;
    color: #1877f2;
}

.doc-modal-content .privacy-content p,
.doc-modal-content .privacy-content li {
    font-size: 16px;
    line-height: 1.6;
    color: #333;
}

.doc-modal-content .privacy-content ul {
    margin-top: 10px;
    padding-left: 22px;
}

@media (max-width: 700px) {
    .landing-footer-inner {
        flex-direction: column;
        gap: 10px;
    }

    .landing-footer-links a {
        margin-left: 10px;
        margin-right: 10px;
    }
}