@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garant:ital,wght@0,300;0,400;0,600;1,400&family=Nunito+Sans:wght@300;400;600;700&display=swap');

/* ── VARIABLES ── */
:root {
  --mauve: #7B5EA7;
  --mauve-dark: #5A3F85;
  --mauve-light: #A084C8;
  --rose: #C49A8A;
  --blush: #F2E8E4;
  --cream: #FAF7F5;
  --white: #FFFFFF;
  --char: #2D2D2D;
  --gray: #6B6B6B;
  --gray-l: #E8E0EC;
  --font-d: 'Cormorant Garant', Georgia, serif;
  --font-b: 'Nunito Sans', sans-serif;
  --tr: 0.3s ease;
  --shadow: 0 4px 24px rgba(123,94,167,0.13);
  --shadow-h: 0 8px 40px rgba(123,94,167,0.22);
  --radius: 16px;
}

/* ── RESET ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { font-family: var(--font-b); color: var(--char); background: var(--white); line-height: 1.7; overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
input, textarea, select, button { font-family: inherit; }

/* ── TYPOGRAPHY ── */
h1,h2,h3,h4 { font-family: var(--font-d); font-weight: 400; line-height: 1.2; }
h1 { font-size: clamp(2rem, 6vw, 4rem); }
h2 { font-size: clamp(1.6rem, 4vw, 2.8rem); }
h3 { font-size: clamp(1.1rem, 2vw, 1.6rem); }
p { color: var(--gray); font-size: 0.97rem; }

/* ── LAYOUT ── */
.container { max-width: 1160px; margin: 0 auto; padding: 0 20px; }
.section { padding: 80px 0; }
.section--blush { background: var(--blush); }
.section--cream { background: var(--cream); }
.section--mauve { background: var(--mauve); }
.section--mauve p { color: rgba(255,255,255,0.82); }
.section--mauve h2 { color: var(--white); }
.section--char { background: var(--char); }

/* ── COMPONENTS ── */
.tag { display: inline-block; font-size: 0.7rem; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; color: var(--mauve); margin-bottom: 14px; }
.section--mauve .tag { color: var(--rose); }
.accent-line { width: 50px; height: 3px; background: linear-gradient(90deg, var(--mauve), var(--rose)); border-radius: 2px; margin: 16px 0 36px; }
.section--mauve .accent-line { background: linear-gradient(90deg, var(--rose), rgba(255,255,255,0.3)); }

/* BUTTONS */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 14px 32px; border-radius: 50px; font-size: 0.88rem; font-weight: 700; letter-spacing: 0.04em; cursor: pointer; border: none; transition: var(--tr); white-space: nowrap; }
.btn--primary { background: var(--mauve); color: var(--white); box-shadow: 0 4px 16px rgba(123,94,167,0.35); }
.btn--primary:hover { background: var(--mauve-dark); transform: translateY(-2px); }
.btn--white { background: var(--white); color: var(--mauve); }
.btn--white:hover { background: var(--cream); transform: translateY(-2px); }
.btn--ghost { background: transparent; color: var(--white); border: 2px solid rgba(255,255,255,0.5); }
.btn--ghost:hover { background: rgba(255,255,255,0.1); border-color: var(--white); }
.btn--outline { background: transparent; color: var(--mauve); border: 2px solid var(--mauve); }
.btn--outline:hover { background: var(--mauve); color: var(--white); }

/* FADE IN */
.fade-in { opacity: 0; transform: translateY(20px); transition: opacity 0.6s ease, transform 0.6s ease; }
.fade-in.visible { opacity: 1; transform: none; }
.fade-in.d1 { transition-delay: 0.1s; }
.fade-in.d2 { transition-delay: 0.2s; }
.fade-in.d3 { transition-delay: 0.3s; }

/* ── LANGUAGE SWITCHER ── */
.lang-switcher { display: flex; gap: 6px; align-items: center; }
.lang-btn { padding: 4px 10px; border-radius: 20px; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.05em; cursor: pointer; border: 1.5px solid rgba(255,255,255,0.4); background: transparent; color: rgba(255,255,255,0.7); transition: var(--tr); }
.lang-btn.active, .lang-btn:hover { background: rgba(255,255,255,0.2); color: var(--white); border-color: var(--white); }
.header.scrolled .lang-btn { border-color: var(--gray-l); color: var(--gray); }
.header.scrolled .lang-btn.active, .header.scrolled .lang-btn:hover { background: var(--mauve); color: var(--white); border-color: var(--mauve); }

