/* ===== RESET & BASE ===== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --color-primary: #0e4b47;
    --color-primary-dark: #0a3633;
    --color-primary-light: #1a7a74;
    --color-accent: #0e4b47;
    --color-bg: #faf9f7;
    --color-bg-alt: #f0eeeb;
    --color-text: #2d2d2d;
    --color-text-light: #6b6b6b;
    --color-white: #ffffff;
    --font-heading: 'Playfair Display', Georgia, serif;
    --font-body: 'Inter', -apple-system, sans-serif;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.06);
    --shadow-md: 0 4px 20px rgba(0,0,0,0.08);
    --shadow-lg: 0 10px 40px rgba(0,0,0,0.1);
    --radius: 12px;
    --transition: 0.3s ease;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    font-family: var(--font-body);
    color: var(--color-text);
    background: var(--color-bg);
    line-height: 1.7;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

a {
    color: var(--color-primary);
    text-decoration: none;
    transition: color var(--transition);
}

a:hover {
    color: var(--color-primary-dark);
}

img {
    max-width: 100%;
    display: block;
}

.container {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ===== HEADER ===== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: transparent;
    transition: background 0.5s ease, box-shadow 0.5s ease;
}

.header.scrolled {
    background: linear-gradient(to right, #ffffff 0%, #b5d4cf 15%, #4a8a82 40%, #0e4b47 100%);
    box-shadow: 0 2px 20px rgba(0,0,0,0.2);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
    padding: 0 40px;
    max-width: 100%;
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.logo-img {
    height: 50px;
    width: auto;
}

.logo-text {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    font-weight: 400;
    font-style: italic;
    color: var(--color-white);
    letter-spacing: 1px;
}

.nav {
    display: flex;
    gap: 36px;
}

.nav-link {
    font-size: 0.8rem;
    font-weight: 500;
    color: rgba(255,255,255,0.85);
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 2.5px;
    position: relative;
    padding: 4px 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1.5px;
    background: var(--color-white);
    transition: width var(--transition);
}

.nav-link:hover,
.nav-link.active {
    color: var(--color-white);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

/* Mobile menu toggle */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.menu-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--color-white);
    transition: var(--transition);
    border-radius: 2px;
}

.menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* ===== HERO — Full Impact ===== */
.hero {
    position: relative;
    width: 100%;
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: #1a1a1a;
}

/* Full-screen video */
.hero-fullvideo {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: 75% center;
    z-index: 2;
    opacity: 0;
    pointer-events: none;
}

.hero-fullvideo.playing {
    animation: heroVidIn 1.8s ease forwards;
}

.hero-fullvideo::-webkit-media-controls-start-playback-button,
.hero-fullvideo::-webkit-media-controls {
    display: none !important;
    -webkit-appearance: none;
}

.hero-poster {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: 75% center;
    z-index: 1;
}




@keyframes heroVidIn {
    0% { opacity: 0; }
    100% { opacity: 1; }
}

/* Teal glow behind figure — breathing animation */
.hero::before {
    content: '';
    position: absolute;
    top: 50%;
    right: 30%;
    transform: translateY(-50%);
    width: 650px;
    height: 650px;
    background: radial-gradient(circle, rgba(14, 75, 71, 0.35) 0%, transparent 70%);
    border-radius: 50%;
    z-index: 4;
    filter: blur(80px);
    pointer-events: none;
    animation: glowBreath 4s ease-in-out infinite;
}

@keyframes glowBreath {
    0%, 100% { opacity: 0.6; transform: translateY(-50%) scale(1); }
    50% { opacity: 1; transform: translateY(-50%) scale(1.1); }
}

/* Particles canvas */
.hero-particles {
    position: absolute;
    inset: 0;
    z-index: 5;
    pointer-events: none;
    width: 100%;
    height: 100%;
}

/* Animated line */
.hero-line {
    width: 0;
    height: 2px;
    background: linear-gradient(to right, rgba(14,75,71,0.8), transparent);
    margin: 16px 0;
    animation: lineExpand 1.2s 1.6s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

@keyframes lineExpand {
    to { width: 120px; }
}

/* Stats bar */
.hero-stats {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 40px;
    padding: 24px 0;
    background: rgba(0,0,0,0.4);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-top: 1px solid rgba(255,255,255,0.06);
    opacity: 0;
    transform: translateY(20px);
    animation: heroFadeUp 0.8s 2.2s ease forwards;
}

.hero-stat {
    text-align: center;
    min-width: 120px;
}

.hero-stat-value {
    display: flex;
    align-items: baseline;
    justify-content: center;
}

.hero-stat-num {
    font-family: 'Oswald', sans-serif;
    font-size: 1.8rem;
    font-weight: 700;
    color: #fff;
    line-height: 1;
}

.hero-stat-plus {
    font-family: 'Oswald', sans-serif;
    font-size: 1.8rem;
    font-weight: 700;
    color: #0e4b47;
    line-height: 1;
}

.hero-stat-label {
    display: block;
    font-family: 'DM Sans', sans-serif;
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: rgba(255,255,255,0.5);
    margin-top: 6px;
}

.hero-stat-divider {
    width: 1px;
    height: 36px;
    background: rgba(255,255,255,0.1);
}

/* Vignette for text readability */
.hero::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 2;
    background:
        linear-gradient(to right, rgba(26,26,26,0.5) 0%, transparent 45%),
        linear-gradient(to top, rgba(26,26,26,0.4) 0%, transparent 30%);
    pointer-events: none;
}

