@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;600;700&family=Open+Sans:wght@400;600&display=swap');

:root {
    --primary: #121A26;
    --primary-light: #1D2A3D;
    --accent: #B89454;
    --accent-hover: #9E7D41;
    --text-dark: #1E2022;
    --text-light: #F8F9FA;
    --bg-light: #FAF9F6;
    --bg-white: #FFFFFF;
    --border: #E0DBCE;
    --font-heading: 'Montserrat', sans-serif;
    --font-body: 'Open Sans', sans-serif;
}

/* Reset standard & Accessibilità */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-body);
    font-size: 1.125rem; /* Ottimizzato per 45-65+ */
    line-height: 1.65;
    color: var(--text-dark);
    background-color: var(--bg-light);
}

h1, h2, h3, h4 {
    font-family: var(--font-heading);
    color: var(--primary);
    font-weight: 700;
}

a {
    color: var(--accent);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--accent-hover);
}

.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--accent);
    color: var(--text-light);
    padding: 8px;
    z-index: 100;
    transition: top 0.3s;
}

.skip-link:focus {
    top: 0;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

/* Elemento Grafico Unico: Custom Wave Pattern */
.custom-wave {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 150'%3E%3Cpath fill='%23121A26' fill-opacity='1' d='M0,96L80,90.7C160,85,320,75,480,80C640,85,800,107,960,106.7C1120,107,1280,85,1360,74.7L1440,64L1440,150L1360,150C1280,150,1120,150,960,150C800,150,640,150,480,150C320,150,160,150,80,150L0,150Z'%3E%3C/path%3E%3C/svg%3E");
    background-size: cover;
    height: 60px;
    width: 100%;
}

/* Header & Navigazione */
header {
    background-color: var(--primary);
    padding: 1.5rem 2rem;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--text-light);
    font-size: 1.5rem;
    font-weight: 700;
    font-family: var(--font-heading);
}

.logo-icon {
    width: 32px;
    height: 32px;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 2rem;
}

nav a {
    color: var(--text-light);
    font-weight: 600;
    font-size: 1.05rem;
}

nav a:hover, nav a:focus {
    color: var(--accent);
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text-light);
    font-size: 1.8rem;
    cursor: pointer;
}

/* Layout di Base & Sezioni */
main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1.5rem;
}

section {
    padding: 4rem 0;
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
    font-size: 2.25rem;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background-color: var(--accent);
    margin: 1rem auto 0 auto;
}

/* Hero Section */
.hero {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    padding: 3rem 0;
}

.hero-content h1 {
    font-size: 3rem;
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

.hero-content p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
}

.hero-image img {
    width: 100%;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    object-fit: cover;
    max-height: 450px;
}

/* Statistiche */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    background-color: var(--primary);
    color: var(--text-light);
    padding: 3rem;
    border-radius: 8px;
    text-align: center;
    margin-bottom: 4rem;
}

.stat-item h3 {
    font-size: 2.5rem;
    color: var(--accent);
    margin-bottom: 0.5rem;
}

.stat-item p {
    font-size: 1rem;
    font-weight: 600;
}

/* Cards & Servizi */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
}

.service-card {
    background: var(--bg-white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    border: 1px solid var(--border);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.service-card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
}

.service-card-body {
    padding: 2rem;
}

.service-card-body h3 {
    margin-bottom: 1rem;
    font-size: 1.4rem;
}

/* Come funziona (Steps) */
.steps-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

.step-card {
    background: var(--bg-white);
    padding: 2rem;
    border-radius: 8px;
    border-top: 4px solid var(--accent);
    box-shadow: 0 5px 15px rgba(0,0,0,0.03);
    text-align: center;
}

.step-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--accent);
    margin-bottom: 1rem;
}

/* Feature Block */
.feature-block {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 4rem;
    align-items: center;
}

.feature-block img {
    width: 100%;
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
}

.feature-list {
    list-style: none;
    margin-top: 1.5rem;
}

.feature-list li {
    position: relative;
    padding-left: 2rem;
    margin-bottom: 1rem;
}

.feature-list li::before {
    content: "\f00c";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    position: absolute;
    left: 0;
    color: var(--accent);
}

/* Prezzi (Pricing) */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    align-items: stretch;
}

.pricing-card {
    background: var(--bg-white);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 3rem 2rem;
    text-align: center;
    position: relative;
    display: flex;
    flex-direction: column;
}

.pricing-card.recommended {
    border: 2px solid var(--accent);
    box-shadow: 0 10px 30px rgba(184, 148, 84, 0.15);
    transform: scale(1.03);
}

.badge {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--accent);
    color: var(--text-light);
    padding: 4px 16px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
}

.price {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary);
    margin: 1.5rem 0;
}

.pricing-features {
    list-style: none;
    margin: 2rem 0;
    text-align: left;
    flex-grow: 1;
}

.pricing-features li {
    margin-bottom: 0.75rem;
    font-size: 1rem;
}

