/* Colori e typography ufficiali da Elementor Kit Predefinito (id 6) */
:root {
    --blue-primary: #0063AF;   /* Principale Elementor */
    --blue-dark: #00467d;      /* Derivato -20% luminosità */
    --blue-light: #E5F1FA;     /* Derivato +90% luminosità */
    --yellow-accent: #FFCC00;  /* In risalto Elementor */
    --text-dark: #000000;      /* Testo Elementor */
    --text-gray: #555;
    --bg-light: #f7f8fa;
    --border: #D0D0D0;         /* Custom #1 Elementor */
    --white: #FFFFFF;          /* Custom #2 Elementor */

    --font-heading: 'Poppins', sans-serif;  /* da Elementor */
    --font-body: 'Poppins', sans-serif;     /* da Elementor */

    --max-width: 1200px;
    --radius: 6px;
    --shadow: 0 2px 12px rgba(0,0,0,0.08);

    /* Font Awesome Pro Duotone — default root (override locali nei contesti specifici)
       Default pensato per icone inline dentro testo: blu-primary + giallo tenue */
    --fa-primary-color: var(--blue-primary);
    --fa-secondary-color: var(--yellow-accent);
    --fa-primary-opacity: 1;
    --fa-secondary-opacity: 0.55;
}

/* Icone in strengths-band (sotto hero, sfondo chiaro #f7f8fa) — blu+giallo */
.strengths-band .strength-point .icon {
    font-size: 28px;
    line-height: 1;
    margin-bottom: 8px;
    color: var(--blue-primary);  /* fallback se kit non carica */
    --fa-primary-color: var(--blue-primary);
    --fa-secondary-color: var(--yellow-accent);
    --fa-primary-opacity: 1;
    --fa-secondary-opacity: 0.85;
}
.strengths-band .strength-point .icon i { display: inline-block; }

/* Icone nei punti-di-forza globali (card su sfondo blu scuro) — giallo+bianco */
.punti-di-forza .strength-icon {
    font-size: 48px;
    line-height: 1;
    display: block;
    margin: 0 auto 20px;
    color: var(--yellow-accent);  /* fallback se kit non carica */
    --fa-primary-color: var(--yellow-accent);
    --fa-secondary-color: var(--white);
    --fa-primary-opacity: 1;
    --fa-secondary-opacity: 0.40;
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: var(--font-body); font-size: 16px; font-weight: 400; line-height: 1.7; color: var(--text-dark); background: var(--white); }
img { max-width: 100%; display: block; }
a { color: var(--blue-primary); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--blue-dark); }
.container { max-width: var(--max-width); margin: 0 auto; padding: 0 24px; }

/* HEADER */
.site-header { background: var(--white); border-bottom: 1px solid var(--border); padding: 14px 0; position: sticky; top: 0; z-index: 100; box-shadow: 0 2px 4px rgba(0,0,0,0.06); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 32px; }
.logo-img { height: 54px; width: auto; display: block; }
.nav-menu { display: flex; gap: 24px; list-style: none; align-items: center; }
.nav-menu a { font-family: var(--font-heading); font-weight: 500; font-size: 14px; color: var(--text-dark); text-transform: uppercase; letter-spacing: 0.3px; padding: 6px 0; border-bottom: 2px solid transparent; transition: color 0.2s, border-color 0.2s; }
.nav-menu a:hover { color: var(--blue-primary); }
.nav-menu a.active { color: var(--blue-primary); border-bottom-color: var(--yellow-accent); }
.nav-cta { background: var(--blue-primary); color: var(--white) !important; padding: 10px 20px; border-radius: var(--radius); font-family: var(--font-heading); font-weight: 600; font-size: 13px; text-transform: uppercase; letter-spacing: 0.5px; border-bottom: none !important; }
.nav-cta:hover { background: var(--blue-dark); color: var(--white) !important; }

