:root {
    --navy: #132290;
    --green: #2d8a47;
    --light-green: #e8f5e9;
    --yellow: #ffc107;
    --bg-light: #f8f9fa;
}

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

body {
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: var(--navy);
    line-height: 1.6;
    font-weight: 500;
    font-size: 17px;
    overflow-x: hidden;
}

h1, h2, h3, h4 {
    font-weight: 700;
}

section {
    padding: 20px;
}

/* Logo */
.logo {
    width: 100%;
    max-width: 250px;
    height: auto;
}

/* Navbar */
.navbar {
    border-bottom: 1px solid #e0e0e0;
    background: var(--navy);
}

/* Buttons */
.btn-whatsapp {
    width: 100%;
    background-color: var(--green);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 18px;
    transition: all 0.3s;
}

.btn-whatsapp:hover {
    background-color: #246936;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(45, 138, 71, 0.3);
}

/* Text colors */
.text-navy {
    color: var(--navy);
}

.text-green {
    color: var(--green);
}

.text-yellow {
    color: var(--yellow);
}
.text-white {
    color: white;
}

.text-muted-navy {
    color: #5a6c8f;
    font-size: 15px;
}

/* Text styles */
.text-bold {
    font-weight: 600;
}

/* Text */
.text-xs {
    font-size: 15px !important;
}

.text-sm{
    font-size: 16px !important;
}

.text-md {
    font-size: 18px !important;
}

.text-lg {
    font-size: 20px !important;
}

.text-xl {
    font-size: 22px !important;
}

/* Hero Section */
.hero-section {
    background-color: white;
}

.hero-section h1 {
    font-size: 2.8rem;
    line-height: 1.2;
    margin-bottom: 1rem;
}

.lead {
    font-size: 16px;
}

.video-container {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
}

/* Hero badges */
.img-icon{
    max-width: 120px;
}
.img-step-icon{
    max-width: 100px;
}

.icon{
    font-size: 25px !important;
}
.hero-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 20px;
    background: rgb(248, 248, 248);
    border-radius: 8px;
    padding: 8px 16px;
}

.hero-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    font-size: 16px;
}

.hero-badge i {
    color: var(--green);
}

/* Social proof box */
.social-proof-box {
    position: absolute;
    bottom: 20px;
    right: 20px;
    background: var(--navy);
    color: white;
    padding: 20px 30px;
    border-radius: 12px;
    max-width: 300px;
}

.social-proof-box h4 {
    font-size: 1.1rem;
    margin-bottom: 10px;
}

.star-rating {
    color: var(--yellow);
    margin: 10px 0;
}

/* Problem section */
.vertical-divider {
    width: 2px;
    height: 140px;
    background-color: #d9d9d9;
}

.problem-section {
    background: #f2f2f2;
    padding: 30px;
}

.problem-icon {
    width: 80px;
    height: 80px;
    margin-bottom: 20px;
}

.problem-text {
    font-size: 18px;
    line-height: 1.6;
}

/* Come Funziona */
.come-funziona-section {
    background-color: var(--bg-light);
}

.section-title {
    margin-bottom: 3rem;
    font-size: 1.8rem;
    letter-spacing: 1px;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: var(--green);
    margin: 15px auto 0;
}

.step-badge {
    display: inline-block;
    width: 50px;
    height: 50px;
    background: var(--green);
    color: white;
    border-radius: 50%;
    line-height: 50px;
    font-size: 24px;
    font-weight: bold;
}

.come-funziona-icon {
    width: 100px;
    height: 100px;
}

/* Why work section */
.why-work-section {
    padding: 60px 0;
}

.why-work-icon {
    width: 80px;
    height: 80px;
    margin-bottom: 20px;
}

/*.text-perche-lavorare{
    margin-top: 6px;
}*/
.check-item {
    display: flex;
    align-items: center;  /* era flex-start */
    gap: 12px;
    margin-bottom: 5px;
    font-size: 18px;
}

.check-item i {
    color: var(--green);
    font-size: 24px;
    flex-shrink: 0;
    /* rimuovi margin-top: 2px */
}

/* Testimonials */
.testimonianze-section {
    background-color: white;
    padding: 60px 0;
}

.testimonial-card {
    border: none;
    border-radius: 12px;
    padding: 10px;
    height: 100%;
    transition: transform 0.3s;
    border-top: 4px solid var(--green);
    box-shadow: 0 10px 30px rgba(0,0,0,.06);
}

.testimonial-card:hover {
    transform: translateY(-5px);
}

