/* ==========================================================
   RESET & VARIABILI GENERALI
   ========================================================== */
:root {
    --primary-blue: #1e3a8a;
    --dark-blue: #0f172a;
    
    /* Celeste Ultra Chiaro */
    --accent-celeste: #bae6fd;          /* Sky-200 */
    --accent-celeste-light: #f0f9ff;    /* Sky-50 */
    --accent-celeste-hover: #e0f2fe;    /* Sky-100 */
    --accent-celeste-dark: #0284c7;     /* Sky-600 */
    
    --text-dark: #1e293b;
    --text-muted: #64748b;
    --bg-light: #f8fafc;
    --bg-white: #ffffff;
    --border-color: #e2e8f0;
    --shadow-sm: 0 4px 6px -1px rgba(0,0,0,0.05);
    --shadow-md: 0 10px 25px -5px rgba(0,0,0,0.08);
    --radius-lg: 16px;
    --radius-md: 10px;
    --font-main: 'Inter', system-ui, -apple-system, sans-serif;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    color: var(--text-dark);
    background-color: var(--bg-white);
    line-height: 1.6;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

/* ==========================================================
   NAVBAR & HAMBURGER
   ========================================================== */
.navbar {
    position: sticky;
    top: 0;
    z-index: 1000;
    background-color: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--border-color);
    padding: 15px 0;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

.site-logo {
    height: 45px;
    width: auto;
    display: block;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 25px;
}

.nav-menu a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 600;
    font-size: 0.95rem;
    transition: color 0.2s;
}

.nav-menu a:hover {
    color: var(--accent-celeste-dark);
}

/* PULSANTE CONTATTI NAVBAR (BLU LANDING PAGE) */
.btn-nav-blue {
    background-color: #2563eb !important;
    color: #ffffff !important;
    padding: 10px 22px;
    border-radius: var(--radius-md);
    font-weight: 700;
    border: none;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25);
    transition: all 0.2s ease;
}

.btn-nav-blue:hover {
    background-color: #1d4ed8 !important;
    color: #ffffff !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(37, 99, 235, 0.35);
}

/* PULSANTE HAMBURGER (Nascosto di default su Desktop) */
.hamburger-btn {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 28px;
    height: 20px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
}

.hamburger-btn .bar {
    height: 3px;
    width: 100%;
    background-color: var(--text-dark);
    border-radius: 2px;
    transition: all 0.3s ease;
}

.hamburger-btn.active .bar:nth-child(1) {
    transform: translateY(8.5px) rotate(45deg);
}
.hamburger-btn.active .bar:nth-child(2) {
    opacity: 0;
}
.hamburger-btn.active .bar:nth-child(3) {
    transform: translateY(-8.5px) rotate(-45deg);
}

/* ==========================================================
   HERO SECTION (DESKTOP - ALTEZZA OTTIMIZZATA)
   ========================================================== */
.hero-section {
    position: relative;
    background-color: var(--dark-blue);
    background-image: url('images/hero-desktop.jpg');
    background-size: cover;
    background-position: right center;
    background-repeat: no-repeat;
    color: #ffffff;
    padding: 70px 0 0 0;
    min-height: 470px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg, 
        rgba(15, 23, 42, 0.95) 0%, 
        rgba(15, 23, 42, 0.70) 45%, 
        rgba(15, 23, 42, 0) 70%
    );
    z-index: 1;
}

.hero-container {
    position: relative;
    z-index: 2;
    padding-bottom: 35px;
}

.hero-content {
    max-width: 540px;
}

/* Nascosta su Desktop */
.hero-mobile-image {
    display: none;
}

.hero-title {
    font-size: 2.6rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 16px;
    color: #ffffff !important;
}

.hero-title .highlight {
    color: var(--accent-celeste) !important;
}

.hero-subtitle {
    font-size: 1.1rem;
    color: #e2e8f0 !important;
    margin-bottom: 24px;
    line-height: 1.65;
}

.hero-cta-group {
    display: flex;
    gap: 15px;
}

/* BUTTONS */
.btn {
    display: inline-block;
    padding: 13px 28px;
    border-radius: var(--radius-md);
    font-weight: 700;
    text-decoration: none;
    transition: all 0.2s ease;
    cursor: pointer;
    border: none;
}

.btn-primary {
    background-color: var(--accent-celeste);
    color: var(--dark-blue);
    font-weight: 800;
}