/* HERO — full screen, testi compatti, fade scuro a sx, parallasse su immagine */
.hero {
    position: relative;
    min-height: calc(100vh - 82px);
    background-color: #001428;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    background-attachment: fixed;            /* parallasse: immagine fissa durante lo scroll */
    display: flex;
    align-items: center;
    color: var(--white);
    padding: 80px 0;
    overflow: hidden;
}
/* Overlay sfumato: scuro a sx → trasparente a dx (leggibilità testo + immagine visibile) */
.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(90deg,
        rgba(0,15,40,0.92) 0%,
        rgba(0,30,85,0.82) 28%,
        rgba(0,55,125,0.42) 58%,
        rgba(10,114,196,0.05) 88%,
        transparent 100%
    );
    pointer-events: none;
}
.hero .container { width: 100%; position: relative; z-index: 2; }
.hero-content { max-width: 620px; display: flex; flex-direction: column; align-items: flex-start; text-align: left; text-shadow: 0 2px 14px rgba(0,20,50,0.4); }
.hero-content > * { max-width: 100%; }
.breadcrumb { font-size: 13px; opacity: 0.9; margin: 0 0 16px; font-family: var(--font-heading); font-weight: 500; letter-spacing: 0.3px; }
.breadcrumb a { color: var(--white); }
.hero h1 { font-family: var(--font-heading); font-weight: 600; font-size: clamp(28px, 3.8vw, 44px); line-height: 1.15; margin: 0 0 18px; letter-spacing: -0.3px; }
.hero-accent { display: block; width: 60px; height: 4px; background: var(--yellow-accent); margin: 0 0 20px; box-shadow: 0 2px 12px rgba(255,204,0,0.35); }
.hero-intro-wysiwyg { font-size: clamp(15px, 1.2vw, 17px); margin: 0 0 28px; max-width: 560px; opacity: 1; font-weight: 400; line-height: 1.55; }
.hero-intro-wysiwyg p { margin: 0 0 10px; }
.hero-intro-wysiwyg p:last-child { margin-bottom: 0; }
.hero-intro-wysiwyg strong { color: var(--yellow-accent); font-weight: 600; }
.hero .btn { margin: 0 10px 10px 0; }
.hero .btn-secondary { margin-left: 0; }
/* Fallback mobile: no parallasse (iOS Safari non la gestisce bene) */
@media (max-width: 900px) {
    .hero { background-attachment: scroll; min-height: 70vh; padding: 60px 0; }
}

/* SUBMENU contestuale di sezione — sotto header, sopra hero */
.submenu { background: var(--blue-dark); border-bottom: 1px solid rgba(255,255,255,0.06); position: sticky; top: 82px; z-index: 90; }
.submenu-inner { max-width: var(--max-width); margin: 0 auto; padding: 0 24px; display: flex; gap: 0; list-style: none; overflow-x: auto; scrollbar-width: thin; }
.submenu-inner li { flex-shrink: 0; }
.submenu-inner a { display: block; padding: 14px 20px; color: rgba(255,255,255,0.82); font-family: var(--font-heading); font-weight: 500; font-size: 13px; text-transform: uppercase; letter-spacing: 0.5px; border-bottom: 3px solid transparent; transition: color 0.2s, background 0.2s, border-color 0.2s; white-space: nowrap; }
.submenu-inner a:hover { color: #fff; background: rgba(255,255,255,0.06); }
.submenu-inner a.active { color: var(--yellow-accent); border-bottom-color: var(--yellow-accent); background: rgba(0,0,0,0.2); }

/* BUTTONS */
.btn { display: inline-block; padding: 14px 30px; background: var(--yellow-accent); color: var(--text-dark); font-family: var(--font-heading); font-weight: 600; font-size: 14px; text-transform: uppercase; letter-spacing: 0.8px; border-radius: var(--radius); border: none; transition: transform 0.2s, box-shadow 0.2s; }
.btn:hover { transform: translateY(-2px); box-shadow: 0 6px 16px rgba(255,204,0,0.4); color: var(--text-dark); }
.btn-secondary { background: transparent; color: var(--white); border: 2px solid var(--white); margin-left: 10px; }
.btn-secondary:hover { background: var(--white); color: var(--blue-primary); }

/* STRENGTHS BAND (quick 4 item band under hero - specific per page) */
.strengths-band { background: var(--bg-light); padding: 36px 0; border-bottom: 1px solid var(--border); }
.strengths-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; text-align: center; }
.strength-point { padding: 8px; }
.strength-point .icon { font-size: 26px; margin-bottom: 6px; }
.strength-point strong { display: block; color: var(--blue-primary); font-family: var(--font-heading); font-size: 15px; font-weight: 600; margin-bottom: 4px; }
.strength-point span { font-size: 13px; color: var(--text-gray); }

/* POST CONTENT */
.post-content-section { padding: 64px 0; }
.post-content { max-width: 900px; }