/* Content — bottom left, bold, minimal */
.hero-content {
    position: absolute;
    left: 6%;
    bottom: 12%;
    z-index: 10;
    max-width: 600px;
}

.hero-title {
    font-family: 'Oswald', sans-serif;
    font-weight: 700;
    font-size: clamp(3.5rem, 8vw, 7rem);
    line-height: 0.92;
    text-transform: uppercase;
    letter-spacing: -0.02em;
    color: #fff;
}

.hero-title .line {
    display: block;
    overflow: hidden;
}

.hero-title .line span {
    display: inline-block;
    opacity: 0;
    transform: translateY(110%);
    animation: titleUp 1.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.hero-title .line:nth-child(1) span { animation-delay: 0.6s; }
.hero-title .line:nth-child(2) span { animation-delay: 0.78s; }
.hero-title .line:nth-child(3) span { animation-delay: 0.96s; }

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

.hero-subtitle {
    font-family: 'Cormorant Garamond', serif;
    font-style: italic;
    font-weight: 700;
    font-size: clamp(1.4rem, 2.5vw, 2.2rem);
    color: #1a7a74;
    display: inline-block;
    margin-top: 16px;
    letter-spacing: 0.08em;
    opacity: 0;
    animation: heroFadeUp 1s 1.4s ease forwards;
    letter-spacing: 0.04em;
}

@keyframes heroFadeUp {
    from { opacity: 0; transform: translateY(16px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Scroll button — minimal animated mouse */
.hero-scroll-btn {
    position: absolute;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    width: 28px;
    height: 44px;
    border: 2px solid rgba(255,255,255,0.4);
    border-radius: 14px;
    display: flex;
    justify-content: center;
    padding-top: 8px;
    opacity: 0;
    animation: heroFadeUp 0.8s 2s ease forwards;
    transition: border-color 0.3s ease;
}

.hero-scroll-btn:hover {
    border-color: #1a7a74;
}

.hero-scroll-btn span {
    display: block;
    width: 3px;
    height: 8px;
    background: #fff;
    border-radius: 2px;
    animation: scrollDot 2s ease-in-out infinite;
}

@keyframes scrollDot {
    0% { opacity: 1; transform: translateY(0); }
    50% { opacity: 0.3; transform: translateY(12px); }
    100% { opacity: 1; transform: translateY(0); }
}

/* ===== BUTTONS ===== */
.btn {
    display: inline-flex;
    align-items: center;
    padding: 14px 32px;
    border-radius: 50px;
    font-size: 0.95rem;
    font-weight: 500;
    text-decoration: none;
    transition: all var(--transition);
    cursor: pointer;
    border: 2px solid transparent;
}

.btn-primary {
    background: var(--color-accent);
    color: var(--color-text);
    border-color: var(--color-accent);
}

.btn-primary:hover {
    background: #b8963e;
    border-color: #b8963e;
    color: var(--color-white);
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(200,169,110,0.4);
}

.btn-outline {
    background: transparent;
    color: var(--color-white);
    border-color: rgba(255,255,255,0.4);
}

.btn-outline:hover {
    background: var(--color-white);
    color: var(--color-text);
    border-color: var(--color-white);
    transform: translateY(-2px);
}

/* ===== SECTIONS (generic) ===== */

/* ===== ABOUT ===== */
.about-section {
    position: relative;
    display: flex;
    align-items: stretch;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    width: 100%;
    height: 600px;
}

.about-text {
    background: #0e4b47;
    padding: 40px 50px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
}

.about-title {
    font-family: var(--font-body);
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--color-white);
    letter-spacing: 6px;
    text-transform: uppercase;
    margin-bottom: 8px;
    padding-bottom: 16px;
    border-bottom: 2px solid rgba(255,255,255,0.4);
    display: inline-block;
}

.about-text p {
    color: rgba(255,255,255,0.8);
    margin-bottom: 10px;
    font-size: 0.88rem;
    line-height: 1.7;
}

.about-buttons {
    display: flex;
    gap: 16px;
    margin-top: 20px;
}

.btn-about {
    padding: 12px 28px;
    border: 1.5px solid rgba(255,255,255,0.5);
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.75rem;
    font-weight: 600;
    text-decoration: none;
    transition: all var(--transition);
}

.btn-about:hover {
    background: #fff;
    color: #0e4b47;
    border-color: #fff;
}

.about-image {
    position: relative;
    overflow: hidden;
    background: #fff;
}

.about-image img {
    width: 100%;
    height: 120%;
    object-fit: contain;
    object-position: center center;
    will-change: transform;
    transition: transform 0.1s linear;
}

.about-image-placeholder {
    width: 100%;
    height: 100%;
    min-height: 500px;
    background: #d4d0cc;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
    font-size: 1.2rem;
    font-weight: 300;
    letter-spacing: 2px;
}

/* About social sidebar */
.about-social {
    position: absolute;
    left: 24px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.about-social a {
    color: rgba(255,255,255,0.7);
    transition: color var(--transition);
    display: flex;
}

.about-social a:hover {
    color: var(--color-white);
}

/* About scroll indicator */
.about-scroll {
    position: absolute;
    right: 32px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: rgba(0,0,0,0.4);
}

.about-scroll span {
    writing-mode: vertical-rl;
    text-orientation: mixed;
    font-size: 0.7rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    font-weight: 500;
}

.about-scroll svg {
    animation: bounceDown 2s infinite;
}

/* WhatsApp button */
.whatsapp-btn {
    position: fixed;
    bottom: 28px;
    right: 28px;
    z-index: 999;
    display: flex;
    align-items: center;
    gap: 8px;
    background: #25d366;
    color: white;
    padding: 12px 24px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    transition: all var(--transition);
}

.whatsapp-btn:hover {
    background: #1fb855;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 6px 28px rgba(37, 211, 102, 0.5);
}

/* ===== SERVICES ===== */
.services-section {
    background: #edf5f4;
    padding: 80px 0;
    position: relative;
}


.services-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 48px;
}

.services-title {
    font-family: 'Oswald', sans-serif;
    font-size: 2rem;
    font-weight: 700;
    color: #0e4b47;
    letter-spacing: 4px;
    text-transform: uppercase;
    padding-bottom: 12px;
    border-bottom: 3px solid #0e4b47;
    display: inline-block;
}

.services-header .btn-about {
    border-color: #0e4b47;
    color: #0e4b47;
}

.services-header .btn-about:hover {
    background: #0e4b47;
    color: #fff;
    border-color: #0e4b47;
}

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

.service-card {
    position: relative;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid rgba(0,0,0,0.06);
    transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1),
                box-shadow 0.4s ease,
                border-color 0.4s ease;
    will-change: transform;
}

.service-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 32px rgba(14, 75, 71, 0.12);
    border-color: #0e4b47;
}

.service-img-placeholder {
    width: 100%;
    aspect-ratio: 4/3;
    background: #e8e8e8;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #bbb;
    font-size: 0.9rem;
    letter-spacing: 1px;
}

.service-card img {
    width: 100%;
    aspect-ratio: 4/3;
    object-fit: cover;
    display: block;
}

.service-card img[alt*="Analisi Composizione Corporea"] {
    object-fit: contain;
    background: #f5f5f5;
    padding: 24px;
}

.service-card h4 {
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 600;
    color: #0e4b47;
    text-transform: none;
    letter-spacing: 0.1px;
    text-align: center;
    padding: 18px 14px;
    line-height: 1.4;
    transition: color 0.3s ease;
}

.service-card:hover h4 {
    color: #0e4b47;
}

.service-card::after {
    content: '+';
    position: absolute;
    top: 12px;
    right: 12px;
    width: 28px;
    height: 28px;
    background: rgba(14, 75, 71, 0.85);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    font-weight: 300;
    opacity: 0;
    transform: scale(0.6);
    transition: opacity 0.3s ease, transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
    pointer-events: none;
}

.service-card:hover::after {
    opacity: 1;
    transform: scale(1);
}

/* ===== SERVICE MODAL ===== */
.service-card {
    cursor: pointer;
}

.service-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    pointer-events: none;
    transition: background 0.4s ease;
    backdrop-filter: blur(0px);
}

