/* ===================================================
   DIGITAL SMANETTONE — Stylesheet principale
   Palette: Charcoal #1a1a1a / Arancione ruggine #E65100 / Crema #F8F9FA
   Font: Montserrat (titoli) + DM Sans (corpo)
=================================================== */

:root {
    --dark: #1a1a1a;
    --dark-soft: #2a2a2a;
    --accent: #E65100;
    --accent-dark: #c44400;
    --light: #F8F9FA;
    --cream: #F5F2EA;
    --text: #333333;
    --text-soft: #5a5a5a;
    --white: #ffffff;
    --border: #e5e5e5;
    --radius: 12px;
    --shadow: 0 8px 30px rgba(0,0,0,0.08);
    --shadow-lg: 0 20px 50px rgba(0,0,0,0.12);
    --max-width: 1200px;
    --transition: all 0.3s ease;
}

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

html { scroll-behavior: smooth; }

body {
    font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--text);
    line-height: 1.7;
    background: var(--light);
    overflow-x: hidden;
}

h1, h2, h3, h4 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
    line-height: 1.2;
    color: var(--dark);
}

a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
}

/* ============ HEADER ============ */
.header {
    position: fixed;
    top: 0; left: 0; right: 0;
    background: rgba(248,249,250,0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid var(--border);
    transition: var(--transition);
}
.header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 76px;
}
.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}
.logo img { height: 46px; width: auto; }
.logo-text {
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
    font-size: 1.15rem;
    line-height: 1.05;
    color: var(--dark);
    letter-spacing: -0.5px;
}
.logo-text span { color: var(--accent); display: block; }

.nav {
    display: flex;
    align-items: center;
    gap: 32px;
}
.nav a {
    font-weight: 500;
    font-size: 0.98rem;
    color: var(--text);
    transition: var(--transition);
}
.nav a:hover { color: var(--accent); }

.btn {
    display: inline-block;
    background: var(--accent);
    color: var(--white) !important;
    padding: 13px 28px;
    border-radius: 50px;
    font-weight: 700;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.95rem;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 4px 14px rgba(230,81,0,0.3);
}
.btn:hover {
    background: var(--accent-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 22px rgba(230,81,0,0.4);
}
.btn-dark {
    background: var(--dark);
    box-shadow: 0 4px 14px rgba(0,0,0,0.2);
}
.btn-dark:hover { background: var(--dark-soft); }
.btn-lg { padding: 16px 38px; font-size: 1.05rem; }
.btn-outline {
    background: transparent;
    color: var(--accent) !important;
    border: 2px solid var(--accent);
    box-shadow: none;
}
.btn-outline:hover { background: var(--accent); color: var(--white) !important; }

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
}
.menu-toggle span {
    width: 26px; height: 3px;
    background: var(--dark);
    border-radius: 3px;
    transition: var(--transition);
}

/* ============ HERO ============ */
.hero {
    padding: 150px 0 90px;
    background: linear-gradient(135deg, #ffffff 0%, var(--cream) 100%);
    position: relative;
    overflow: hidden;
}
.hero-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 50px;
    align-items: center;
}
.hero-overline {
    color: var(--accent);
    font-weight: 700;
    font-size: 0.9rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 18px;
    font-family: 'Montserrat', sans-serif;
}
.hero h1 {
    font-size: 3.3rem;
    margin-bottom: 22px;
    letter-spacing: -1px;
}
.hero h1 .hl { color: var(--accent); }
.hero p.lead {
    font-size: 1.2rem;
    color: var(--text-soft);
    margin-bottom: 32px;
    max-width: 540px;
}
.hero-img img {
    border-radius: var(--radius);
    width: 100%;
}

/* ============ FORM CARD ============ */
.form-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 32px;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border);
    max-width: 480px;
}
.form-card h3 {
    font-size: 1.4rem;
    margin-bottom: 8px;
}
.form-card p.sub {
    color: var(--text-soft);
    font-size: 0.95rem;
    margin-bottom: 20px;
}
.form-group { margin-bottom: 14px; }
.form-group input {
    width: 100%;
    padding: 14px 16px;
    border: 1.5px solid var(--border);
    border-radius: 8px;
    font-size: 1rem;
    font-family: 'DM Sans', sans-serif;
    transition: var(--transition);
}
.form-group input:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(230,81,0,0.1);
}
.form-card .btn { width: 100%; margin-top: 6px; }
.form-note {
    font-size: 0.82rem;
    color: var(--text-soft);
    text-align: center;
    margin-top: 14px;
}
.form-mockup {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 22px;
    padding-bottom: 22px;
    border-bottom: 1px solid var(--border);
}
.form-mockup img { width: 110px; border-radius: 6px; box-shadow: var(--shadow); }
.form-mockup div h4 { font-size: 1.05rem; margin-bottom: 4px; }
.form-mockup div p { font-size: 0.85rem; color: var(--text-soft); }