/* MAIN SECTION + SIDEBAR (layout 2 colonne per pagine cluster con form contatto) */
.main-section { padding: 80px 0; }
.main-section .content-grid { display: grid; grid-template-columns: 1fr 360px; gap: 60px; align-items: start; }
.main-section .content-grid .post-content { max-width: none; }
.main-section .sidebar { position: sticky; top: 100px; }
.contact-card { background: var(--white); border: 1px solid var(--border); border-top: 4px solid var(--blue-primary); border-radius: var(--radius); padding: 32px 28px; box-shadow: var(--shadow); }
.contact-card h3 { font-family: var(--font-heading); font-weight: 600; font-size: 22px; color: var(--blue-dark); margin-bottom: 8px; text-align: center; }
.contact-card .subtitle { text-align: center; color: var(--text-gray); font-size: 14px; margin-bottom: 24px; }
.contact-card .contact-info { border-bottom: 1px solid var(--border); padding-bottom: 20px; margin-bottom: 20px; }
.contact-card .contact-info p { display: flex; align-items: center; gap: 10px; font-size: 15px; margin-bottom: 10px; color: var(--text-dark); }
.contact-card .contact-info i { color: var(--blue-primary); font-size: 18px; width: 22px; text-align: center; --fa-primary-color: var(--blue-primary); --fa-secondary-color: var(--yellow-accent); --fa-primary-opacity: 1; --fa-secondary-opacity: 0.7; }
.contact-card .form-group { margin-bottom: 14px; }
.contact-card .form-group input, .contact-card .form-group textarea { width: 100%; padding: 12px 14px; font-family: var(--font-body); font-size: 14px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--bg-light); transition: border-color 0.2s, background 0.2s; }
.contact-card .form-group input:focus, .contact-card .form-group textarea:focus { outline: none; border-color: var(--blue-primary); background: var(--white); }
.contact-card .form-group textarea { min-height: 100px; resize: vertical; }
.contact-card .form-consent { display: flex; align-items: flex-start; gap: 8px; font-size: 12px; color: var(--text-gray); margin: 16px 0; line-height: 1.5; }
.contact-card .form-consent input { margin-top: 3px; flex-shrink: 0; }
.contact-card .btn-submit { width: 100%; background: var(--blue-primary); color: var(--white); padding: 14px; font-family: var(--font-heading); font-weight: 600; font-size: 14px; text-transform: uppercase; letter-spacing: 0.5px; border: none; border-radius: var(--radius); cursor: pointer; transition: background 0.2s; }
.contact-card .btn-submit:hover { background: var(--blue-dark); }
@media (max-width: 1024px) { .main-section .content-grid { grid-template-columns: 1fr; } .main-section .sidebar { position: static; } }

.post-content h2 { font-family: var(--font-heading); font-weight: 600; font-size: 28px; color: var(--blue-primary); margin: 40px 0 16px; padding-left: 16px; border-left: 4px solid var(--blue-primary); line-height: 1.25; }
.post-content h2:first-child { margin-top: 0; }
.post-content h3 { font-family: var(--font-heading); font-weight: 600; font-size: 19px; color: var(--text-dark); margin: 28px 0 12px; }
.post-content p { margin-bottom: 16px; color: var(--text-dark); }
.post-content strong { font-weight: 600; }
.post-content ul, .post-content ol { margin: 18px 0 18px 28px; }
.post-content ul li, .post-content ol li { margin-bottom: 10px; color: var(--text-dark); }
.post-content ul li::marker { color: var(--yellow-accent); font-size: 18px; }
.post-content ol li::marker { color: var(--blue-primary); font-weight: 700; }

/* FAQ */
.faq-section { padding: 60px 0; background: var(--bg-light); }
.section-title { font-family: var(--font-heading); font-weight: 600; font-size: 28px; color: var(--blue-primary); margin-bottom: 22px; padding-left: 16px; border-left: 4px solid var(--blue-primary); line-height: 1.25; }
.faq-list { max-width: 900px; margin: 20px auto 0; }
.faq-item { border: 1px solid var(--border); background: var(--white); margin-bottom: 10px; border-radius: var(--radius); overflow: hidden; }
.faq-question { width: 100%; text-align: left; padding: 18px 24px; background: transparent; border: none; font-family: var(--font-heading); font-weight: 500; font-size: 15px; color: var(--text-dark); cursor: pointer; display: flex; justify-content: space-between; align-items: center; }
.faq-question:hover { background: var(--blue-light); }
.faq-icon { width: 22px; height: 22px; color: var(--blue-primary); transition: transform 0.3s; font-size: 22px; font-weight: 300; flex-shrink: 0; }
.faq-item.active .faq-icon { transform: rotate(45deg); }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.4s ease; padding: 0 24px; color: var(--text-dark); font-size: 15px; line-height: 1.65; }
.faq-item.active .faq-answer { max-height: 700px; padding: 0 24px 20px; }
.faq-answer p { margin-bottom: 10px; }