.service-modal-overlay.active {
    background: rgba(0, 0, 0, 0.5);
    pointer-events: all;
    backdrop-filter: blur(6px);
}

.service-modal {
    background: #fafafa;
    border-radius: 20px;
    padding: 52px 44px 44px;
    max-width: 520px;
    width: 90%;
    position: relative;
    opacity: 0;
    transform: translateY(30px) scale(0.94);
    transition: opacity 0.4s ease, transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.18);
    overflow: hidden;
}

.service-modal-overlay.active .service-modal {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.service-modal-accent {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #0e4b47, #1a7a6d);
}

.service-modal-close {
    position: absolute;
    top: 16px;
    right: 18px;
    background: none;
    border: none;
    font-size: 1.4rem;
    color: #c0c0c0;
    cursor: pointer;
    line-height: 1;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: color 0.2s ease, background 0.2s ease;
}

.service-modal-close:hover {
    color: #333;
    background: rgba(0, 0, 0, 0.06);
}

.service-modal-title {
    font-family: var(--font-body);
    font-size: 1.75rem;
    font-weight: 600;
    color: #0e4b47;
    text-transform: none;
    letter-spacing: -0.3px;
    line-height: 1.2;
    margin-bottom: 8px;
}

.service-modal-subtitle {
    display: block;
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 400;
    color: #1a7a6d;
    text-transform: none;
    letter-spacing: 0.2px;
    margin-bottom: 24px;
}

.service-modal-subtitle:empty {
    display: none;
}

.service-modal-divider {
    width: 32px;
    height: 2px;
    background: #0e4b47;
    margin-bottom: 24px;
}

.service-modal-desc {
    font-family: var(--font-body);
    font-size: 1.05rem;
    color: #424245;
    line-height: 1.75;
    letter-spacing: 0.1px;
    font-weight: 400;
}

/* ===== PRIVACY MODAL ===== */
.privacy-modal {
    max-width: 640px;
    max-height: 80vh;
    padding: 48px 44px 40px;
    display: flex;
    flex-direction: column;
}

.privacy-modal-body {
    overflow-y: auto;
    padding-right: 12px;
}

.privacy-modal-body::-webkit-scrollbar {
    width: 4px;
}

.privacy-modal-body::-webkit-scrollbar-track {
    background: transparent;
}

.privacy-modal-body::-webkit-scrollbar-thumb {
    background: rgba(14, 75, 71, 0.2);
    border-radius: 4px;
}

.privacy-modal-body h4 {
    font-family: var(--font-body);
    font-size: 1.1rem;
    font-weight: 600;
    color: #0e4b47;
    margin: 28px 0 12px;
}

.privacy-modal-body h4:first-child {
    margin-top: 0;
}

.privacy-modal-body h5 {
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 600;
    color: #1a7a6d;
    margin: 20px 0 8px;
}

.privacy-modal-body p {
    font-family: var(--font-body);
    font-size: 0.88rem;
    color: #555;
    line-height: 1.7;
    margin-bottom: 8px;
}

.privacy-modal-body ul {
    padding-left: 20px;
    margin-bottom: 8px;
}

.privacy-modal-body li {
    font-family: var(--font-body);
    font-size: 0.88rem;
    color: #555;
    line-height: 1.7;
    margin-bottom: 4px;
}

.privacy-modal-body a {
    color: #0e4b47;
    text-decoration: underline;
}

/* ===== FORMAZIONE MODAL ===== */
.formazione-list {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.formazione-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 16px 0;
    border-bottom: 1px solid rgba(14, 75, 71, 0.08);
}

.formazione-item:last-child {
    border-bottom: none;
}

.formazione-icon {
    color: #0e4b47;
    font-size: 0.85rem;
    margin-top: 2px;
    flex-shrink: 0;
    opacity: 0.6;
}

.formazione-nome {
    font-family: var(--font-body);
    font-size: 0.92rem;
    font-weight: 600;
    color: #1d1d1f;
    line-height: 1.4;
    margin-bottom: 2px;
}

.formazione-ente {
    font-family: var(--font-body);
    font-size: 0.8rem;
    color: #1a7a6d;
    line-height: 1.4;
}

/* ===== RECENSIONI ===== */
.recensioni-section {
    position: relative;
    height: 520px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-image: url('img/Gemini_Generated_Image_k3its5k3its5k3it.webp');
    background-color: #2a2a2a;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    overflow: hidden;
}

.recensioni-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.65);
    z-index: 1;
}

