:root {
    --blue: #174686;
    --blue-light: #1f5fb8;
    --teal: #4a8583;
    --orange: #bc6332;
    --ink: #0f172a;
    --muted: #475569;
    --bg: #fafbfc;
    --card: #ffffff;
    --line: rgba(15, 23, 42, .08);
    --radius: 20px;
    --shadow: 0 20px 50px rgba(2, 6, 23, .12);
    --shadow-soft: 0 10px 30px rgba(2, 6, 23, .08);
    --max: 1200px;
}

img,
svg,
video,
canvas {
    max-width: 100%;
    height: auto;
}

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

html {
    scroll-behavior: auto;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    color: var(--ink);
    background: var(--bg);
    line-height: 1.6;
    overflow-x: hidden;
}

html,
body {
    width: 100%;
    overflow-x: clip;
}

/* Background decorations */
body::before {
    content: '';
    position: fixed;
    top: -20%;
    right: -15%;
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(74, 133, 131, .08), transparent 70%);
    border-radius: 50%;
    z-index: -1;
}

body::after {
    content: '';
    position: fixed;
    bottom: -25%;
    left: -10%;
    width: 700px;
    height: 700px;
    background: radial-gradient(circle, rgba(23, 70, 134, .06), transparent 70%);
    border-radius: 50%;
    z-index: -1;
}

.container {
    width: min(100% - 40px, var(--max));
    margin-inline: auto;
}

/* Header */
.header {
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(16px) saturate(180%);
    background: rgba(250, 251, 252, .90);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 1px 3px rgba(0, 0, 0, .02);
    transition: all .3s ease;
}

.header.scrolled {
    box-shadow: 0 4px 20px rgba(0, 0, 0, .06);
}

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 0;
    gap: 20px;
}

.brand {
    display: flex;
    align-items: center;
    transition: transform .3s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
}

.brand:hover {
    transform: scale(1.03);
}

.brand img {
    height: 65px;
    width: auto;
    display: block;
}

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

.menu a {
    color: var(--muted);
    font-size: 15px;
    font-weight: 500;
    padding: 10px 18px;
    border-radius: 10px;
    transition: all .2s ease;
    text-decoration: none;
    position: relative;
}

.menu a::after {
    content: '';
    position: absolute;
    bottom: 6px;
    left: 18px;
    right: 18px;
    height: 2px;
    background: linear-gradient(90deg, var(--blue), var(--teal));
    transform: scaleX(0);
    transition: transform .3s ease;
    border-radius: 2px;
}

.menu a:hover {
    background: rgba(23, 70, 134, .05);
    color: var(--ink);
}

.menu a:hover::after {
    transform: scaleX(1);
}

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

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 14px;
    border: none;
    cursor: pointer;
    transition: all .3s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    white-space: nowrap;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, .3);
    transform: translate(-50%, -50%);
    transition: width .5s ease, height .5s ease;
}

.btn:hover::before {
    width: 300px;
    height: 300px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--blue) 0%, var(--blue-light) 100%);
    color: white;
    box-shadow: 0 8px 20px rgba(23, 70, 134, .25);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(23, 70, 134, .35);
}

.btn-ghost {
    background: white;
    color: var(--ink);
    border: 1.5px solid var(--line);
    box-shadow: 0 2px 8px rgba(0, 0, 0, .04);
}

.btn-ghost:hover {
    background: rgba(23, 70, 134, .03);
    border-color: rgba(23, 70, 134, .2);
    transform: translateY(-1px);
}

/* Mobile menu */
.burger {
    display: none;
    width: 44px;
    height: 44px;
    border-radius: 10px;
    border: 1.5px solid var(--line);
    background: white;
    cursor: pointer;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    transition: all .2s ease;
}

.burger:hover {
    background: rgba(23, 70, 134, .03);
    border-color: rgba(23, 70, 134, .15);
}

.burger span {
    display: block;
    width: 20px;
    height: 2px;
    background: var(--ink);
    border-radius: 2px;
    transition: all .3s ease;
}

