/* RESET */
* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: Arial, Helvetica, sans-serif; line-height: 1.6; color: #111; }

/* GLOBAL */
section { padding: 20px 20px; }
h1, h2, h3 { margin-bottom: 20px; }
p { margin-bottom: 15px; }
.container { max-width: 1200px; margin: auto; }

button {
    background: #2a6f9e;
    color: #fff;
    border: none;
    padding: 15px 25px;
    font-size: 16px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
}
button:hover { background: #00a6d6; }
button:disabled {
    background: #2a709e;
    color: #fff;
    cursor: not-allowed;
    opacity: 0.6;
}
button:disabled:hover {
    background: #cccccc;
    color: #666666;
}

.button-contact {
	background-color: transparent;
	border: 1px solid grey;
    color: #000;
}

.button-contact:hover {
    background: #ebebeb;
}

.button-new {
    padding: 11px 22px;
    border-radius: 999px;
    border: none;
    background: var(--accent);
    color: white;
    font-weight: 600;
    cursor: pointer;
}

/* HERO */
.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    align-items: center;
    background: #f2f2f2;
    padding: 30px;
    border-radius: 5px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
    border: 1px solid #e0e0e0;
}

.hero h1 { font-size: 42px; }
.hero p { color: #ddd; }

/* Adatta i colori del testo nel box */
.hero-grid h1 {
    color: #111;
}

.hero-grid p {
    color: #333;
}

.hero-video {
    position: relative;
    border-radius: 14px;
    overflow: hidden;
}
.hero-video video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: contrast(1.1) saturate(1.1);
}

/* AREAS */
.areas {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 350px));
    gap: 30px;
    padding: 70px 30px;
    justify-content: center;
}

.areas .container {
    max-width: none;
    margin: 0;
}

.laurea-grid,
.statua-grid, 
.oggetti-grid,
.scudo-grid {
    display: flex;
    flex-direction: column;
    gap: 20px;
    align-items: center;
    justify-content: space-between;
    text-align: center;
    background: #ffffff;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
    border: 1px solid #e0e0e0;
}

/* HOW IT WORKS */
.steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px,1fr));
    gap: 25px;
}

/* AREAS image: limit height to max 200px and keep aspect ratio */
.laurea-image,
.statua-image,
.oggetti-image,
.scudo-image {
    order: -1;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.laurea-image img,
.statua-image img,
.oggetti-image img,
.scudo-image img,
.statua-image video {
    max-height: 250px;
    height: auto;
    width: 100%;
    display: block;
    margin: 0 auto;
    object-fit: contain;
    border-radius: 8px;
}
.step {
    background: #f6f6f6;
    padding: 25px;
    border-radius: 10px;
}

/* BEFORE AFTER */
.before-after {
    background: #fff;
    text-align: center;
}
.ba-slider {
    position: relative;
    width: 320px;
    aspect-ratio: 1/1;
    margin: 40px auto 0;
    overflow: hidden;
    border-radius: 14px;
    box-shadow: 0 15px 40px rgba(0,0,0,.2);
}
.ba-slider img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.before { clip-path: inset(0 50% 0 0); }
.ba-handle {
    position: absolute;
    left: 50%;
    top: 0;
    width: 3px;
    height: 100%;
    background: white;
}

/* KITS */
.kits {
    background: #f6f6f6;
}
.kit-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px,1fr));
    gap: 30px;
}
.kit {
    background: white;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0,0,0,.1);
}
.kit.highlight {
    border: 3px solid #00c2ff;
}
.kit h3 { margin-bottom: 10px; }

/* WHY */
.why ul { list-style: none; }
.why li { margin-bottom: 10px; }

/* CTA */
.final-cta {
    background: radial-gradient(circle at top, #2a2a2a, #0f0f0f);
    color: white;
    text-align: center;
}

.final-cta h2 {
    color: white;
}

.final-cta button {
    margin-top: 2rem;
    padding: 15px 36px;
    font-size: 1.15rem;
    border-radius: 999px;
    border: none;
    background: var(--accent);
    color: white;
    font-weight: 600;
    cursor: pointer;
}

/* RESPONSIVE */
@media (max-width: 900px) {
    .hero-grid { grid-template-columns: 1fr; text-align: center; }
}

/* TESTIMONIANZE */
.testimonials {
    background: #f6f6f6;
    padding: 70px 30px;
}
.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}
.testimonial {
    background: white;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0,0,0,.1);
    text-align: center;
}
.testimonial p:first-child {
    font-style: italic;
    margin-bottom: 10px;
}
.testimonial p:nth-child(2) {
    color: #f5a623; /* colore stelle */
    font-size: 18px;
    margin-bottom: 10px;
}

/* TESTIMONIANZE CAROSELLO */
.testimonial-carousel {
    display: flex;
    overflow-x: auto;
    gap: 20px;
    scroll-behavior: smooth;
    padding-bottom: 10px;
}
.testimonial-carousel::-webkit-scrollbar {
    height: 8px;
}
.testimonial-carousel::-webkit-scrollbar-thumb {
    background: #00c2ff;
    border-radius: 4px;
}

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

:root {
    --bg: #ffffff;
    --bg-soft: #f4f5f7;
    --text: #1a1a1a;
    --muted: #6b7280;
    --accent: #ee6847;
    --border: rgba(0,0,0,0.08);
}

