/* ==========================================================
   STILE GENERALE
   ========================================================== */

   body {
    margin: 0;
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background: linear-gradient(to bottom, #fff, #f0f0f0);
    text-align: center;
    padding: 20px;
    overflow-x: hidden; /* Previene lo scrolling orizzontale */
}

/* ==========================================================
   STILE PER H1 E H2
   ========================================================== */

/* Stile per H1 */
h1 {
    font-size: 5.5rem; /* Desktop */
    font-weight: 700;
    color: #333;
    margin: 0 0 10px;
    text-align: center;
}

/* Testo normale di H1 */
#h1-text-normal {
    color: #333;
    font-weight: 700;
}

/* Testo evidenziato di H1 con gradient */
#h1-text-span {
    background: linear-gradient(to right, #e11d48, #fef9c3);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 700;
}

/* Stile per H2 */
h2 {
    font-size: 1.8rem; /* Desktop */
    font-weight: 400;
    color: #666;
    margin: 10px 0;
    text-align: center;
}

/* ==========================================================
   STILE SPECIFICO PER LINK E IFRAME
   ========================================================== */

/* Contenitore per iframe */
.iframe-container {
    display: flex;
    justify-content: center;
    margin: 50px 0; /* Maggiore spazio sopra e sotto */
}

iframe {
    border: 1px solid #EEE;
    background: white;
    width: 100%;
    max-width: 480px;
    height: auto;
    aspect-ratio: 3 / 2;
}

/* Contenitore per il link */
.link-container {
    display: flex;
    justify-content: center;
    margin: 30px 0;
}

.archive-link {
    font-size: 1.8rem;
    color: #666;
    text-decoration: underline;
    font-weight: 400;
    transition: color 0.3s ease, text-decoration 0.3s ease;
}

.archive-link:hover {
    color: #e11d48;
    text-decoration: none;
}

/* ==========================================================
   STILE SPECIFICO PER LE SEZIONI
   ========================================================== */

/* Contenitore generale per le sezioni */
.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    text-align: center;
}

/* Titoli delle sezioni */
.section-title {
    font-size: 2.6rem;
    font-weight: 700;
    color: #333;
    text-align: center;
    margin-bottom: 20px;
}

/* Paragrafi delle sezioni */
.section-content p {
    font-size: 1.4rem;
    font-weight: 400; /* Ridotto il peso del font */
    line-height: 1.8;
    color: #444;
    margin-bottom: 16px;
    text-align: left; /* Allineato a sinistra */
}

/* ==========================================================
   SEZIONE UNIFICATA
   ========================================================== */

.unified-section {
    padding-top: 80px;
    padding-bottom: 80px;
}

.unified-section .section-content {
    margin-top: 40px;
}

/* ==========================================================
   STILE PER LA PAGINA 404
   ========================================================== */

.container-404 {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100vh;
    text-align: center;
}

