/* FPS Verify - Stili pagina Home (landing) */

* { box-sizing: border-box; }
body { font-family: Arial, sans-serif; background-color: #f4f6f9; margin: 0; padding: 0; color: #333; }

/* Header & Nav */
header { background: #fff; box-shadow: 0 2px 4px rgba(0,0,0,0.05); position: sticky; top: 0; z-index: 100; }
.nav { max-width: 1200px; margin: 0 auto; padding: 15px 20px; display: flex; align-items: center; justify-content: space-between; position: relative; }
.nav .logo { display: flex; align-items: center; gap: 10px; font-weight: bold; font-size: 20px; color: #111; z-index: 102; }
.nav .logo img { height: 35px; width: auto; display: block; }
.nav .logo span { color: #007bff; }

.menu-btn, #menu-toggle { display: none; }

.nav-links { display: flex; align-items: center; gap: 10px; }
.nav-links a { text-decoration: none; font-size: 14px; font-weight: bold; padding: 10px 18px; border-radius: 4px; text-align: center; }
.nav-links .link-login { color: #007bff; }
.nav-links .link-login:hover { background: #f0f6ff; }
.nav-links .link-reg { background: #007bff; color: #fff; }
.nav-links .link-reg:hover { background: #0056b3; }

/* Hero */
.hero { max-width: 1200px; margin: 0 auto; padding: 60px 20px 50px; text-align: center; }
.hero h1 { font-size: 32px; color: #111; margin-bottom: 15px; line-height: 1.3; }
.hero h1 span { color: #007bff; }
.hero p { font-size: 16px; color: #555; max-width: 650px; margin: 0 auto 30px; line-height: 1.6; }
.hero-buttons { display: flex; flex-direction: column; gap: 12px; align-items: center; }
.btn-hero { display: inline-block; padding: 14px 32px; border-radius: 4px; text-decoration: none; font-weight: bold; font-size: 15px; width: 100%; max-width: 260px; text-align: center; }
.btn-hero-primary { background: #007bff; color: #fff; }
.btn-hero-primary:hover { background: #0056b3; }
.btn-hero-secondary { background: #fff; color: #007bff; border: 1px solid #007bff; }
.btn-hero-secondary:hover { background: #f0f6ff; }

/* Sezione ruoli */
.section { max-width: 1200px; margin: 0 auto; padding: 40px 20px; }
.section-title { text-align: center; margin-bottom: 35px; }
.section-title h2 { font-size: 24px; color: #111; margin-bottom: 8px; }
.section-title p { color: #666; font-size: 15px; }

.grid { display: grid; grid-template-columns: 1fr; gap: 20px; }
.card { background: #fff; padding: 24px; border-radius: 8px; box-shadow: 0 4px 6px rgba(0,0,0,0.05); border-top: 4px solid #007bff; }
.card .icon { font-size: 28px; margin-bottom: 12px; }
.card h3 { margin: 0 0 10px; color: #222; font-size: 17px; }
.card p { margin: 0; color: #555; font-size: 14px; line-height: 1.5; }

.card.role { border-top-color: #007bff; text-align: center; }
.card.role .badge { display: inline-block; background: #bbe7ff; color: #007bff; font-size: 12px; font-weight: bold; text-transform: uppercase; padding: 4px 10px; border-radius: 4px; margin-bottom: 12px; }

.steps { counter-reset: step; }
.step { display: flex; gap: 15px; align-items: flex-start; margin-bottom: 22px; }
.step .num { flex-shrink: 0; width: 34px; height: 34px; background: #007bff; color: #fff; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: bold; }
.step .txt h4 { margin: 0 0 4px; font-size: 15px; color: #222; }
.step .txt p { margin: 0; font-size: 14px; color: #666; line-height: 1.5; }

/* CTA finale */
.cta-final { background: #007bff; color: #fff; text-align: center; padding: 50px 20px; }
.cta-final h2 { margin: 0 0 12px; font-size: 24px; }
.cta-final p { margin: 0 0 25px; opacity: 0.9; font-size: 15px; }
.cta-final a { display: inline-block; background: #fff; color: #007bff; padding: 14px 32px; border-radius: 4px; text-decoration: none; font-weight: bold; }
.cta-final a:hover { background: #f0f6ff; }

footer.footer-compliance { text-align: center; padding: 25px 20px; border-top: 1px solid #dee2e6; background: #fff; }
footer.footer-compliance a { color: #6c757d; text-decoration: none; font-size: 13px; }
footer.footer-compliance a:hover { text-decoration: underline; }
footer.footer-compliance .copy { display: block; margin-bottom: 8px; font-size: 12px; color: #999; }

/* Sezione Prezzi — trattata come un "certificato": codici documento in monospace,
   timbro tratteggiato sul piano consigliato e linea di strappo tra intestazione e voci,
   in coerenza con il linguaggio "tracciate, firmate e verificabili" della hero. */
.section-prezzi { background: #fff; }
.section-title .eyebrow {
    display: inline-block;
    font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace;
    font-size: 11px;
    font-weight: bold;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #007bff;
    margin-bottom: 10px;
}

.grid-prezzi { align-items: stretch; }
.card.piano {
    display: flex;
    flex-direction: column;
    text-align: left;
    position: relative;
    overflow: visible;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.card.piano:hover { transform: translateY(-4px); box-shadow: 0 10px 22px rgba(15,35,60,0.1); }

.piano-code {
    display: block;
    font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace;
    font-size: 11px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #98a2b3;
    margin-bottom: 14px;
}
.card.piano h3 { font-size: 19px; margin: 0 0 14px; color: #111; letter-spacing: 0.01em; }

.card.piano .prezzo { font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace; font-size: 34px; font-weight: bold; color: #0b1f2e; margin-bottom: 10px; line-height: 1; }
.card.piano .prezzo .valuta { font-size: 18px; color: #007bff; margin-right: 1px; }
.card.piano .prezzo .periodo { font-family: Arial, sans-serif; font-size: 13px; font-weight: normal; color: #98a2b3; }
.card.piano .prezzo.prezzo-custom { font-size: 22px; color: #007bff; }

.card.piano .piano-desc { color: #555; font-size: 14px; margin: 0; min-height: 42px; line-height: 1.5; }

.piano-divider { border: none; border-top: 1.5px dashed #d7dde6; margin: 20px 0; }

.card.piano .piano-features { list-style: none; padding: 0; margin: 0 0 24px; flex-grow: 1; }
.card.piano .piano-features li { padding: 7px 0 7px 26px; position: relative; font-size: 14px; color: #3d4654; }
.card.piano .piano-features li:before {
    content: "✓";
    position: absolute;
    left: 0;
    top: 6px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #e9f7ee;
    color: #178a4c;
    font-size: 10px;
    font-weight: bold;
    line-height: 16px;
    text-align: center;
}

.btn-piano { display: block; text-align: center; padding: 12px; border-radius: 4px; text-decoration: none; font-weight: bold; font-size: 14px; color: #007bff; border: 1px solid #007bff; }
.btn-piano:hover { background: #f0f6ff; }
.btn-piano-primary { background: #007bff; color: #fff; }
.btn-piano-primary:hover { background: #0056b3; }

.card.piano-evidenza { border-top-color: #007bff; box-shadow: 0 8px 20px rgba(0,123,255,0.14); }
.card.piano-evidenza:hover { box-shadow: 0 14px 28px rgba(0,123,255,0.2); }

.piano-stamp {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    border: 1.5px dashed #007bff;
    box-shadow: inset 0 0 0 3px rgba(0,123,255,0.07);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    transform: rotate(-11deg);
    font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace;
    font-size: 9.5px;
    font-weight: bold;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #007bff;
    line-height: 1.25;
    padding: 4px;
}

@media (min-width: 768px) {
    .card.piano-evidenza { transform: scale(1.03); }
    .card.piano-evidenza:hover { transform: scale(1.03) translateY(-4px); }
}

/* Sezione Contatti */
.section-contatti { background: #fff; }
.contatti-wrap { display: grid; grid-template-columns: 1fr; gap: 30px; }
.contatti-info .card { border-top-color: #007bff; margin-bottom: 16px; }
.contatti-info .contact-item { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 18px; }
.contatti-info .contact-item .icon { font-size: 20px; flex-shrink: 0; }
.contatti-info .contact-item h4 { margin: 0 0 3px; font-size: 15px; color: #222; }
.contatti-info .contact-item p, .contatti-info .contact-item a { margin: 0; font-size: 14px; color: #555; text-decoration: none; }
.contatti-info .contact-item a { color: #007bff; font-weight: bold; }

.form-preventivo { background: #f8f9fa; border: 1px solid #eee; border-radius: 8px; padding: 25px; }
.form-preventivo h3 { margin: 0 0 6px; color: #111; font-size: 18px; }
.form-preventivo > p { margin: 0 0 20px; color: #666; font-size: 14px; }
.form-row { display: grid; grid-template-columns: 1fr; gap: 16px; margin-bottom: 16px; }
.form-group-c label { display: block; margin-bottom: 6px; font-weight: bold; font-size: 13px; color: #444; }
.form-group-c input, .form-group-c textarea { width: 100%; padding: 12px; border: 1px solid #ccc; border-radius: 4px; box-sizing: border-box; font-size: 14px; font-family: Arial, sans-serif; }
.form-group-c textarea { resize: vertical; min-height: 100px; }
.btn-preventivo { width: 100%; padding: 14px; background: #007bff; color: #fff; border: none; border-radius: 4px; font-weight: bold; font-size: 15px; cursor: pointer; }
.btn-preventivo:hover { background: #0056b3; }

.form-privacy-row { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 20px; }
.form-privacy-row input { margin-top: 3px; cursor: pointer; }
.form-privacy-row label { font-size: 13px; color: #111; cursor: pointer; line-height: 1.4; }

.alert-c { padding: 12px; border-radius: 4px; margin-bottom: 18px; font-size: 14px; border-left: 5px solid; }
.alert-c-success { background: #c6f6d5; color: #0056b3; border-left-color: #007bff; }
.alert-c-error { background: #f8d7da; color: #721c24; border-left-color: #dc3545; }

@media (max-width: 767px) {
    .menu-btn { display: flex; flex-direction: column; gap: 5px; cursor: pointer; z-index: 102; padding: 5px; }
    .menu-btn span { display: block; width: 25px; height: 3px; background: #333; border-radius: 2px; transition: 0.3s; }

    .nav-links {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: #fff;
        flex-direction: column;
        gap: 0;
        padding: 0;
        max-height: 0;
        overflow: hidden;
        box-shadow: 0 4px 6px rgba(0,0,0,0.05);
        transition: max-height 0.3s ease-in-out;
        z-index: 101;
    }

    .nav-links a {
        width: 100%;
        padding: 15px 20px;
        border-radius: 0;
        border-bottom: 1px solid #f0f0f0;
        text-align: left;
    }

    .nav-links .link-reg { background: #007bff; color: #fff; text-align: center; }

    #menu-toggle:checked ~ .nav-links { max-height: 300px; }
    #menu-toggle:checked ~ .menu-btn span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
    #menu-toggle:checked ~ .menu-btn span:nth-child(2) { opacity: 0; }
    #menu-toggle:checked ~ .menu-btn span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
}

@media (min-width: 900px) {
    .contatti-wrap { grid-template-columns: 0.9fr 1.1fr; }
    .form-row { grid-template-columns: 1fr 1fr; }
}

@media (min-width: 768px) {
    .hero h1 { font-size: 40px; }
    .hero-buttons { flex-direction: row; justify-content: center; }
    .btn-hero { width: auto; }
    .grid-3 { grid-template-columns: repeat(3, 1fr); }
    .grid-2 { grid-template-columns: repeat(2, 1fr); }
}