.recensioni-content {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 48px;
    width: 100%;
    max-width: 800px;
    padding: 0 24px;
}

.recensioni-slider {
    text-align: center;
    min-height: 140px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.recensione {
    position: absolute;
    flex-direction: column;
    align-items: center;
    opacity: 0;
    transform: translateX(30px);
    transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
    pointer-events: none;
    display: flex;
}

.recensione.slide-out {
    opacity: 0;
    transform: translateX(-30px);
}

.recensione.active {
    position: relative;
    opacity: 1;
    transform: translateX(0);
    pointer-events: all;
}

.recensione-text {
    font-family: 'Cormorant Garamond', serif;
    font-style: italic;
    font-size: clamp(1.2rem, 2.5vw, 1.7rem);
    color: rgba(255,255,255,0.9);
    line-height: 1.6;
    margin-bottom: 20px;
}

.recensione-autore {
    font-family: 'DM Sans', sans-serif;
    font-size: 0.75rem;
    font-weight: 700;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 3px;
}

.recensioni-arrow {
    background: none;
    border: none;
    color: rgba(255,255,255,0.5);
    cursor: pointer;
    transition: color 0.3s ease;
    padding: 8px;
    flex-shrink: 0;
}

.recensioni-arrow:hover {
    color: #fff;
}

/* ===== COLLABORAZIONI ===== */
.collab-section {
    background: #0e4b47;
    padding: 80px 0;
    position: relative;
}

.collab-section::before {
    content: '';
    position: absolute;
    top: -60px;
    left: 0;
    right: 0;
    height: 60px;
    background: linear-gradient(to bottom, transparent, #0e4b47);
    pointer-events: none;
}

.collab-title {
    font-family: 'Oswald', sans-serif;
    font-size: 2rem;
    font-weight: 700;
    color: #fff;
    letter-spacing: 4px;
    text-transform: uppercase;
    padding-bottom: 12px;
    border-bottom: 3px solid #fff;
    display: inline-block;
    margin-bottom: 48px;
}

.collab-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
    max-width: 800px;
    margin: 0 auto;
}

.collab-card {
    text-align: center;
}

.collab-img {
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 20px;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.collab-img:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0,0,0,0.4);
}