.mobile-panel {
    display: none;
    padding: 16px 0 24px;
    animation: slideDown .3s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.mobile-panel a {
    display: block;
    padding: 14px 16px;
    border-radius: 10px;
    color: var(--muted);
    font-weight: 500;
    transition: all .2s ease;
    text-decoration: none;
}

.mobile-panel a:hover {
    background: rgba(23, 70, 134, .05);
    color: var(--ink);
}

/* Hero Section - Completamente ridisegnata */
.hero {
    padding: 100px 0 80px;
    position: relative;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 70px;
    align-items: center;
}

.hero-content {
    animation: fadeInUp .8s ease;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.badge-top {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 18px;
    border-radius: 100px;
    background: linear-gradient(135deg, rgba(74, 133, 131, .1), rgba(74, 133, 131, .05));
    border: 1.5px solid rgba(74, 133, 131, .25);
    color: #0b3a39;
    font-size: 14px;
    font-weight: 650;
    margin-bottom: 28px;
    animation: fadeInUp .8s ease .1s backwards;
}

.pulse-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--teal);
    box-shadow: 0 0 0 0 rgba(74, 133, 131, .5);
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes pulse {

    0%,
    100% {
        box-shadow: 0 0 0 0 rgba(74, 133, 131, .5);
    }

    50% {
        box-shadow: 0 0 0 12px rgba(74, 133, 131, 0);
    }
}

h1 {
    font-size: clamp(38px, 5.5vw, 64px);
    font-weight: 800;
    letter-spacing: -0.04em;
    line-height: 1.08;
    margin: 0 0 24px;
    background: linear-gradient(135deg, var(--ink) 0%, var(--blue) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: fadeInUp .8s ease .2s backwards;
}

.hero-lead {
    color: var(--muted);
    font-size: 20px;
    line-height: 1.75;
    margin: 0 0 36px;
    max-width: 600px;
    animation: fadeInUp .8s ease .3s backwards;
}

.hero-cta {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-bottom: 40px;
    animation: fadeInUp .8s ease .4s backwards;
}

.hero-features {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    animation: fadeInUp .8s ease .5s backwards;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    background: white;
    border: 1px solid var(--line);
    border-radius: 14px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .03);
    transition: all .3s ease;
}

.feature-item:hover {
    transform: translateX(4px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, .06);
    border-color: rgba(23, 70, 134, .15);
}

.feature-icon {
    font-size: 24px;
    flex-shrink: 0;
}

.feature-text {
    font-size: 15px;
    color: var(--muted);
    font-weight: 500;
    line-height: 1.5;
}

/* Hero card - Ridisegnata */
.hero-visual {
    position: relative;
    animation: fadeInUp .8s ease .3s backwards;
}

.owner-card {
    background: white;
    border: 1px solid var(--line);
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 30px 60px rgba(0, 0, 0, .1);
    transition: all .5s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.owner-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 6px;
    background: linear-gradient(90deg, var(--blue), var(--teal), var(--orange));
    z-index: 2;
}

.owner-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 40px 80px rgba(0, 0, 0, .15);
}

.owner-photo {
    width: 100%;
    aspect-ratio: 1 / 1.15;
    object-fit: cover;
    display: block;
}

.owner-info {
    padding: 28px;
    background: linear-gradient(to bottom, white, rgba(250, 251, 252, .5));
    text-align:center;
}

.owner-name {
    font-size: 24px;
    font-weight: 800;
    letter-spacing: -0.02em;
    margin: 0 0 8px;
    color: var(--ink);
}

.owner-role {
    color: var(--muted);
    font-size: 15px;
    line-height: 1.6;
    margin: 0 0 20px;
}

.certification-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 18px;
    background: linear-gradient(135deg, rgba(23, 70, 134, .08), rgba(74, 133, 131, .08));
    border: 1.5px solid rgba(23, 70, 134, .2);
    border-radius: 100px;
    color: var(--blue);
    font-size: 14px;
    font-weight: 700;
}

.cert-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--blue);
    box-shadow: 0 0 0 3px rgba(23, 70, 134, .15);
}

/* Sections */
section {
    padding: 100px 0;
    position: relative;
}

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

.section-label {
    display: inline-block;
    color: var(--orange);
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 16px;
}