.quote-icon {
    width: 40px;
    margin-bottom: 15px;
}

.green-line-short {
    width: 40px;
    height: 3px;
    background: var(--green);
}

.city {
    color: #6c757d;
    font-size: 0.9rem;
}

.result-tag {
    display: inline-block;
    background: var(--light-green);
    color: var(--green);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

.stats-card {
    background: var(--light-green);
    border: none;
    border-radius: 12px;
}

#trofeo-icon {
    width: 80px;
    height: 80px;
}

/* Who I am section */
.border-start-lg {
  border-top: 1px solid #dee2e6;
}

@media (min-width: 992px) {
  .border-start-lg {
    border-top: none;
    border-left: 1px solid #dee2e6;
  }
}

.who-section {
    background: white;
    padding-top: 0;
    padding-bottom: 60px;
}

.who-section .container{
    background-color: var(--bg-light);
    padding: 40px;
    border-radius: 20px;
}

/* Who I am — profile image */
.profile-image {
  width: 130px;
  flex-shrink: 0;
}

.profile-image img {
  width: 130px;
  height: 130px;       /* quadrata forzata */
  object-fit: cover;
  display: block;
  border-radius: 50%;
}

/* Mobile */
@media (max-width: 991px) {
  .profile-image {
    width: 130px;
    margin-bottom: 4rem;   /* ← aggiungi questa riga */
  }

  .two-col-section .section-title {
    text-align: center !important;
  }

  .two-col-section .divider-green {
    margin-left: auto !important;
    margin-right: auto !important;
    display: block !important;
  }
}

@media (max-width: 768px) {
  .two-col-section .section-title {
    text-align: left !important;
  }
}


.signature {
    font-family: 'Dancing Script', 'Brush Script MT', cursive;
    font-size: 2rem;
    color: var(--green);
}

/* FAQ */
.faq-section {
    background-color: var(--bg-light);
}

.accordion-item {
    border: 1px solid #dee2e6;
    border-radius: 8px;
    overflow: hidden;
    background: white;
}

.accordion-button {
    background: white;
    color: var(--navy);
    font-size: 1.05rem;
    padding: 20px;
}

.accordion-button:not(.collapsed) {
    background-color: var(--light-green);
    color: var(--navy);
}

.accordion-button:focus {
    box-shadow: none;
    border-color: var(--green);
}

.accordion-body {
    padding: 20px;
    color: #4a5568;
}

/* CTA Final */
.cta-final {
    background: linear-gradient(135deg, var(--navy) 0%, #2d3e6f 100%);
    padding: 60px 0;
}

.cta-final h2 {
    font-size: 2.2rem;
}

/* CTA Bottom section */
.cta-bottom {
    background: var(--navy);
    color: white;
    padding: 60px 0;
    margin: 20px;
    border-radius: 20px;
    position: relative;
    overflow: hidden;
}

.cta-bottom::before {
    content: '';
    position: absolute;
    right: -100px;
    bottom: -100px;
    width: 400px;
    height: 400px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
}

.cta-bottom h2 {
    font-size: 2rem;
    margin-bottom: 15px;
}

.cta-features {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    justify-content: center;
    margin-top: 30px;
}

.cta-feature {
    display: flex;
    align-items: center;
    gap: 10px;
}

.cta-feature i {
    font-size: 24px;
}

.max-width{
    max-width: 450px;
}

.max-width-l {
    max-width: 500px;
}

/* Footer */
.footer-custom {
    border-top: 1px solid #e0e0e0;
    color: var(--navy);
}

.contact-item {
    display: flex;
    align-items: center;
    font-size: 0.95rem;
}

.contact-item a {
    color: var(--navy);
}

.contact-item a:hover {
    color: var(--green);
}

.social-icons .btn-whatsapp{
    width: 100%;
}

.social-icons a {
    transition: transform 0.3s;
}

.social-icons a:hover {
    transform: scale(1.2);
}

.footer-custom hr {
    border-color: #dee2e6;
}

.footer-custom a {
    text-decoration: none;
    color: #6c757d;
    transition: color 0.3s;
}

.footer-custom a:hover {
    color: var(--green);
}

.footer-bottom {
    background: var(--navy);
    color: white;
    padding: 20px 0;
}

.footer-bottom a {
    color: white;
    text-decoration: none;
    margin: 0 10px;
}

.footer-bottom .social-icons a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    margin: 0 5px;
}

.footer-bottom .social-icons a:hover {
    background: var(--green);
}