/* ── HEADER ── */
.header { position: fixed; top: 0; left: 0; right: 0; z-index: 1000; padding: 14px 0; transition: var(--tr); }
.header.scrolled { background: rgba(255,255,255,0.97); backdrop-filter: blur(12px); padding: 10px 0; box-shadow: 0 2px 20px rgba(0,0,0,0.08); }
.nav { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: nowrap; }
.nav__logo { font-family: var(--font-d); font-size: 1.4rem; font-weight: 600; color: var(--white); transition: var(--tr); white-space: nowrap; flex-shrink: 0; }
.nav__logo span { color: rgba(255,255,255,0.7); font-style: italic; }
.header.scrolled .nav__logo { color: var(--mauve); }
.header.scrolled .nav__logo span { color: var(--rose); }
.nav__links { display: flex; align-items: center; gap: 18px; flex-wrap: nowrap; }
.nav__links a { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: rgba(255,255,255,0.9); position: relative; padding-bottom: 2px; transition: var(--tr); white-space: nowrap; }
.nav__links a::after { content: ''; position: absolute; bottom: -3px; left: 0; width: 0; height: 2px; background: var(--white); transition: width var(--tr); border-radius: 2px; }
.nav__links a:hover::after, .nav__links a.active::after { width: 100%; }
.header.scrolled .nav__links a { color: var(--char); }
.header.scrolled .nav__links a::after { background: var(--mauve); }
/* La lingua nel menu mobile (li finale) è nascosta su desktop */
.nav__links .lang-mobile { display: none; }
.nav__right { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
/* Lingua desktop — solo su desktop */
#desktopLang { display: flex; }
.nav__toggle { display: none; flex-direction: column; gap: 5px; cursor: pointer; background: none; border: none; padding: 4px; flex-shrink: 0; }
.nav__toggle span { display: block; width: 24px; height: 2px; background: var(--white); border-radius: 2px; transition: var(--tr); }
.header.scrolled .nav__toggle span { background: var(--char); }
.nav__toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__toggle.open span:nth-child(2) { opacity: 0; }
.nav__toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.nav__overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.5); z-index: 998; }
.nav__overlay.open { display: block; }

/* ── ADMIN BAR ── */
.admin-bar { background: var(--mauve-dark); color: var(--white); font-size: 0.8rem; padding: 8px 20px; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px; }
.admin-bar a { color: rgba(255,255,255,0.8); margin-left: 12px; }
.admin-bar a:hover { color: var(--white); }

/* ── HERO ── */
.hero { min-height: 100vh; min-height: 100dvh; display: flex; align-items: center; background: linear-gradient(135deg, var(--mauve-dark) 0%, var(--mauve) 50%, var(--mauve-light) 100%); position: relative; overflow: hidden; padding: 120px 0 80px; }
.hero::after { content: ''; position: absolute; bottom: -1px; left: 0; right: 0; height: 80px; background: var(--white); clip-path: ellipse(55% 100% at 50% 100%); }
.hero__dots { position: absolute; inset: 0; background-image: radial-gradient(rgba(255,255,255,0.07) 1px, transparent 1px); background-size: 40px 40px; }
.hero__content { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; position: relative; z-index: 1; }
.hero__text .tag { color: rgba(255,255,255,0.7); }
.hero__title { color: var(--white); margin-bottom: 20px; }
.hero__title em { font-style: italic; color: rgba(255,255,255,0.85); }
.hero__sub { color: rgba(255,255,255,0.82); font-size: 1.05rem; margin-bottom: 36px; max-width: 460px; }
.hero__jobtitle { color: var(--rose); font-weight: 700; font-size: 1.05rem; letter-spacing: 0.02em; margin: 6px 0 14px; }
.hero__ctas { display: flex; gap: 14px; flex-wrap: wrap; }
.hero__img-wrap { position: relative; display: flex; justify-content: center; }
.hero__img-frame { position: relative; width: 360px; height: 440px; }
.hero__img-frame::before { content: ''; position: absolute; top: -14px; right: -14px; width: 100%; height: 100%; border: 2px solid rgba(255,255,255,0.2); border-radius: 60% 40% 50% 50% / 50% 50% 40% 60%; pointer-events: none; }
.hero__img { width: 100%; height: 100%; object-fit: cover; object-position: top; border-radius: 60% 40% 50% 50% / 50% 50% 40% 60%; box-shadow: 0 20px 60px rgba(0,0,0,0.3); }
.hero__badge { position: absolute; bottom: 24px; left: -20px; background: var(--white); border-radius: 14px; padding: 14px 20px; box-shadow: var(--shadow); text-align: center; }
.hero__badge-num { font-family: var(--font-d); font-size: 2rem; font-weight: 600; color: var(--char); line-height: 1; }
.hero__badge-label { font-size: 0.7rem; font-weight: 700; color: var(--mauve); text-transform: uppercase; letter-spacing: 0.1em; }