.collab-img img {
    width: 100%;
    aspect-ratio: 1/1;
    object-fit: cover;
    display: block;
}

.collab-desc {
    font-family: 'DM Sans', sans-serif;
    font-size: 0.75rem;
    font-weight: 600;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    line-height: 1.6;
}

/* ===== EVENTI ===== */
.eventi-section {
    background: #edf5f4;
    padding: 80px 0;
    position: relative;
}

.eventi-title {
    font-family: 'Oswald', sans-serif;
    font-size: 2rem;
    font-weight: 700;
    color: #0e4b47;
    letter-spacing: 4px;
    text-transform: uppercase;
    padding-bottom: 12px;
    border-bottom: 3px solid #0e4b47;
    display: inline-block;
    margin-bottom: 48px;
}

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

.evento-card {
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.evento-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 32px rgba(14, 75, 71, 0.12);
}

.evento-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* ===== CONTATTI ===== */
.contatti-section {
    background: #2a2a2a;
    padding: 100px 0;
}

.contatti-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: start;
}

.contatti-title {
    font-family: 'Oswald', sans-serif;
    font-size: 2rem;
    font-weight: 700;
    color: #fff;
    letter-spacing: 4px;
    text-transform: uppercase;
    padding-bottom: 16px;
    border-bottom: 3px solid #0e4b47;
    display: inline-block;
    margin-bottom: 20px;
}

.contatti-desc {
    color: #7a7a7a;
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 40px;
    max-width: 400px;
}

.contatti-items {
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.contatto-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
}

.contatto-item i {
    color: #1a7a74;
    font-size: 1.1rem;
    margin-top: 4px;
    width: 20px;
    text-align: center;
}

.contatto-label {
    display: block;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #7a7a7a;
    margin-bottom: 4px;
}

.contatto-item a,
.contatto-item span:not(.contatto-label) {
    color: #fff;
    font-size: 0.95rem;
    font-weight: 500;
    text-decoration: none;
    transition: color 0.3s ease;
}

.contatto-item a:hover {
    color: #1a7a74;
}

/* Orari box */
.orari-box {
    background: #222;
    padding: 40px;
    border: 1px solid rgba(255,255,255,0.06);
}

.orari-box h3 {
    font-family: 'Oswald', sans-serif;
    font-size: 1.1rem;
    font-weight: 600;
    color: #fff;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 28px;
}