.whatsapp-footer-btn {
    background: var(--green);
    color: white;
    padding: 12px 24px;
    border-radius: 8px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
}

/* Video */
.step-arrow {
    position: absolute;
    top: 50px;
    align-items: center;
    justify-content: center;
    z-index: 1;
}

.step-arrow-1 {
    left: calc(-18%);
}

.step-arrow-2 {
    left: calc(18%);
}

.step-arrow-mobile {
    margin: 10px 0;
    margin-bottom: 20px;
}

.hero-video-wrapper {
    position: relative;
}

.hero-video-img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    display: block;
    border-radius: 20px;
}

/* Play button overlay */
.hero-play-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.hero-play-btn {
    width: 72px;
    height: 72px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(0,0,0,0.25);
    transition: transform 0.2s, box-shadow 0.2s;
}

.hero-play-btn:hover {
    transform: scale(1.08);
    box-shadow: 0 6px 28px rgba(0,0,0,0.3);
}

.hero-play-btn i {
    font-size: 2rem;
    color: var(--navy);
    margin-left: 4px;
}

/* Social proof box */
.social-proof-box {
    position: absolute;
    bottom: 24px;
    right: 20px;
    background: var(--navy);
    color: white;
    padding: 16px 20px;
    border-radius: 12px;
    max-width: 260px;
}

.social-proof-box h4 {
    font-size: 0.95rem;
    line-height: 1.3;
}

/* =============================================
   RESPONSIVE — tablet
   ============================================= */
@media (max-width: 991px) {
    .hero-section h1 {
        font-size: 2.2rem;
    }
}

/* =============================================
   RESPONSIVE — mobile
   ============================================= */
@media (max-width: 768px) {

    /* --- 1. HERO --- */
    /* H1 portato a 2.3rem: più grande dell'originale 1.8rem per dare
       peso al titolo rispetto all'immagine/video */
    .hero-section h1 {
        font-size: 2.3rem;
        line-height: 1.15;
    }

    /* Altezza video ridotta ~20%: il titolo guadagna importanza visiva */
    .hero-video-img {
        height: 320px;
    }

    /* --- 2. GERARCHIA TIPOGRAFICA --- */
    .section-title {
        font-size: 1.75rem;
        text-align: left;
    }

    .section-title::after {
        margin: 12px 0 0; /* allineato a sinistra insieme al titolo */
    }

    body {
        font-size: 16px;
        line-height: 1.65;
    }

    /* --- 3. BADGE / MICROELEMENTI --- */
    /* Badge più contenuti: supporto, non protagonisti */
    .hero-badge {
        font-size: 14px;
        padding: 5px 10px;
        gap: 6px;
    }

    .hero-badges {
        gap: 8px;
        padding: 6px 12px;
        border-radius: 6px;
    }

    .result-tag {
        font-size: 0.78rem;
        padding: 4px 10px;
    }

    /* --- 4. ICONE --- */
    /* Riduzione ~20%: le icone non devono attirare più attenzione del testo */
    .icon {
        font-size: 20px !important;
    }

    .img-icon {
        max-width: 96px;
    }

    .img-step-icon {
        max-width: 80px;
    }

    .come-funziona-icon {
        width: 80px;
        height: 80px;
    }

    .why-work-icon {
        width: 64px;
        height: 64px;
        margin-bottom: 14px;
    }

    .problem-icon {
        width: 64px;
        height: 64px;
        margin-bottom: 14px;
    }

    #trofeo-icon {
        width: 64px;
        height: 64px;
    }

    .check-item i {
        font-size: 20px;
    }

    /* --- 5. SPAZIATURE --- */
    /* Ritmo verticale più uniforme tra sezioni */
    section {
        padding: 28px 16px;
    }

    .why-work-section {
    padding: 40px 12px;
}

    .testimonianze-section {
        padding: 40px 0;
    }

    .who-section {
        padding-bottom: 40px;
    }

    /* --- 6. BORDER RADIUS --- */
    /* Ridotto per aspetto più elegante e meno "template" */
    .hero-video-img {
        border-radius: 12px;
    }

    .testimonial-card {
        border-radius: 8px;
    }

    .who-section .container {
        border-radius: 12px;
        padding: 24px 20px;
    }

    .cta-bottom {
        border-radius: 12px;
        margin: 12px;
    }

    .accordion-item {
        border-radius: 6px;
    }

    /* --- 7. TESTIMONIAL --- */
    /* Padding interno aumentato, testo più leggibile */
    .testimonial-card {
        padding: 20px 18px;
    }

    /* --- 8. CHI SONO --- */
    /* Foto ridotta per dare più peso tipografico al testo */
    .profile-image {
        max-width: 220px;
        /* aspect ratio 4:5 */
        aspect-ratio: 4 / 5;
        overflow: hidden;
    }

    .profile-image img {
        object-fit: cover;
        height: 100%;
    }

    /* --- 9. CTA FINALE --- */
    /* Sezione percepita come chiusura importante */
    .cta-final {
        padding: 56px 0;
    }

    .cta-final h2 {
        font-size: 2rem;
    }

    .cta-bottom {
        padding: 48px 0;
    }

    .cta-bottom h2 {
        font-size: 1.75rem;
    }

    /* CTA button più grande su mobile */
    .btn-whatsapp {
        padding: 14px 28px;
        font-size: 17px;
    }
    .max-width-btn {
        max-width: 300px !important;
    }

    /* --- 10. ALLINEAMENTI --- */
    /* Sezioni informative allineate a sinistra per struttura visiva */
    /* Hero e CTA principali restano centrate (non toccate) */
    .problem-section {
        text-align: left;
    }

    .why-work-section .text-center {
        text-align: left !important;
    }

    .come-funziona-section .text-center {
        text-align: left !important;
    }
}