/* ── PAGE HERO ── */
.page-hero { padding: 150px 0 80px; background: linear-gradient(135deg, var(--mauve-dark), var(--mauve)); text-align: center; position: relative; overflow: hidden; }
.page-hero::after { content: ''; position: absolute; bottom: -1px; left: 0; right: 0; height: 60px; background: var(--white); clip-path: ellipse(55% 100% at 50% 100%); }
.page-hero .tag { color: rgba(255,255,255,0.65); }
.page-hero h1 { color: var(--white); }
.page-hero p { color: rgba(255,255,255,0.8); max-width: 520px; margin: 14px auto 0; font-size: 1rem; }

/* ── ABOUT / HOME ── */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 70px; align-items: center; }
.value-item { display: flex; gap: 16px; align-items: flex-start; margin-bottom: 20px; }
.value-icon { width: 42px; height: 42px; min-width: 42px; background: var(--blush); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.2rem; }
.value-item h4 { font-family: var(--font-b); font-size: 0.9rem; font-weight: 700; margin-bottom: 3px; }
.value-item p { font-size: 0.85rem; }

/* ── STATS ── */
.stats-row { display: grid; grid-template-columns: repeat(4,1fr); gap: 32px; }
.stat-num { font-family: var(--font-d); font-size: 3rem; font-weight: 600; color: var(--white); line-height: 1; }
.stat-label { color: rgba(255,255,255,0.7); font-size: 0.85rem; margin-top: 6px; }

/* ── STEPS ── */
.steps-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; }
.step-card { background: var(--white); border-radius: var(--radius); padding: 36px 28px; box-shadow: var(--shadow); border-bottom: 3px solid transparent; transition: var(--tr); }
.step-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-h); border-bottom-color: var(--mauve); }
.step-num { font-family: var(--font-d); font-size: 3rem; color: var(--gray-l); line-height: 1; margin-bottom: 10px; }
.step-card h3 { font-size: 1.05rem; margin-bottom: 10px; }
.step-card p { font-size: 0.88rem; }

/* ── NETWORK VISUAL ── */
.network-intro { display: grid; grid-template-columns: 1fr 1fr; gap: 70px; align-items: center; }
.network-visual { position: relative; height: 380px; }
.node { position: absolute; background: var(--mauve); border-radius: 50%; display: flex; align-items: center; justify-content: center; color: var(--white); font-size: 0.65rem; font-weight: 700; text-align: center; padding: 6px; box-shadow: var(--shadow); }
.node--center { width: 80px; height: 80px; background: var(--mauve-dark); top: 50%; left: 50%; transform: translate(-50%,-50%); z-index: 2; font-size: 0.7rem; }
.node--sm { width: 58px; height: 58px; background: var(--mauve-light); }
.node--xs { width: 44px; height: 44px; background: var(--rose); font-size: 0.58rem; }
.node-1 { top: 8%; left: 42%; }
.node-2 { top: 35%; left: 8%; }
.node-3 { top: 35%; right: 8%; }
.node-4 { bottom: 18%; left: 20%; }
.node-5 { bottom: 18%; right: 20%; }
svg.connections { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }

/* ── MYTHS ── */
.myths-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.myth-card { border-radius: var(--radius); padding: 28px; border-left: 4px solid; }
.myth-card--myth { background: rgba(255,255,255,0.08); border-color: var(--rose); }
.myth-card--truth { background: rgba(255,255,255,0.05); border-color: rgba(255,255,255,0.35); }
.myth-label { font-size: 0.68rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--rose); margin-bottom: 10px; }
.myth-card--truth .myth-label { color: rgba(255,255,255,0.55); }
.myth-card h3 { font-size: 1rem; color: var(--white); margin-bottom: 8px; }

/* ── BENEFITS ── */
.benefits-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 22px; }
.benefit-card { background: var(--white); border-radius: var(--radius); padding: 32px 24px; box-shadow: var(--shadow); text-align: center; transition: var(--tr); }
.benefit-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-h); }
.benefit-icon { font-size: 2.2rem; margin-bottom: 14px; }
.benefit-card h3 { font-size: 1rem; margin-bottom: 8px; }
.benefit-card p { font-size: 0.85rem; }