/* ============ SECTIONS ============ */
section { padding: 90px 0; }
.section-head {
    text-align: center;
    max-width: 720px;
    margin: 0 auto 56px;
}
.section-head .overline {
    color: var(--accent);
    font-weight: 700;
    font-size: 0.85rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    font-family: 'Montserrat', sans-serif;
}
.section-head h2 {
    font-size: 2.5rem;
    margin: 12px 0 18px;
    letter-spacing: -0.5px;
}
.section-head p { font-size: 1.12rem; color: var(--text-soft); }

/* ============ DOLORE (dark) ============ */
.dolore {
    background: var(--dark);
    color: var(--light);
}
.dolore h2 { color: var(--white); }
.dolore .section-head p { color: rgba(255,255,255,0.7); }
.pain-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    max-width: 900px;
    margin: 0 auto 40px;
}
.pain-item {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    background: rgba(255,255,255,0.04);
    padding: 24px;
    border-radius: var(--radius);
    border: 1px solid rgba(255,255,255,0.08);
}
.pain-item .x {
    color: var(--accent);
    font-size: 1.5rem;
    font-weight: 800;
    flex-shrink: 0;
    line-height: 1.2;
}
.pain-item p { color: rgba(255,255,255,0.88); margin: 0; }
.dolore .closing {
    max-width: 760px;
    margin: 0 auto;
    text-align: center;
    font-size: 1.2rem;
    color: rgba(255,255,255,0.92);
    font-style: italic;
    line-height: 1.6;
}

/* ============ LEGGI CARDS ============ */
.laws-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}
.law-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 34px 28px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}
.law-card::before {
    content: "";
    position: absolute;
    top: 0; left: 0;
    width: 5px; height: 100%;
    background: var(--accent);
    transform: scaleY(0);
    transform-origin: top;
    transition: var(--transition);
}
.law-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
}
.law-card:hover::before { transform: scaleY(1); }
.law-num {
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
    font-size: 0.85rem;
    color: var(--accent);
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 12px;
}
.law-card h3 { font-size: 1.3rem; margin-bottom: 12px; }
.law-card p { color: var(--text-soft); font-size: 0.98rem; }

.center-cta { text-align: center; margin-top: 50px; }

/* ============ CHI SONO ============ */
.about { background: var(--cream); }
.about-grid {
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    gap: 56px;
    align-items: center;
}
.about-img img {
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    width: 100%;
}
.about-content h2 { font-size: 2.3rem; margin-bottom: 20px; }
.about-content p { margin-bottom: 18px; color: var(--text-soft); font-size: 1.05rem; }
.about-content .signature {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    color: var(--dark);
    font-style: normal;
}
.projects-tags {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 24px;
}
.projects-tags span {
    background: var(--white);
    border: 1px solid var(--border);
    padding: 8px 18px;
    border-radius: 50px;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--dark);
}

/* ============ METODO / VALUE LADDER ============ */
.method { background: var(--white); }
.ladder {
    max-width: 820px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.ladder-step {
    display: flex;
    align-items: center;
    gap: 24px;
    background: var(--light);
    border-radius: var(--radius);
    padding: 24px 28px;
    border: 1px solid var(--border);
    transition: var(--transition);
}
.ladder-step:hover { border-color: var(--accent); transform: translateX(8px); }
.ladder-step .step-icon {
    width: 54px; height: 54px;
    background: var(--accent);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
}
.ladder-step.free .step-icon { background: var(--dark); }
.ladder-step .step-body { flex: 1; }
.ladder-step h4 { font-size: 1.15rem; margin-bottom: 4px; }
.ladder-step p { color: var(--text-soft); font-size: 0.95rem; margin: 0; }
.ladder-step .price {
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
    color: var(--accent);
    font-size: 1.1rem;
    white-space: nowrap;
}
.ladder-step.free .price { color: var(--dark); }

/* ============ CTA BAND ============ */
.cta-band {
    background: linear-gradient(135deg, var(--dark) 0%, #2d2d2d 100%);
    color: var(--white);
    text-align: center;
}
.cta-band h2 { color: var(--white); font-size: 2.4rem; margin-bottom: 18px; }
.cta-band p { color: rgba(255,255,255,0.8); font-size: 1.15rem; margin-bottom: 32px; max-width: 600px; margin-left: auto; margin-right: auto; }

/* ============ FOOTER ============ */
.footer {
    background: var(--dark);
    color: rgba(255,255,255,0.7);
    padding: 60px 0 30px;
}
.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}
.footer .logo-text { color: var(--white); }
.footer h5 {
    color: var(--white);
    font-family: 'Montserrat', sans-serif;
    font-size: 1rem;
    margin-bottom: 16px;
}
.footer ul { list-style: none; }
.footer ul li { margin-bottom: 10px; }
.footer ul li a { font-size: 0.95rem; transition: var(--transition); }
.footer ul li a:hover { color: var(--accent); }
.footer-about p { font-size: 0.95rem; margin-top: 16px; max-width: 320px; }
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 24px;
    text-align: center;
    font-size: 0.85rem;
    color: rgba(255,255,255,0.5);
}
.footer-bottom a { color: rgba(255,255,255,0.7); }
.footer-bottom a:hover { color: var(--accent); }