.container-404 h1 span {
    background: linear-gradient(to right, #e11d48, #fef9c3);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.container-404 h2 {
    font-size: 1.8rem;
    color: #666;
    margin: 20px 0;
}

.container-404 p {
    font-size: 1.2rem;
    color: #444;
}

.container-404 a.home-link {
    color: #e11d48;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.container-404 a.home-link:hover {
    color: #fef9c3;
}

/* ==========================================================
   RESPONSIVITÀ: TABLET E SMARTPHONE
   ========================================================== */

/* Media query per tablet */
@media (max-width: 768px) {
    h1 {
        font-size: 3.5rem;
    }
    h2 {
        font-size: 1.5rem;
    }
    .section-title {
        font-size: 2.2rem;
    }
    .section-content p {
        font-size: 1.3rem;
    }
    .archive-link {
        font-size: 1.4rem;
    }
}

/* Media query per smartphone */
@media (max-width: 480px) {
    h1 {
        font-size: 3rem;
    }
    h2 {
        font-size: 1.2rem;
    }
    .section-title {
        font-size: 1.8rem;
    }
    .section-content p {
        font-size: 1.2rem;
    }
    .archive-link {
        font-size: 1.2rem;
    }
}

/* ==========================================================
   STILE PER IL FOOTER
   ========================================================== */

   .footer {
    padding: 20px 0;
    text-align: center;
}

.footer-text {
    font-size: 1.2rem;
    color: #666;
    margin: 0;
    line-height: 1.5;
}

.footer-link {
    color: #666;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-link:hover {
    color: #c2185b;
}

/* ==========================================================
   STILE PER LA PAGINA CREDITS
   ========================================================== */

.credits-container {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    min-height: 100vh;
    background: linear-gradient(to bottom, #fff, #f0f0f0); /* Stesso background */
    padding: 20px;
}

.credits-content h1 {
    font-size: 2.4rem;
    font-weight: bold;
    color: #333;
    margin-bottom: 20px;
}

.credits-content p {
    font-size: 1.4rem;
    color: #444;
    margin: 10px 0;
}

.credits-link {
    color: #e11d48;
    text-decoration: none;
    transition: color 0.3s ease;
}

.credits-link:hover {
    color: #c2185b;
}

.credits-button {
    margin-top: 20px;
    padding: 10px 20px;
    font-size: 1.2rem;
    color: #fff;
    background-color: #e11d48;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.credits-button:hover {
    background-color: #c2185b;
}
/* ==========================================================
   LEADMAGNET SLIDES FINECO
   ========================================================== */

.leadmagnet-body {
    width: 100%;
    min-height: 100vh;
    background:
        radial-gradient(circle at 15% 20%, rgba(225, 29, 72, 0.15), transparent 30%),
        radial-gradient(circle at 85% 15%, rgba(251, 191, 36, 0.18), transparent 35%),
        linear-gradient(160deg, #fff 0%, #f9fafb 55%, #f3f4f6 100%);
}

.leadmagnet-wrap {
    width: 100%;
    max-width: 860px;
    padding: 48px 20px;
}

.leadmagnet-card {
    background: #ffffff;
    border: 1px solid #ececec;
    border-radius: 24px;
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.08);
    padding: 40px 28px;
    text-align: left;
}

.leadmagnet-kicker {
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 0.85rem;
    color: #be123c;
    font-weight: 700;
}

.leadmagnet-title {
    margin: 10px 0 18px;
    line-height: 1.08;
    font-size: 2.2rem;
    text-align: left;
}

.leadmagnet-description {
    font-size: 1.1rem;
    color: #374151;
    line-height: 1.7;
    margin-bottom: 28px;
}

.leadmagnet-form {
    display: grid;
    gap: 12px;
}

.leadmagnet-form label {
    font-size: 0.95rem;
    font-weight: 600;
    color: #111827;
}

.leadmagnet-form input {
    border: 1px solid #d1d5db;
    border-radius: 10px;
    padding: 12px 14px;
    font-size: 1rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.leadmagnet-form input:focus {
    outline: none;
    border-color: #e11d48;
    box-shadow: 0 0 0 3px rgba(225, 29, 72, 0.17);
}

.leadmagnet-note {
    margin: 10px 0 0;
    font-size: 0.92rem;
    line-height: 1.5;
    color: #4b5563;
}

.leadmagnet-cta {
    display: inline-block;
    margin-top: 8px;
    background: #111827;
    color: #fff;
    border: 0;
    border-radius: 12px;
    padding: 14px 18px;
    font-size: 1rem;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    text-align: center;
    transition: transform 0.2s ease, background-color 0.2s ease;
}

.leadmagnet-cta:hover {
    background: #1f2937;
    transform: translateY(-1px);
}

.leadmagnet-small {
    margin: 16px 0 0;
    color: #6b7280;
    font-size: 0.9rem;
}

@media (max-width: 640px) {
    .leadmagnet-card {
        border-radius: 18px;
        padding: 28px 18px;
    }

    .leadmagnet-title {
        font-size: 1.7rem;
    }

    .leadmagnet-description {
        font-size: 1rem;
    }
}