.section-title {
    font-size: clamp(32px, 4.5vw, 48px);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.15;
    margin: 0 0 20px;
    background: linear-gradient(135deg, var(--ink), var(--blue));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-subtitle {
    color: var(--muted);
    font-size: 19px;
    line-height: 1.7;
    margin: 0;
}

/* About section - Nuovo layout */
.about-wrapper {
    display: grid;
    grid-template-columns: 1.3fr 1fr;
    gap: 50px;
    align-items: center;
}

.about-content h2 {
    font-size: clamp(28px, 4vw, 40px);
    font-weight: 800;
    letter-spacing: -0.03em;
    margin: 0 0 20px;
    color: var(--ink);
}

.about-content h3 {
    font-size: clamp(24px, 3vw, 34px);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.15;
    margin: 0 0 18px;
    background: linear-gradient(135deg, var(--ink), var(--blue));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Se hai h3 dentro card scure (es. contact-section), forza il colore leggibile */
.contact-section h3 {
    color: #fff;
}

.about-content p {
    font-size: 18px;
    line-height: 1.8;
    color: var(--muted);
    margin-bottom: 20px;
}

.about-content p:last-child {
    margin-bottom: 0;
}

.highlight {
    color: var(--orange);
    font-weight: 700;
}

/* Stats verticali affiancate al testo */
.about-stats-vertical {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Stats - Sezione rimossa */

.stat-card {
    background: white;
    border: 1px solid var(--line);
    border-radius: 18px;
    padding: 36px 28px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, .04);
    transition: all .3s ease;
}

.stat-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 35px rgba(0, 0, 0, .08);
    border-color: rgba(23, 70, 134, .2);
}

.stat-number {
    font-size: 48px;
    font-weight: 800;
    background: linear-gradient(135deg, var(--blue), var(--teal));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 0 0 8px;
    line-height: 1;
}

.stat-label {
    color: var(--muted);
    font-size: 16px;
    font-weight: 600;
}

/* Services Grid - Ridisegnato */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.service-card {
    background: white;
    border: 1px solid var(--line);
    border-radius: 20px;
    padding: 40px 32px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, .04);
    transition: all .4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--blue), var(--teal), var(--orange));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .4s ease;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, .1);
    border-color: rgba(23, 70, 134, .2);
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-icon {
    font-size: 48px;
    margin-bottom: 24px;
    display: inline-block;
    transition: transform .3s ease;
}

.service-card:hover .service-icon {
    transform: scale(1.1);
}

.service-card h3 {
    font-size: 22px;
    font-weight: 700;
    letter-spacing: -0.01em;
    margin: 0 0 14px;
    color: var(--ink);
}

.service-card p {
    color: var(--muted);
    font-size: 16px;
    line-height: 1.7;
    margin: 0;
}

/* Partner section - Ridisegnata */
.partner-showcase {
    background: linear-gradient(135deg, rgba(23, 70, 134, .03), rgba(74, 133, 131, .03));
    border: 2px solid var(--line);
    border-radius: 24px;
    padding: 60px 50px;
    text-align: center;
    margin-top: 70px;
    position: relative;
    overflow: hidden;
}

.partner-showcase::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(23, 70, 134, .05), transparent 70%);
    border-radius: 50%;
}

.partner-showcase h3 {
    font-size: 28px;
    font-weight: 800;
    margin: 0 0 32px;
    color: var(--ink);
    position: relative;
}

.partner-logo-container {
    max-width: 320px;
    margin: 0 auto 28px;
    padding: 30px;
    background: white;
    border-radius: 16px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, .06);
    position: relative;
}

.partner-logo {
    width: 100%;
    height: auto;
    display: block;
}

.partner-description {
    max-width: 650px;
    margin: 0 auto;
    color: var(--muted);
    font-size: 17px;
    line-height: 1.8;
    position: relative;
}

/* Contact Section - full-bleed senza overflow */
.contact-section {
    background: linear-gradient(135deg, #0a2540 0%, var(--blue) 50%, #1a4a7a 100%);
    color: white;
    position: relative;
    overflow: hidden;

    /* full-bleed corretto */
    width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);

    /* padding verticale, quello orizzontale lo gestisce .container */
    padding: 120px 0;
}

.contact-section::before,
.contact-section::after {
    content: '';
    position: absolute;
    border-radius: 50%;
}