/* ── TEAM PUBLIC ── */
.video-grid-pub { display: grid; grid-template-columns: repeat(2,1fr); gap: 28px; }
.video-card { background: var(--white); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); transition: var(--tr); }
.video-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-h); }
.video-card__player { position: relative; width: 100%; aspect-ratio: 16/9; background: var(--char); }
.video-card__player iframe, .video-card__player video { width: 100%; height: 100%; display: block; border: none; }
.video-card__missing { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; color: rgba(255,255,255,0.5); font-size: 0.85rem; }
.video-card__body { padding: 20px 22px; }
.video-card__title { font-size: 1.05rem; margin-bottom: 6px; }
.video-card__dur { display: inline-block; font-size: 0.75rem; font-weight: 700; color: var(--mauve); margin-bottom: 8px; }
.video-card__desc { font-size: 0.85rem; color: var(--gray); line-height: 1.55; }

.team-grid-pub { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; }
.team-card { background: var(--white); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); transition: var(--tr); }
.team-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-h); }
.team-card__photo { height: 200px; background: linear-gradient(135deg, var(--mauve), var(--mauve-light)); overflow: hidden; display: flex; align-items: center; justify-content: center; }
.team-card__photo img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.team-card__initial { font-size: 3.5rem; color: rgba(255,255,255,0.55); font-family: var(--font-d); font-weight: 600; }
.team-card__body { padding: 22px; }
.team-card__name { font-size: 1.1rem; margin-bottom: 3px; }
.team-card__role { font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; color: var(--mauve); margin-bottom: 5px; }
.team-card__city { font-size: 0.8rem; color: var(--gray); margin-bottom: 10px; }
.team-card__bio { font-size: 0.83rem; color: var(--gray); line-height: 1.55; margin-bottom: 14px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.team-card__links { display: flex; gap: 8px; flex-wrap: wrap; }
.team-link-btn { width: 34px; height: 34px; background: var(--blush); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 0.9rem; transition: var(--tr); }
.team-link-btn:hover { background: var(--mauve); transform: scale(1.1); }

/* ── TESTIMONIALS ── */
.testimonials-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 22px; }
.testi-card { background: rgba(255,255,255,0.09); border-radius: var(--radius); padding: 28px; border: 1px solid rgba(255,255,255,0.12); }
.testi-photos { display: flex; gap: 10px; margin-bottom: 16px; flex-wrap: wrap; }
.testi-photo { width: 70px; height: 70px; border-radius: 10px; object-fit: cover; border: 2px solid rgba(255,255,255,0.2); }
.testi-text { font-family: var(--font-d); font-size: 1rem; font-style: italic; color: var(--white); margin-bottom: 14px; line-height: 1.5; }
.testi-author { font-size: 0.78rem; font-weight: 700; color: var(--rose); text-transform: uppercase; letter-spacing: 0.08em; }

/* ── JOIN FORM ── */
.join-wrap { max-width: 680px; margin: 0 auto; background: var(--white); border-radius: var(--radius); padding: 52px 48px; box-shadow: var(--shadow); }
.form-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group.full { grid-column: 1/-1; }
.form-group label { font-size: 0.74rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--char); }
.form-group input, .form-group select, .form-group textarea { padding: 13px 16px; border: 2px solid var(--gray-l); border-radius: 10px; font-size: 1rem; color: var(--char); background: var(--cream); outline: none; transition: var(--tr); width: 100%; }
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { border-color: var(--mauve); background: var(--white); }
.form-group textarea { resize: vertical; min-height: 100px; }
.success-msg { background: #e8f5e9; color: #2e7d32; border-radius: 10px; padding: 14px 18px; font-size: 0.9rem; display: none; margin-top: 14px; }
.success-msg.show { display: block; }

/* ── LOCATIONS ── */
.locations-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 22px; }
.location-card { background: var(--white); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); transition: var(--tr); }
.location-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-h); }
.location-card__top { height: 100px; background: linear-gradient(135deg, var(--mauve), var(--mauve-light)); display: flex; align-items: center; justify-content: center; font-size: 2.8rem; }
.location-card__body { padding: 22px; }
.location-card__body h3 { font-size: 1.05rem; margin-bottom: 7px; }
.location-card__body p { font-size: 0.85rem; margin-bottom: 12px; }
.loc-tag { display: inline-block; font-size: 0.7rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--mauve); background: var(--blush); padding: 3px 10px; border-radius: 20px; margin: 2px 2px; }