/* PUNTI DI FORZA GLOBALI — stile blu scuro con cards glass e icone SVG */
.punti-di-forza { background: var(--blue-dark); color: var(--white); padding: 80px 0; position: relative; }
.punti-di-forza::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 4px; background: var(--yellow-accent); }
.punti-header { text-align: center; max-width: 780px; margin: 0 auto 56px; }
.punti-header h2 { font-family: var(--font-heading); font-weight: 600; font-size: 32px; color: var(--white); margin-bottom: 16px; line-height: 1.25; }
.punti-header p { font-size: 17px; opacity: 0.9; color: var(--white); }
.punti-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.punto-card { padding: 32px 24px; background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.12); border-radius: var(--radius); text-align: center; transition: transform 0.3s, background 0.3s; }
.punto-card:hover { transform: translateY(-6px); background: rgba(255,255,255,0.1); }
.punto-card .strength-icon { width: 56px; height: 56px; margin: 0 auto 20px; color: var(--yellow-accent); display: block; }
.punto-card h3 { font-family: var(--font-heading); font-weight: 600; font-size: 17px; color: var(--white); margin-bottom: 12px; line-height: 1.4; }
.punto-card p { font-size: 14px; color: var(--white); opacity: 0.85; line-height: 1.6; }
@media (max-width: 980px) { .punti-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .punti-grid { grid-template-columns: 1fr; } }

/* CTA FINAL */
.cta-final { background: linear-gradient(135deg, var(--blue-dark) 0%, var(--blue-primary) 100%); color: var(--white); padding: 56px 0; text-align: center; }
.cta-final h2 { font-family: var(--font-heading); font-weight: 600; font-size: 30px; margin-bottom: 14px; }
.cta-final p { font-size: 17px; opacity: 0.95; margin-bottom: 26px; max-width: 680px; margin-left: auto; margin-right: auto; }