/* =============================================================================
   AGGIUNTE (novembre 2026) - logo vero, foto agenzia, footer, pulsante su telefono
   Tutto il resto del file e' quello originale della landing.
   ============================================================================= */

/* Logo bianco sulla barra blu (stesse misure del logo originale) */
.navbar .logo {
    max-width: 230px;
}

/* I pulsanti WhatsApp ora sono link: stesso aspetto dei bottoni originali */
a.btn-whatsapp {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-decoration: none;
}

/* Foto dell'agenzia al posto del video (solo da computer) */
.hero-foto {
    position: relative;
    display: block;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 12px 40px rgba(4, 43, 150, 0.15);
    color: white;
    text-decoration: none;
}

.hero-foto .hero-video-img {
    border-radius: 20px;
    transition: transform 0.6s ease;
}

.hero-foto:hover .hero-video-img {
    transform: scale(1.03);
}

.hero-foto .social-proof-box {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}

.hero-foto .star-rating {
    margin: 0 0 6px;
    font-size: 14px;
}

.hero-foto-cta {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 8px;
    background: var(--green);
    color: white;
    padding: 6px 14px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    transition: background-color 0.3s;
}

.hero-foto:hover .hero-foto-cta {
    background: #246936;
}

/* Footer */
.footer-custom .logo {
    max-width: 240px;
}

.footer-custom .contact-item a {
    color: var(--navy);
}

.footer-custom .contact-item a:hover {
    color: var(--green);
}

.footer-custom a.btn-whatsapp,
.footer-custom a.btn-whatsapp:hover,
.footer-custom a.btn-whatsapp i {
    color: #fff !important;
}

@media (prefers-reduced-motion: reduce) {
    .hero-foto .hero-video-img {
        transition: none;
    }
}

/* Le frecce di "Come funziona" sbordavano a destra della pagina */
.come-funziona-section {
    overflow-x: clip;
}

/* Logo dell'header: lo stesso del footer, con un contorno bianco di 1px
   attorno alle lettere perche' si legga sul blu. */
.navbar .logo-header {
    max-width: 230px;
    filter:
        drop-shadow(1px 0 0 #fff) drop-shadow(-1px 0 0 #fff)
        drop-shadow(0 1px 0 #fff) drop-shadow(0 -1px 0 #fff);
}

/* Su telefono: logo a sinistra e pulsante WhatsApp a destra */
@media (max-width: 767.98px) {
    .navbar {
        padding-top: 12px !important;
        padding-bottom: 12px !important;
    }
    .navbar .logo-header {
        max-width: 150px;
        min-width: 0;
    }
    .btn-whatsapp.btn-whatsapp-header {
        width: auto;
        padding: 9px 14px;
        font-size: 15px;
        white-space: nowrap;
    }
}

@media (max-width: 399.98px) {
    .navbar .logo-header {
        max-width: 130px;
    }
}

/* Pulsante del riquadro blu finale: su telefono piu' largo, cosi' il testo
   sta su due righe e non su tre. */
@media (max-width: 768px) {
    .cta-bottom a.btn-whatsapp {
        width: 100%;
        max-width: 340px !important;
        padding: 14px 18px;
        font-size: 20px !important;
        line-height: 1.3;
    }
}