/* ── WORK MODES ── */
.work-modes { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 48px; }
.work-card { border-radius: var(--radius); padding: 36px 32px; display: flex; gap: 20px; }
.work-card--online { background: var(--blush); }
.work-card--live { background: var(--cream); border: 2px solid var(--gray-l); }
.work-card__icon { font-size: 2.4rem; flex-shrink: 0; }
.work-card h3 { margin-bottom: 10px; }
.work-card ul { display: grid; gap: 6px; margin-top: 12px; }
.work-card li { font-size: 0.88rem; color: var(--gray); }

/* ── CONTACTS ── */
.contacts-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 70px; align-items: start; }
.contact-info { display: grid; gap: 20px; }
.contact-item { display: flex; gap: 14px; align-items: flex-start; }
.contact-item__icon { width: 44px; height: 44px; min-width: 44px; background: var(--blush); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.2rem; }
.contact-item h4 { font-family: var(--font-b); font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; color: var(--mauve); margin-bottom: 3px; }
.contact-item a, .contact-item span { font-size: 0.92rem; color: var(--char); }
.contact-item a:hover { color: var(--mauve); }
.social-links { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 28px; }
.social-btn { display: flex; align-items: center; gap: 7px; padding: 9px 18px; border-radius: 50px; font-size: 0.82rem; font-weight: 700; border: 2px solid var(--gray-l); color: var(--char); transition: var(--tr); }
.social-btn:hover { border-color: var(--mauve); color: var(--mauve); transform: translateY(-2px); }
.contact-form-box { background: var(--cream); border-radius: var(--radius); padding: 40px 36px; }

/* ── FAQ ── */
.faq-card { background: var(--white); border-radius: 12px; padding: 22px 26px; box-shadow: 0 2px 14px rgba(0,0,0,0.06); margin-bottom: 14px; }
.faq-card h4 { font-family: var(--font-b); font-size: 0.92rem; font-weight: 700; color: var(--mauve); margin-bottom: 7px; }
.faq-card p { font-size: 0.88rem; }

/* ── FOOTER ── */
.footer { background: var(--char); padding: 56px 0 28px; }
.footer__grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 50px; margin-bottom: 44px; }
.footer__logo { font-family: var(--font-d); font-size: 1.8rem; color: var(--white); margin-bottom: 10px; }
.footer__logo span { color: var(--rose); font-style: italic; }
.footer__tagline { font-size: 0.88rem; color: rgba(255,255,255,0.55); line-height: 1.7; }
.footer__nav h4 { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--white); margin-bottom: 18px; }
.footer__nav li { margin-bottom: 9px; }
.footer__nav a { font-size: 0.88rem; color: rgba(255,255,255,0.55); transition: var(--tr); }
.footer__nav a:hover { color: var(--rose); }
.footer__bottom { border-top: 1px solid rgba(255,255,255,0.1); padding-top: 24px; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px; font-size: 0.8rem; color: rgba(255,255,255,0.4); }

/* ── COOKIE ── */
.cookie-bar { position: fixed; bottom: 0; left: 0; right: 0; background: var(--char); padding: 16px 24px; display: flex; align-items: center; justify-content: space-between; gap: 16px; z-index: 9999; transform: translateY(100%); transition: transform 0.4s ease; flex-wrap: wrap; }
.cookie-bar.show { transform: none; }
.cookie-bar p { font-size: 0.85rem; color: rgba(255,255,255,0.75); flex: 1; }
.cookie-bar a { color: var(--rose); }

/* ── SCROLL TOP ── */
.scroll-top { position: fixed; bottom: 24px; right: 24px; width: 46px; height: 46px; background: var(--mauve); color: var(--white); border-radius: 50%; border: none; cursor: pointer; font-size: 1.1rem; display: flex; align-items: center; justify-content: center; box-shadow: var(--shadow); opacity: 0; pointer-events: none; transition: var(--tr); z-index: 500; }
.scroll-top.show { opacity: 1; pointer-events: auto; }
.scroll-top:hover { background: var(--mauve-dark); transform: translateY(-3px); }