.contact-section::before {
    top: -30%;
    right: -15%;
    width: 700px;
    height: 700px;
    background: radial-gradient(circle, rgba(255, 255, 255, .06), transparent 70%);
}

.contact-section::after {
    bottom: -40%;
    left: -20%;
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(74, 133, 131, .08), transparent 70%);
}

.contact-section .section-label {
    color: var(--orange);
}

.contact-section .section-title {
    color: white;
    -webkit-text-fill-color: white;
}

.contact-section .section-subtitle {
    color: rgba(255, 255, 255, .85);
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
    margin-top: 60px;
    position: relative;
    z-index: 1;
}

.contact-item {
    background: rgba(255, 255, 255, .08);
    backdrop-filter: blur(20px);
    border: 1.5px solid rgba(255, 255, 255, .15);
    border-radius: 20px;
    padding: 42px 32px;
    text-align: center;
    transition: all .4s cubic-bezier(0.4, 0, 0.2, 1);
}

.contact-item:hover {
    background: rgba(255, 255, 255, .12);
    transform: translateY(-10px);
    box-shadow: 0 25px 50px rgba(0, 0, 0, .3);
    border-color: rgba(255, 255, 255, .25);
}

.contact-icon {
    font-size: 52px;
    margin-bottom: 24px;
    display: inline-block;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, .2));
}

.contact-item h3 {
    font-size: 20px;
    font-weight: 700;
    margin: 0 0 18px;
    color: white;
}

.contact-item a {
    color: white;
    font-size: 18px;
    font-weight: 500;
    text-decoration: none;
    transition: all .2s ease;
    display: block;
    margin-bottom: 10px;
}

.contact-item a:hover {
    color: var(--orange);
    transform: translateX(2px);
}

.contact-item p {
    font-size: 17px;
    line-height: 1.7;
    margin: 0;
    color: rgba(255, 255, 255, .95);
}

.availability-banner {
    background: linear-gradient(135deg, rgba(188, 99, 50, .25), rgba(188, 99, 50, .15));
    border: 2px solid rgba(188, 99, 50, .4);
    border-radius: 20px;
    padding: 48px 40px;
    text-align: center;
    margin-top: 60px;
    position: relative;
    z-index: 1;
    backdrop-filter: blur(10px);
}

.availability-banner h3 {
    font-size: 28px;
    font-weight: 800;
    margin: 0 0 16px;
    color: var(--orange);
    text-shadow: 0 2px 10px rgba(0, 0, 0, .2);
}

.availability-banner p {
    font-size: 18px;
    line-height: 1.8;
    margin: 0;
    color: white;
    max-width: 800px;
    margin: 0 auto;
}

/* Footer */
footer {
    background: var(--ink);
    color: rgba(255, 255, 255, .65);
    padding: 50px 0;
    text-align: center;
}

footer p {
    font-size: 15px;
    margin: 0 0 12px;
}

footer a {
    color: rgba(255, 255, 255, .85);
    text-decoration: none;
    transition: color .2s ease;
}

footer a:hover {
    color: white;
}

.footer-links {
    margin-top: 16px;
    opacity: 0.5;
}

/* Responsive */
@media (max-width: 1024px) {
    .hero-grid {
        grid-template-columns: 1fr;
        gap: 50px;
    }

    .about-wrapper {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .about-stats-vertical {
        flex-direction: row;
        gap: 16px;
    }

    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {

    .menu,
    .cta {
        display: none;
    }

    .burger {
        display: flex;
    }

    .hero {
        padding: 70px 0 60px;
    }

    section {
        padding: 70px 0;
    }

    h1 {
        font-size: 36px;
    }

    .hero-features {
        grid-template-columns: 1fr;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .about-stats-vertical {
        flex-direction: column;
    }

    .partner-showcase {
        padding: 40px 30px;
    }

    .contact-section {
        padding: 80px 0;
        margin-left: calc(50% - 50vw);
        margin-right: calc(50% - 50vw);
    }


}

@media (max-width: 480px) {
    .container {
        width: min(100% - 32px, var(--max));
    }

    .hero-lead {
        font-size: 18px;
    }

    .stat-number {
        font-size: 40px;
    }
}