/* ============ LANDING (12 Leggi) ============ */
.landing-hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, #ffffff 0%, var(--cream) 100%);
    padding: 100px 0 60px;
}
.landing-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 56px;
    align-items: center;
}
.landing-content h1 { font-size: 2.9rem; margin-bottom: 18px; letter-spacing: -1px; }
.landing-content h1 .hl { color: var(--accent); }
.landing-content .lead { font-size: 1.15rem; color: var(--text-soft); margin-bottom: 28px; }
.check-list { list-style: none; margin-bottom: 10px; }
.check-list li {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    margin-bottom: 16px;
    font-size: 1.02rem;
}
.check-list li .check {
    color: var(--accent);
    font-weight: 800;
    font-size: 1.2rem;
    flex-shrink: 0;
}

/* ============ GRAZIE ============ */
.thanks {
    min-height: 100vh;
    display: flex;
    align-items: center;
    text-align: center;
    background: linear-gradient(135deg, #ffffff 0%, var(--cream) 100%);
    padding: 120px 0 60px;
}
.thanks-box {
    max-width: 640px;
    margin: 0 auto;
}
.thanks-icon {
    width: 90px; height: 90px;
    background: var(--accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 30px;
    font-size: 2.6rem;
    color: var(--white);
}
.thanks h1 { font-size: 2.6rem; margin-bottom: 16px; }
.thanks .lead { font-size: 1.2rem; color: var(--text-soft); margin-bottom: 28px; }
.thanks-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 32px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    margin-bottom: 30px;
    text-align: left;
}
.thanks-card h4 { color: var(--accent); margin-bottom: 10px; }
.thanks-card p { color: var(--text-soft); margin-bottom: 0; }
.download-direct {
    background: rgba(230,81,0,0.06);
    border: 1px dashed var(--accent);
    border-radius: var(--radius);
    padding: 24px;
    margin-bottom: 30px;
}

/* ============ ANIMATIONS ============ */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}
.fade-in.visible { opacity: 1; transform: translateY(0); }

/* ============ RESPONSIVE ============ */
@media (max-width: 960px) {
    .hero-grid, .landing-grid, .about-grid, .footer-grid { grid-template-columns: 1fr; }
    .hero h1 { font-size: 2.6rem; }
    .laws-grid { grid-template-columns: 1fr; }
    .pain-grid { grid-template-columns: 1fr; }
    .about-img { max-width: 380px; margin: 0 auto; }
    .footer-grid { gap: 30px; }
    .hero-img { order: -1; max-width: 480px; margin: 0 auto; }
}

@media (max-width: 720px) {
    .nav {
        position: fixed;
        top: 76px; left: 0; right: 0;
        background: var(--light);
        flex-direction: column;
        align-items: stretch;
        padding: 20px 24px;
        gap: 8px;
        border-bottom: 1px solid var(--border);
        transform: translateY(-150%);
        transition: var(--transition);
        box-shadow: var(--shadow);
    }
    .nav.open { transform: translateY(0); }
    .nav a { padding: 10px 0; }
    .menu-toggle { display: flex; }
    .hero { padding: 120px 0 60px; }
    .hero h1, .landing-content h1 { font-size: 2.2rem; }
    .section-head h2, .cta-band h2 { font-size: 1.9rem; }
    section { padding: 60px 0; }
    .ladder-step { flex-direction: column; text-align: center; gap: 14px; }
    .ladder-step:hover { transform: none; }
    .form-mockup { flex-direction: column; text-align: center; }
}