.orari-lista {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.orario-row {
    display: flex;
    align-items: center;
    font-size: 0.9rem;
    color: rgba(255,255,255,0.7);
}

.orario-row span:first-child {
    min-width: 100px;
    font-weight: 500;
}

.orario-dots {
    flex: 1;
    border-bottom: 1px dotted rgba(255,255,255,0.15);
    margin: 0 12px;
    height: 1px;
}

.orario-val {
    color: #1a7a74;
    font-weight: 600;
    font-size: 0.8rem;
    letter-spacing: 0.5px;
}

.orario-row.chiuso .orario-val {
    color: #555;
}

/* ===== FOOTER ===== */
.footer-new {
    background: #0a2e2b;
    padding: 64px 0 40px;
    position: relative;
}

.footer-new::before {
    content: '';
    position: absolute;
    top: -60px;
    left: 0;
    right: 0;
    height: 60px;
    background: linear-gradient(to bottom, transparent, #0a2e2b);
    pointer-events: none;
}

/* Footer brand — top centered */
.footer-brand {
    text-align: center;
    margin-bottom: 48px;
}

.footer-logo {
    height: 48px;
    width: auto;
    display: block;
    margin: 0 auto 20px;
}

.footer-social-icons {
    display: flex;
    justify-content: center;
    gap: 24px;
}

.footer-social-icons a {
    color: rgba(255,255,255,0.45);
    text-decoration: none;
    transition: color 0.3s ease;
    font-size: 1.1rem;
}

.footer-social-icons a:hover {
    color: #fff;
}

/* Footer info — center row */
.footer-info {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 48px;
    padding: 40px 0;
    border-top: 1px solid rgba(255,255,255,0.08);
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.footer-info-col {
    text-align: center;
}

.footer-info-divider {
    width: 1px;
    align-self: stretch;
    background: rgba(255,255,255,0.1);
}

.footer-info-col h4 {
    font-family: var(--font-body);
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2.5px;
    color: rgba(255,255,255,0.9);
    margin-bottom: 16px;
}

.footer-info-col p {
    color: rgba(255,255,255,0.45);
    font-size: 0.88rem;
    line-height: 1.8;
}

.footer-info-col a {
    color: rgba(255,255,255,0.45);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-info-col a:hover {
    color: rgba(255,255,255,0.85);
}

/* Footer bottom — legal */
.footer-bottom {
    text-align: center;
    padding-top: 32px;
}

.footer-bottom > p {
    color: rgba(255,255,255,0.25);
    font-size: 0.75rem;
    margin-bottom: 10px;
    letter-spacing: 0.3px;
}

.footer-legal {
    display: flex;
    justify-content: center;
    gap: 0;
}

.footer-legal a {
    color: rgba(255,255,255,0.3);
    font-size: 0.75rem;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-legal a:not(:last-child)::after {
    content: "  ·  ";
    color: rgba(255,255,255,0.15);
}

.footer-legal a:hover {
    color: rgba(255,255,255,0.8);
}

/* (Hero animations are now inline in the hero section above) */

/* ===== SCROLL ANIMATIONS ===== */
.scroll-anim {
    opacity: 0;
    transform: translateY(32px);
    transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
                transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.scroll-anim.in-view {
    opacity: 1;
    transform: translateY(0);
}

/* Service cards: animation override */
.service-card.scroll-anim {
    opacity: 0;
    transform: translateY(24px);
}

.service-card.scroll-anim.in-view {
    opacity: 1;
    transform: translateY(0);
}


/* Nav links entrance */
body.loaded .nav-link {
    animation: fadeNav 0.5s ease forwards;
    opacity: 0;
}

body.loaded .nav-link:nth-child(1) { animation-delay: 0.1s; }
body.loaded .nav-link:nth-child(2) { animation-delay: 0.2s; }
body.loaded .nav-link:nth-child(3) { animation-delay: 0.3s; }
body.loaded .nav-link:nth-child(4) { animation-delay: 0.4s; }

@keyframes fadeNav {
    from { opacity: 0; transform: translateY(-8px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ===== RESPONSIVE ===== */

/* Large Tablet / iPad Pro landscape */
@media (max-width: 1024px) {
    .services-grid {
        gap: 20px;
    }

    .collab-grid {
        gap: 32px;
    }

    .footer-info {
        gap: 40px;
    }
}

/* Tablet / iPad portrait */
@media (max-width: 768px) {
    /* Header */
    .menu-toggle {
        display: flex;
    }

    .header-inner {
        padding: 0 20px;
    }

    .nav {
        position: fixed;
        top: 64px;
        left: 0;
        right: 0;
        background: linear-gradient(to bottom, #146560, #0a3230);
        flex-direction: column;
        align-items: center;
        padding: 32px 0;
        gap: 24px;
        transform: translateY(-100%);
        opacity: 0;
        pointer-events: none;
        transition: all 0.4s ease;
        border-bottom: 1px solid rgba(255,255,255,0.1);
    }

    .nav.open {
        transform: translateY(0);
        opacity: 1;
        pointer-events: all;
    }

    /* Hero */
    .hero {
        min-height: 500px;
    }

    .hero-content {
        left: 5%;
        bottom: 18%;
        max-width: 70%;
    }

    .hero-fullvideo {
        object-fit: contain;
        inset: auto;
        width: 100%;
        height: 100%;
        bottom: 0;
        right: -25%;
    }

    .hero-poster {
        object-fit: contain;
        inset: auto;
        width: 100%;
        height: 100%;
        bottom: 0;
        right: -25%;
    }

    .hero::after {
        background:
            linear-gradient(to right, rgba(26,26,26,0.7) 0%, transparent 60%),
            linear-gradient(to top, rgba(26,26,26,0.6) 0%, transparent 45%);
    }

    .hero-title {
        font-size: clamp(2.5rem, 8vw, 4rem);
    }

    .hero-stats {
        gap: 24px;
        padding: 18px 16px;
    }

    .hero-stat {
        min-width: 90px;
    }

    .hero-stat-num {
        font-size: 1.5rem;
    }

    .hero-stat-plus {
        font-size: 1.5rem;
    }

    .hero-stat-label {
        font-size: 0.55rem;
        letter-spacing: 1.5px;
    }

    /* Chi Sono */
    .about-grid {
        grid-template-columns: 1fr;
        height: auto;
    }

    .about-text {
        padding: 40px 28px 36px;
    }

    .about-title {
        font-size: 1.4rem;
        letter-spacing: 4px;
    }

    .about-image {
        height: 400px;
    }

    .about-image img {
        object-fit: contain;
        object-position: center center;
        height: 100%;
    }

    .about-buttons {
        flex-direction: row;
        gap: 12px;
    }

    .btn-about {
        text-align: center;
    }

    /* Servizi */
    .services-section {
        padding: 60px 0;
    }

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

    .services-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }

    .services-title {
        font-size: 1.5rem;
    }

    .service-card::after {
        display: none;
    }

    /* Recensioni */
    .recensioni-section {
        height: auto;
        min-height: 320px;
        padding: 48px 0;
    }

    .recensioni-content {
        gap: 20px;
    }

    .recensione-text {
        font-size: 1.1rem;
    }

    /* Collaborazioni */
    .collab-grid {
        gap: 28px;
    }

    .collab-section {
        padding: 60px 0;
    }

    .collab-title, .eventi-title {
        font-size: 1.5rem;
    }

    /* Eventi */
    .eventi-grid {
        grid-template-columns: 1fr 1fr;
        gap: 16px;
    }

    .eventi-section {
        padding: 60px 0;
    }

    /* Contatti */
    .contatti-section {
        padding: 60px 0;
    }

    .contatti-layout {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .contatti-title {
        font-size: 1.5rem;
    }

    .orari-box {
        padding: 28px;
    }

    /* Footer */
    .footer-info {
        gap: 32px;
    }

    .footer-brand {
        margin-bottom: 36px;
    }

    /* Modals */
    .service-modal {
        padding: 40px 28px 32px;
        max-width: 90%;
    }

    .service-modal-title {
        font-size: 1.4rem;
    }

    .privacy-modal {
        max-height: 75vh;
        padding: 40px 28px 32px;
    }

    /* Section gradients */
    .collab-section::before,
    .footer-new::before {
        height: 40px;
        top: -40px;
    }
}

/* Small Tablet / Large Phone */
@media (max-width: 600px) {
    .about-buttons {
        flex-direction: column;
        width: 100%;
    }

    .hero-content {
        left: 6%;
        bottom: 20%;
        max-width: 80%;
    }

    .recensioni-section {
        min-height: 300px;
    }

    .recensione-text {
        font-size: 1.05rem;
    }

    .collab-grid {
        grid-template-columns: 1fr;
        max-width: 400px;
        margin: 0 auto;
        gap: 32px;
    }

    .footer-info {
        flex-direction: column;
        align-items: center;
        gap: 28px;
    }

    .footer-info-divider {
        width: 40px;
        height: 1px;
        align-self: auto;
    }
}

/* Mobile */
@media (max-width: 480px) {
    /* Hero */
    .hero {
        min-height: auto;
        height: 60vh;
    }

    .hero-content {
        left: 6%;
        bottom: 22%;
        max-width: 88%;
    }

    .hero-title {
        font-size: clamp(2.2rem, 10vw, 3.2rem);
    }

    .hero-subtitle {
        font-size: 1.1rem;
        margin-top: 10px;
    }

    .hero-fullvideo {
        object-fit: contain;
        inset: auto;
        width: 100%;
        height: 100%;
        bottom: 0;
        right: -30%;
    }

    .hero-poster {
        object-fit: contain;
        inset: auto;
        width: 100%;
        height: 100%;
        bottom: 0;
        right: -30%;
    }

    .hero-stats {
        gap: 12px;
        padding: 14px 12px;
    }

    .hero-stat {
        min-width: 70px;
    }

    .hero-stat-num {
        font-size: 1.2rem;
    }

    .hero-stat-plus {
        font-size: 1.2rem;
    }

    .hero-stat-label {
        font-size: 0.5rem;
        letter-spacing: 1px;
    }

    .hero-stat-divider {
        height: 24px;
    }

    .hero-line {
        margin: 10px 0;
    }

    /* Chi Sono */
    .about-text {
        padding: 32px 20px 28px;
    }

    .about-text p {
        font-size: 0.84rem;
    }

    .about-title {
        font-size: 1.2rem;
        letter-spacing: 3px;
    }

    .about-image {
        height: 300px;
    }

    .about-image img {
        object-fit: contain;
        object-position: center center;
    }

    .btn-about {
        padding: 10px 24px;
        font-size: 0.7rem;
    }

    /* Servizi */
    .services-section {
        padding: 48px 0;
    }

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

    .services-title {
        font-size: 1.3rem;
        letter-spacing: 3px;
    }

    .service-card h4 {
        font-size: 0.72rem;
        padding: 12px 8px;
    }

    .service-card {
        border-radius: 6px;
    }

    /* Recensioni */
    .recensioni-section {
        min-height: 280px;
        padding: 40px 0;
        background-attachment: scroll;
    }

    .recensioni-content {
        gap: 12px;
    }

    .recensione-text {
        font-size: 0.95rem;
        line-height: 1.5;
    }

    .recensione-autore {
        font-size: 0.65rem;
    }

    .recensioni-arrow {
        padding: 4px;
    }

    .recensioni-arrow svg {
        width: 20px;
        height: 20px;
    }

    /* Collaborazioni */
    .collab-section {
        padding: 48px 0;
    }

    .collab-title {
        font-size: 1.3rem;
        letter-spacing: 3px;
        margin-bottom: 32px;
    }

    .collab-grid {
        grid-template-columns: 1fr;
        max-width: 320px;
        gap: 28px;
    }

    .collab-desc {
        font-size: 0.7rem;
    }

    /* Eventi */
    .eventi-section {
        padding: 48px 0;
    }

    .eventi-title {
        font-size: 1.3rem;
        letter-spacing: 3px;
        margin-bottom: 32px;
    }

    .eventi-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    /* Contatti */
    .contatti-desc {
        font-size: 0.9rem;
    }

    .orari-box {
        padding: 24px 18px;
    }

    .orario-row {
        font-size: 0.8rem;
    }

    .orario-row span:first-child {
        min-width: 80px;
    }

    /* Footer */
    .footer-new {
        padding: 40px 0 28px;
    }

    .footer-brand {
        margin-bottom: 28px;
    }

    .footer-logo {
        height: 40px;
        margin-bottom: 16px;
    }

    .footer-social-icons {
        gap: 20px;
    }

    .footer-social-icons a {
        font-size: 1rem;
    }

    .footer-info-col h4 {
        font-size: 0.68rem;
        margin-bottom: 12px;
    }

    .footer-info-col p {
        font-size: 0.82rem;
    }

    .footer-bottom > p {
        font-size: 0.7rem;
    }

    .footer-legal a {
        font-size: 0.68rem;
    }

    .footer-legal {
        flex-wrap: wrap;
        justify-content: center;
        gap: 4px 0;
    }

    /* Modals */
    .service-modal {
        padding: 36px 24px 28px;
        border-radius: 16px;
        max-width: 92%;
    }

    .service-modal-title {
        font-size: 1.25rem;
    }

    .service-modal-subtitle {
        font-size: 0.78rem;
    }

    .service-modal-desc {
        font-size: 0.92rem;
    }

    .privacy-modal {
        max-height: 70vh;
        padding: 36px 24px 28px;
    }

    .formazione-item {
        gap: 12px;
        padding: 12px 0;
    }

    .formazione-nome {
        font-size: 0.85rem;
    }

    .formazione-ente {
        font-size: 0.75rem;
    }

    /* Section gradients */
    .collab-section::before,
    .footer-new::before {
        height: 30px;
        top: -30px;
    }
}

/* Very small phones */
@media (max-width: 360px) {
    .hero {
        height: 55vh;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 0.95rem;
    }

    .hero-stats {
        gap: 8px;
        padding: 12px 8px;
    }

    .hero-stat {
        min-width: 60px;
    }

    .hero-stat-num, .hero-stat-plus {
        font-size: 1rem;
    }

    .hero-stat-label {
        font-size: 0.45rem;
    }

    .about-text {
        padding: 28px 16px 24px;
    }

    .about-text p {
        font-size: 0.8rem;
    }

    .about-title {
        font-size: 1.1rem;
    }

    .services-grid {
        gap: 8px;
    }

    .service-card h4 {
        font-size: 0.65rem;
        padding: 10px 6px;
    }

    .recensione-text {
        font-size: 0.88rem;
    }

    .service-modal {
        padding: 32px 20px 24px;
        max-width: 95%;
    }

    .service-modal-title {
        font-size: 1.1rem;
    }

    .privacy-modal {
        max-height: 65vh;
    }

    .footer-info-col p {
        font-size: 0.78rem;
    }
}

/* Landscape phones */
@media (max-height: 500px) and (orientation: landscape) {
    .hero {
        height: 100vh;
        min-height: 300px;
    }

    .hero-content {
        bottom: 15%;
        left: 5%;
        max-width: 50%;
    }

    .hero-title {
        font-size: 2.2rem;
    }

    .hero-stats {
        gap: 24px;
        padding: 12px 16px;
    }

    .hero-stat-num, .hero-stat-plus {
        font-size: 1.2rem;
    }

    .recensioni-section {
        min-height: 250px;
    }
}

/* iPad Pro / large tablet */
@media (min-width: 769px) and (max-width: 1024px) {
    .about-grid {
        grid-template-columns: 1fr 1fr;
        height: 500px;
    }

    .about-text {
        padding: 32px 28px;
    }

    .about-text p {
        font-size: 0.82rem;
    }

    .services-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 16px;
    }

    .service-card h4 {
        font-size: 0.7rem;
    }
}