/* ════════════════════════════════
   TABLET  ≤ 900px
════════════════════════════════ */
@media (max-width: 900px) {
  .container { padding: 0 18px; }
  .section { padding: 60px 0; }

  /* Nav */
  .nav__links { display: none; position: fixed; top: 0; right: 0; height: 100dvh; width: min(290px, 82vw); background: var(--white); flex-direction: column; justify-content: center; align-items: center; gap: 4px; box-shadow: -4px 0 40px rgba(0,0,0,0.15); z-index: 999; padding: 40px 20px; overflow-y: auto; }
  .nav__links.open { display: flex; }
  .nav__links a { color: var(--char) !important; font-size: 0.95rem; width: 100%; text-align: center; padding: 13px 0; border-bottom: 1px solid var(--gray-l); white-space: nowrap; }
  .nav__links a::after { display: none; }
  .nav__links li:last-child { border-bottom: none; }
  /* Nascondi lingua desktop, mostra lingua nel menu mobile */
  #desktopLang { display: none; }
  .nav__links .lang-mobile { display: flex; justify-content: center; padding-top: 16px; }
  .nav__toggle { display: flex; z-index: 1001; }

  /* Hero */
  .hero { padding: 100px 0 80px; }
  .hero__content { grid-template-columns: 1fr; gap: 32px; text-align: center; }
  .hero__img-wrap { order: -1; }
  .hero__img-frame { width: 220px; height: 270px; margin: 0 auto; }
  .hero__img-frame::before { display: none; }
  .hero__badge { left: 50%; transform: translateX(-50%); bottom: -16px; }
  .hero__ctas { justify-content: center; }
  .hero__sub { margin: 0 auto 32px; }
  .hero::after { height: 50px; }

  /* Grids */
  .about-grid, .network-intro, .contacts-grid { grid-template-columns: 1fr; gap: 40px; }
  .steps-grid, .benefits-grid { grid-template-columns: 1fr 1fr; gap: 16px; }
  .team-grid-pub, .locations-grid, .video-grid-pub { grid-template-columns: 1fr 1fr; gap: 16px; }
  .testimonials-grid { grid-template-columns: 1fr; gap: 16px; }
  .myths-grid { grid-template-columns: 1fr; gap: 14px; }
  .work-modes { grid-template-columns: 1fr; gap: 16px; }
  .stats-row { grid-template-columns: 1fr 1fr; gap: 24px; }
  .footer__grid { grid-template-columns: 1fr; gap: 32px; }
  .footer__bottom { flex-direction: column; text-align: center; }

  /* Forms */
  .join-wrap { padding: 36px 24px; }
  .form-grid-2 { grid-template-columns: 1fr; }
  .contact-form-box { padding: 28px 20px; }
  .work-card { flex-direction: column; gap: 12px; padding: 26px 20px; }

  /* Page hero */
  .page-hero { padding: 130px 0 70px; }
}

/* ════════════════════════════════
   MOBILE  ≤ 480px
════════════════════════════════ */
@media (max-width: 480px) {
  .container { padding: 0 14px; }
  .section { padding: 48px 0; }
  h1 { font-size: 1.9rem; }
  h2 { font-size: 1.45rem; }

  /* Prevent iOS zoom on inputs */
  input, select, textarea { font-size: 16px !important; }

  /* Hero */
  .hero { padding: 90px 0 70px; }
  .hero__img-frame { width: 185px; height: 225px; }
  .hero__ctas { flex-direction: column; align-items: center; }
  .hero__ctas .btn { width: 100%; max-width: 260px; }

  /* Grids → 1 col */
  .steps-grid, .benefits-grid, .team-grid-pub, .locations-grid, .video-grid-pub { grid-template-columns: 1fr; }
  .stats-row { grid-template-columns: 1fr 1fr; gap: 18px; }
  .stat-num { font-size: 2.2rem; }

  /* Join form */
  .join-wrap { padding: 26px 14px; border-radius: 12px; }

  /* Page hero */
  .page-hero { padding: 110px 0 60px; }

  /* Footer */
  .footer { padding: 40px 0 24px; }

  /* Cookie */
  .cookie-bar { flex-direction: column; padding: 14px 16px; }

  /* Nav */
  .nav__logo { font-size: 1.3rem; }
  .header { padding: 14px 0; }
}

/* Touch devices — remove hover effects */
@media (hover: none) {
  .step-card:hover, .benefit-card:hover, .location-card:hover, .team-card:hover { transform: none; box-shadow: var(--shadow); }
  .btn:hover { transform: none; }
  .social-btn:hover { transform: none; }
  .btn { min-height: 48px; }
  .nav__links a { min-height: 48px; display: flex; align-items: center; justify-content: center; }
}