/* FOOTER (rich, Elementor-derived id 62) */
.site-footer { background: #0a1f3d; color: #b8c5d6; padding: 64px 0 24px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.footer-col h5 { font-family: var(--font-heading); color: var(--white); font-size: 14px; font-weight: 600; margin-bottom: 18px; text-transform: uppercase; letter-spacing: 1px; }
.footer-col p, .footer-col li { font-size: 14px; line-height: 1.75; color: #b8c5d6; }
.footer-col ul { list-style: none; padding: 0; }
.footer-col a { color: #b8c5d6; }
.footer-col a:hover { color: var(--yellow-accent); }
.footer-logo { height: 46px; width: auto; margin-bottom: 18px; filter: brightness(0) invert(1); }
.footer-partners { display: flex; gap: 16px; align-items: center; margin-top: 10px; flex-wrap: wrap; }
.footer-partners img { height: 42px; width: auto; background: white; padding: 6px 10px; border-radius: 4px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding-top: 22px; text-align: center; font-size: 13px; color: #7a8aa0; }
@media (max-width: 980px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }

/* REVIEWS SECTION (carousel recensioni Google) — usata su tutte le pagine */
.reviews-section { padding:80px 0; background:var(--white); position:relative; border-top:1px solid var(--border); }
.reviews-header { display:flex; justify-content:space-between; align-items:flex-end; margin-bottom:36px; gap:24px; flex-wrap:wrap; }
.reviews-title h2 { font-family:var(--font-heading); font-weight:600; font-size:32px; color:var(--blue-dark); line-height:1.2; margin-bottom:8px; border-left:none; padding-left:0; }
.reviews-title p { font-size:15px; color:var(--text-gray); }
.reviews-google-badge { display:flex; align-items:center; gap:14px; background:var(--bg-light); padding:14px 22px; border-radius:var(--radius); border:1px solid var(--border); }
.reviews-google-badge .g-logo { width:36px; height:36px; display:inline-flex; align-items:center; justify-content:center; background:#fff; border-radius:50%; border:1px solid var(--border); }
.reviews-google-badge .g-logo svg { width:22px; height:22px; }
.reviews-google-badge .g-info { display:flex; flex-direction:column; }
.reviews-google-badge .g-rating { display:flex; align-items:center; gap:6px; font-family:var(--font-heading); font-weight:700; font-size:18px; color:var(--blue-dark); line-height:1; }
.reviews-google-badge .g-rating .stars { color:#FBBC04; font-size:15px; letter-spacing:2px; }
.reviews-google-badge .g-meta { font-size:12px; color:var(--text-gray); margin-top:3px; }
.reviews-carousel { position:relative; }
.reviews-track { display:flex; gap:20px; overflow-x:auto; scroll-snap-type:x mandatory; scroll-behavior:smooth; padding:8px 2px 20px; scrollbar-width:none; -ms-overflow-style:none; }
.reviews-track::-webkit-scrollbar { display:none; }
.review-card { flex:0 0 calc(33.333% - 14px); min-width:300px; scroll-snap-align:start; background:var(--bg-light); border:1px solid var(--border); border-radius:var(--radius); padding:26px 24px 24px; position:relative; transition:all 0.2s; }
.review-card:hover { background:var(--white); box-shadow:0 10px 28px rgba(0,50,100,0.08); border-color:var(--blue-primary); }
@media(max-width:980px){ .review-card { flex:0 0 calc(50% - 10px); } }
@media(max-width:640px){ .review-card { flex:0 0 85%; } }
.review-card::before { content:"\201C"; position:absolute; top:14px; right:22px; font-size:58px; color:var(--blue-light); font-family:Georgia,serif; line-height:1; font-weight:700; }
.review-stars { color:#FBBC04; font-size:14px; letter-spacing:2px; margin-bottom:14px; }
.review-text { font-size:14.5px; color:var(--text-dark); line-height:1.65; margin-bottom:22px; min-height:110px; }
.review-author { display:flex; align-items:center; gap:12px; padding-top:16px; border-top:1px solid var(--border); }
.review-avatar { width:42px; height:42px; border-radius:50%; background:linear-gradient(135deg,var(--blue-primary),var(--blue-dark)); color:#fff; display:flex; align-items:center; justify-content:center; font-family:var(--font-heading); font-weight:600; font-size:16px; flex-shrink:0; }
.review-info { display:flex; flex-direction:column; min-width:0; }
.review-info strong { font-family:var(--font-heading); font-weight:600; font-size:14px; color:var(--blue-dark); }
.review-info span { font-size:12px; color:var(--text-gray); margin-top:2px; }
.reviews-controls { display:flex; justify-content:flex-end; gap:10px; margin-top:20px; }
.reviews-controls button { width:42px; height:42px; border-radius:50%; background:var(--white); border:1px solid var(--border); color:var(--blue-primary); font-size:18px; cursor:pointer; transition:all 0.2s; display:flex; align-items:center; justify-content:center; }
.reviews-controls button:hover { background:var(--blue-primary); color:#fff; border-color:var(--blue-primary); }
.reviews-controls button:disabled { opacity:0.35; cursor:not-allowed; }
.reviews-cta { text-align:center; margin-top:24px; font-size:14px; color:var(--text-gray); }
.reviews-cta a { font-family:var(--font-heading); font-weight:600; color:var(--blue-primary); }

/* MOBILE MENU — hamburger + drawer (tablet + mobile) */
.mobile-menu-toggle { display: none; background: transparent; border: none; padding: 6px; cursor: pointer; width: 42px; height: 42px; flex-direction: column; justify-content: center; align-items: center; gap: 5px; }
.mobile-menu-toggle span { display: block; width: 24px; height: 2px; background: var(--blue-dark); transition: all 0.3s ease; border-radius: 2px; }
.mobile-menu-toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.mobile-menu-toggle.is-open span:nth-child(2) { opacity: 0; }
.mobile-menu-toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
body.nav-open { overflow: hidden; }

@media (max-width: 1024px) {
    .mobile-menu-toggle { display: flex; }
    .nav-menu {
        position: fixed;
        top: 82px;
        left: 0; right: 0;
        max-height: calc(100vh - 82px);
        background: var(--white);
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 8px 24px 32px;
        box-shadow: 0 12px 30px rgba(0,0,0,0.18);
        transform: translateY(-120%);
        opacity: 0;
        visibility: hidden;
        transition: transform 0.35s ease, opacity 0.25s ease, visibility 0s linear 0.25s;
        z-index: 99;
        overflow-y: auto;
    }
    .nav-menu.is-open {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
        transition: transform 0.35s ease, opacity 0.25s ease, visibility 0s;
    }
    .nav-menu li { border-bottom: 1px solid var(--border); }
    .nav-menu li:last-child { border-bottom: none; }
    .nav-menu a { display: block; padding: 16px 4px; font-size: 15px; width: 100%; border-bottom: none !important; }
    .nav-menu a.active { color: var(--blue-primary); background: var(--bg-light); border-radius: var(--radius); padding-left: 12px; }
    .site-header .nav-cta { padding: 8px 14px; font-size: 12px; }
}

/* MOBILE (phone) — altro */
@media (max-width: 900px) {
    .strengths-row { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
    .logo-img { height: 44px; }
    .site-header .nav-cta { display: none; } /* CTA nel drawer invece */
}