.btn-primary:hover {
    background-color: var(--accent-celeste-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(186, 230, 253, 0.4);
}

/* STATS BAR */
.stats-bar-container {
    position: relative;
    z-index: 2;
    background-color: var(--bg-white);
    color: var(--text-dark);
    padding: 22px 0;
    border-bottom: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    text-align: center;
}

.stat-item {
    padding: 5px 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.stat-number {
    display: block;
    font-size: 1.45rem;
    font-weight: 800;
    color: var(--accent-celeste-dark);
}

.stat-label {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 500;
}

/* LINK YOUTUBE IN ROSSO */
.stat-yt-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-top: 4px;
    font-size: 0.8rem;
    font-weight: 600;
    color: #ff0000;
    text-decoration: underline;
    transition: all 0.2s ease;
}

.stat-yt-link:hover {
    color: #cc0000;
    text-decoration: underline;
}

.yt-icon {
    flex-shrink: 0;
    vertical-align: middle;
}

/* ==========================================================
   CHI SONO SECTION
   ========================================================== */
.section-padding {
    padding: 90px 0;
}

.chi-sono-container {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 50px;
}

.chi-sono-text {
    flex: 1;
    max-width: 55%;
}

.section-tag {
    display: inline-block;
    color: var(--accent-celeste-dark);
    font-weight: 800;
    font-size: 0.85rem;
    letter-spacing: 1.5px;
    margin-bottom: 10px;
}

.section-title {
    font-size: 2.3rem;
    font-weight: 800;
    color: var(--text-dark);
    line-height: 1.3;
    margin-bottom: 25px;
}

.paragraph {
    font-size: 1.05rem;
    color: var(--text-muted);
    margin-bottom: 18px;
}

.paragraph-bold {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 30px;
}

.chi-sono-image-box {
    flex: 1;
    max-width: 40%;
    display: flex;
    justify-content: center;
}

.portrait-img {
    width: 100%;
    max-width: 400px;
    height: auto;
    max-height: 480px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    object-fit: cover;
    display: block;
}

/* ==========================================================
   DICONO DI ME SECTION
   ========================================================== */
.dicono-section {
    background-color: var(--bg-light);
    padding-bottom: 40px;
}

.section-header-center {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 60px auto;
}

.section-subtitle {
    color: var(--text-muted);
    font-size: 1.1rem;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.testimonial-card {
    background-color: var(--bg-white);
    padding: 30px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    border: 1px solid var(--border-color);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.testimonial-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.card-badge {
    display: inline-block;
    align-self: flex-start;
    background-color: var(--accent-celeste-light);
    color: var(--accent-celeste-dark);
    font-size: 0.75rem;
    font-weight: 700;
    padding: 5px 12px;
    border-radius: 20px;
    margin-bottom: 15px;
}

.testimonial-quote {
    font-size: 0.95rem;
    color: var(--text-dark);
    font-style: italic;
    margin-bottom: 25px;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 15px;
}

.author-avatar {
    width: 45px;
    height: 45px;
    background-color: var(--accent-celeste-dark);
    color: var(--bg-white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9rem;
}

.author-info strong {
    display: block;
    font-size: 0.95rem;
    color: var(--text-dark);
}

.author-info span {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* ==========================================================
   SEZIONE CONTATTI & JOTFORM
   ========================================================== */
.contatti-section {
    background-color: var(--bg-white);
    padding-top: 50px;
}

.jotform-wrapper {
    max-width: 800px;
    margin: 0 auto;
    background-color: var(--bg-light);
    padding: 30px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
}

.jotform-wrapper iframe {
    width: 100% !important;
    border: none !important;
}

/* ==========================================================
   PULSANTE TORNA IN ALTO (DESKTOP)
   ========================================================== */
.back-to-top-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 46px;
    height: 46px;
    background-color: var(--accent-celeste);
    border: none;
    border-radius: var(--radius-md);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1500;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.back-to-top-btn.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top-btn:hover {
    background-color: var(--accent-celeste-hover);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(186, 230, 253, 0.5);
}

/* Triangolo equilatero senza lato inferiore (Chevron verso l'alto) */
.chevron-up {
    width: 13px;
    height: 13px;
    border-top: 3px solid var(--dark-blue);
    border-left: 3px solid var(--dark-blue);
    transform: rotate(45deg);
    margin-top: 4px;
}

/* ==========================================================
   FOOTER
   ========================================================== */
.site-footer {
    background-color: var(--dark-blue);
    color: #94a3b8;
    padding: 40px 0;
    font-size: 0.9rem;
}

.footer-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-logo {
    height: 35px;
    margin-bottom: 5px;
    filter: brightness(0) invert(1);
}

.footer-built-with {
    font-size: 0.82rem;
    font-style: italic;
    color: #94a3b8;
    opacity: 0.75;
    margin-top: 4px;
}

.footer-right a {
    color: var(--accent-celeste);
    text-decoration: none;
}

.footer-right a:hover {
    text-decoration: underline;
}

/* ==========================================================
   COOKIE BANNER & MODAL
   ========================================================== */
.cookie-banner {
    position: fixed;
    bottom: 20px;
    left: 20px;
    right: 20px;
    max-width: 800px;
    margin: 0 auto;
    background-color: var(--dark-blue);
    color: var(--bg-white);
    padding: 20px;
    border-radius: var(--radius-md);
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    z-index: 2000;
    display: none;
}

.cookie-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.cookie-content a {
    color: var(--accent-celeste);
}

.btn-cookie {
    background-color: var(--accent-celeste);
    color: var(--dark-blue);
    padding: 8px 16px;
    font-size: 0.85rem;
    font-weight: 700;
    white-space: nowrap;
}

.modal {
    display: none;
    position: fixed;
    z-index: 3000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.6);
}

.modal-content {
    background-color: var(--bg-white);
    margin: 10% auto;
    padding: 40px;
    max-width: 650px;
    border-radius: var(--radius-lg);
    position: relative;
}

.close-modal {
    position: absolute;
    right: 20px;
    top: 15px;
    font-size: 28px;
    cursor: pointer;
    color: var(--text-muted);
}

/* ==========================================================
   RESPONSIVE DESIGN (MOBILE & TABLET - FORCED)
   ========================================================== */
@media screen and (max-width: 768px) {
    .hamburger-btn {
        display: flex !important;
    }

    .back-to-top-btn {
        display: none !important;
    }

    .nav-menu {
        display: none !important;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(10px);
        flex-direction: column;
        align-items: center;
        gap: 20px;
        padding: 25px 0;
        border-bottom: 1px solid var(--border-color);
        box-shadow: 0 10px 20px rgba(0,0,0,0.08);
    }

    .nav-menu.active {
        display: flex !important;
    }
	
    .nav-socials {
        margin: 10px 0 !important;
        justify-content: center;
    }

    .social-icon-link {
        margin-right: 24px !important;
    }

    .social-icon-link:last-child {
        margin-right: 0 !important;
    }
	
    .nav-socials {
        display: flex;
        flex-direction: row;
        align-items: center;
        margin: 0 22px;
    }

    .social-icon-link {
        color: #2563eb !important;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        padding: 6px;
        margin-right: 23px !important;
        border-radius: 50%;
        transition: all 0.2s ease;
    }

    .social-icon-link:last-child {
        margin-right: 0 !important;
    }

    .social-icon-link:hover {
        color: #1d4ed8 !important;
        background-color: var(--accent-celeste-light);
        transform: translateY(-2px);
    }
	
    .hero-section {
        background-color: #1e293b !important;
        background-image: none !important;
        padding-top: 30px;
        min-height: auto;
    }

    .hero-overlay {
        display: none !important;
    }

    .hero-mobile-image {
        display: block !important;
        width: 100%;
        margin-bottom: 20px;
    }

    .hero-mobile-image img {
        width: 100%;
        height: auto;
        max-height: 280px;
        object-fit: cover;
        border-radius: var(--radius-lg);
        box-shadow: var(--shadow-md);
        display: block;
    }

    .hero-container {
        padding-bottom: 30px;
    }

    .hero-title {
        font-size: 1.85rem !important;
        line-height: 1.25 !important;
    }

    .chi-sono-container {
        flex-direction: column-reverse !important;
        gap: 30px;
    }

    .chi-sono-text, .chi-sono-image-box {
        max-width: 100%;
    }
}

@media screen and (max-width: 992px) and (min-width: 769px) {
    .testimonials-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media screen and (max-width: 600px) {
    .hero-title {
        font-size: 1.65rem !important;
        line-height: 1.25 !important;
    }
    .stats-grid, .testimonials-grid {
        grid-template-columns: 1fr;
    }
    .footer-container {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
    .cookie-content {
        flex-direction: column;
    }
    .jotform-wrapper {
        padding: 15px;
        border-radius: var(--radius-md);
    }
}

.nav-socials {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin: 0 10px !important;
}

.nav-socials a {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin: 0 6px !important;
    padding: 4px !important;
    color: #1e3a8a !important;
    text-decoration: none !important;
}

.nav-socials a svg {
    fill: #1e3a8a !important;
    width: 20px !important;
    height: 20px !important;
    transition: transform 0.2s ease, fill 0.2s ease;
}

.nav-socials a:hover svg {
    fill: #2563eb !important;
    transform: scale(1.15);
}

@media screen and (max-width: 768px) {
    .nav-socials {
        margin: 12px 0 !important;
    }
    
    .nav-socials a {
        margin: 0 10px !important;
    }
}