* { box-sizing: border-box; }

body {
    margin: 0;
    font-family: 'Inter', system-ui, sans-serif;
    color: var(--text);
    background: var(--bg);
    line-height: 1.7;
}

/* TYPO */
h1, h2, h3, h4 {
    margin: 0 0 1rem;
    letter-spacing: -0.03em;
}

h2 {
    font-size: clamp(2rem, 4vw, 2.6rem);
    text-align: center;
}

p {
    color: var(--muted);
    font-size: 1.05rem;
}

/* LAYOUT */
.container {
    max-width: 1150px;
    margin: auto;
    padding: 5rem 1.5rem;
}

.section-soft {
    background: var(--bg-soft);
}

/* NAVBAR */
.navbar {
    position: sticky;
    top: 0;
    z-index: 10;
    background: rgba(255,255,255,0.85);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
}

.nav-content {
    max-width: 1150px;
    margin: auto;
    padding: 1rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo a {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    font-weight: 700;
    color: var(--text);
}

.logo img {
    height: 42px;
}

.nav-menu {
    display: flex;
    gap: 28px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-menu a {
    text-decoration: none;
    color: var(--muted);
    font-weight: 500;
}

.nav-menu a:hover {
    color: var(--text);
}

.nav-cta {
    margin-left: 25px;
    padding: 11px 22px;
    border-radius: 999px;
    border: none;
    background: var(--accent);
    color: white;
    font-weight: 600;
    cursor: pointer;
}

/* HERO SECTIONS */
.center-text {
    text-align: center;
}

.center-text p {
    max-width: 780px;
    margin: auto;
}

/* SOCIAL */
.socials {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-top: 2rem;
}

.socials img {
    width: 38px;
    transition: transform .2s ease;
}

.socials img:hover {
    transform: scale(1.2);
}

@media (max-width:900px) {
    .logo span {display: none;}
    /* Make full navbar visible and usable on small screens */
    .has-submenu::after {
        content: '';
        position: absolute;
        left: 0;
        right: 0;
        top: 100%; /* immediately below the parent item */
        height: 10px; /* should match the visual gap (8px) + a bit of slack */
        background: transparent;
        z-index: 1050; /* below submenu, above parent */
    }
    /* keep submenu hidden on mobile where nav collapses */
    .submenu { position: static; display: none; box-shadow: none; background: transparent; }
    /* CONTATTACI RESPONSIVE */
    .form-grid { grid-template-columns: 1fr; }
    .form-group.full { grid-column: span 1; }
}

/* Remove bullets/indent for submenu */
.submenu { list-style: none; margin: 0; padding: 0; }

/* SUBMENU: visible only on hover or keyboard focus */
.has-submenu { position: relative; }
.submenu {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    min-width: 200px;
    background: rgba(17,17,17,0.98);
    border-radius: 8px;
    padding: 8px 0;
    display: none;
    box-shadow: 0 8px 20px rgba(0,0,0,0.2);
    z-index: 1100;
}
.submenu a { display: block; padding: 10px 16px; color: #ddd; text-decoration: none; font-size: 14px; white-space: nowrap; }
.submenu a:hover { background: rgba(255,255,255,0.03); color: #fff; }
.has-submenu:hover > .submenu,
.has-submenu:focus-within > .submenu { display: block; }

/* CONTATTACI PAGE */
.contact-hero {
    margin-top: 40px;
}
.contact-box {
    background: #f2f2f2;
    border-radius: 18px;
    padding: 50px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
    border: 1px solid #e0e0e0;
}
.contact-box h1 {
    font-size: 36px;
    margin-bottom: 15px;
}
.contact-box p {
    color: #333;
    max-width: 700px;
}

/* FORM */
.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
    margin-top: 40px;
}
.form-group {
    display: flex;
    flex-direction: column;
}
.form-group.full {
    grid-column: span 2;
}
label {
    font-weight: bold;
    margin-bottom: 5px;
}
input, select, textarea {
    padding: 12px;
    border-radius: 6px;
    border: 1px solid #ccc;
    font-size: 15px;
}
textarea {
    min-height: 120px;
    resize: vertical;
}

/* FORM ACTIONS */
.form-actions {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-top: 30px;
}

/* FOOTER CTA */
.back-link {
    margin-left: auto;
    display: inline-block;
    color: #2a6f9e;
    text-decoration: none;
}
.back-link:hover {
    text-decoration: underline;
}

/* PARTNER POPUP */
.partner-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.partner-popup-content {
    background: white;
    border-radius: 12px;
    padding: 40px;
    max-width: 500px;
    width: 90%;
    position: relative;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    text-align: center;
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.partner-popup-close {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 28px;
    font-weight: bold;
    color: #999;
    cursor: pointer;
    transition: color 0.3s ease;
}

.partner-popup-close:hover {
    color: #333;
}

.partner-popup-content h2 {
    color: #2a6f9e;
    margin-bottom: 15px;
}

.partner-popup-content p {
    color: #555;
    margin-bottom: 25px;
    font-size: 16px;
}

.partner-popup-btn {
    background: #2a6f9e;
    color: white;
    border: none;
    padding: 12px 30px;
    font-size: 16px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.partner-popup-btn:hover {
    background: #00a6d6;
}