/* Bottoni */
.btn {
    display: inline-block;
    padding: 0.85rem 2rem;
    font-weight: 700;
    border-radius: 4px;
    border: none;
    cursor: pointer;
    text-align: center;
    transition: all 0.3s ease;
    font-size: 1.05rem;
}

.btn-primary {
    background-color: var(--accent);
    color: var(--text-light);
}

.btn-primary:hover, .btn-primary:focus {
    background-color: var(--accent-hover);
    color: var(--text-light);
}

.btn-secondary {
    background-color: var(--primary);
    color: var(--text-light);
}

.btn-secondary:hover, .btn-secondary:focus {
    background-color: var(--primary-light);
    color: var(--text-light);
}

.btn-outline {
    background-color: transparent;
    border: 2px solid var(--accent);
    color: var(--accent);
}

.btn-outline:hover, .btn-outline:focus {
    background-color: var(--accent);
    color: var(--text-light);
}

/* Form Section */
.form-container {
    max-width: 700px;
    margin: 0 auto;
    background: var(--bg-white);
    padding: 3.5rem;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    border: 1px solid var(--border);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    font-size: 1rem;
}

.form-control {
    width: 100%;
    padding: 0.85rem;
    border: 1px solid var(--border);
    border-radius: 4px;
    font-family: var(--font-body);
    font-size: 1.1rem;
    background-color: var(--bg-light);
    transition: border-color 0.3s;
}

.form-control:focus {
    outline: none;
    border-color: var(--accent);
}

.form-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    font-size: 0.95rem;
}

.form-checkbox input {
    margin-top: 0.3rem;
}

/* FAQ Accordion (Solo per faq.html o teaser) */
.faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: var(--bg-white);
    border: 1px solid var(--border);
    margin-bottom: 1rem;
    border-radius: 4px;
    overflow: hidden;
}

.faq-item-title {
    padding: 1.5rem;
    background: var(--bg-white);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 700;
    user-select: none;
}

.faq-item-title::after {
    content: '\f078';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    transition: transform 0.3s;
}

.faq-item-title[aria-expanded="true"]::after {
    transform: rotate(180deg);
}

.faq-item-content {
    max-height: 0;
    overflow: hidden;
    padding: 0 1.5rem;
    transition: max-height 0.3s ease, padding 0.3s ease;
}

.faq-item-content.open {
    max-height: 500px;
    padding: 1.5rem;
    border-top: 1px solid var(--border);
}

/* Trust Layer (Informativa Societaria e Finanziaria) */
.trust-layer {
    background-color: #EBF0F5;
    padding: 3rem;
    border-radius: 8px;
    margin-top: 5rem;
    border-left: 5px solid var(--accent);
}

.trust-layer-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--primary);
}

.trust-layer p {
    font-size: 0.95rem;
    margin-bottom: 1rem;
    color: #4A5568;
}

/* Footer */
footer {
    background-color: var(--primary);
    color: var(--text-light);
    padding: 4rem 2rem 2rem 2rem;
}

.footer-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.5fr 1fr 1.5fr;
    gap: 3rem;
    padding-bottom: 3rem;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-column h4 {
    color: var(--accent);
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
}

.footer-column ul {
    list-style: none;
}

.footer-column li {
    margin-bottom: 0.75rem;
}

.footer-column a {
    color: var(--text-light);
    font-size: 1rem;
}

.footer-column a:hover {
    color: var(--accent);
}

.footer-bottom {
    max-width: 1200px;
    margin: 0 auto;
    padding-top: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
    color: #A0AEC0;
}

/* Cookie Banner */
.cookie-banner {
    position: fixed;
    bottom: -150px;
    left: 0;
    right: 0;
    background-color: var(--primary);
    color: var(--text-light);
    padding: 1.5rem 2rem;
    z-index: 10000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
    box-shadow: 0 -5px 25px rgba(0,0,0,0.15);
    transition: bottom 0.5s ease;
}

.cookie-banner.visible {
    bottom: 0;
}

.cookie-banner p {
    font-size: 0.95rem;
    flex-grow: 1;
}

.cookie-buttons {
    display: flex;
    gap: 1rem;
    flex-shrink: 0;
}

/* Responsive */
@media (max-width: 992px) {
    .hero {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .hero-content h1 {
        font-size: 2.5rem;
    }
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .steps-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .pricing-grid {
        grid-template-columns: 1fr;
        max-width: 500px;
        margin: 0 auto;
    }
    .pricing-card.recommended {
        transform: none;
    }
    .feature-block {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    header {
        padding: 1rem;
    }
    .menu-toggle {
        display: block;
    }
    nav {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: var(--primary);
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
    }
    nav.active {
        max-height: 300px;
    }
    nav ul {
        flex-direction: column;
        padding: 2rem;
        gap: 1rem;
        align-items: center;
    }
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    .footer-bottom {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    .cookie-banner {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    .stats-grid {
        grid-template-columns: 1fr;
    }
    .steps-grid {
        grid-template-columns: 1fr;
    }
    .form-container {
        padding: 1.5rem;
    }
}

/* Accessibilità motoria */
@media (prefers-reduced-motion: reduce) {
    * {
        animation: none !important;
        transition: none !important;
    }
}