/* Onamikai A.S.D. — Shared Stylesheet — Poppins edition */

:root {
  --red: #CC0000;
  --red-dark: #990000;
  --white: #ffffff;
  --off-white: #f8f8f8;
  --black: #111111;
  --gray: #555555;
  --gray-light: #e5e5e5;
  --font-title: 'Poppins', sans-serif;
  --font-body: 'Poppins', sans-serif;
  --topbar-h: 36px;
  --header-h: 72px;
  --radius: 6px;
  --shadow: 0 2px 16px rgba(0,0,0,0.10);
  --shadow-md: 0 4px 32px rgba(0,0,0,0.16);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--font-body); color: var(--black); background: var(--white); overflow-x: hidden; }

::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: #f0f0f0; }
::-webkit-scrollbar-thumb { background: var(--red); border-radius: 3px; }

/* ─── DESKTOP TOP BAR ── */
.desktop-topbar {
  background: var(--red);
  color: #fff;
  font-size: 0.78rem; font-weight: 500;
  padding: 7px 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  position: fixed; top: 0; left: 0; right: 0; z-index: 1001;
  height: var(--topbar-h);
}
.desktop-topbar a {
  color: #fff; text-decoration: none;
  display: flex; align-items: center; gap: 6px;
  transition: opacity 0.2s;
}
.desktop-topbar a:hover { opacity: 0.85; }

/* ─── MOBILE TOP BAR ── */
.mobile-topbar {
  display: none;
  background: var(--red);
  color: #fff;
  font-size: 0.78rem; font-weight: 500;
  padding: 7px 16px;
  justify-content: center;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  position: fixed; top: 0; left: 0; right: 0; z-index: 1001;
  height: var(--topbar-h);
}
.mobile-topbar a {
  color: #fff; text-decoration: none;
  display: flex; align-items: center; gap: 5px;
}
.mobile-topbar a:active { opacity: 0.8; }

/* ─── HEADER ─────────────────────────── */
header {
  position: fixed; top: var(--topbar-h); left: 0; right: 0; z-index: 1000;
  height: var(--header-h);
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(8px);
  border-bottom: 2px solid var(--red);
  display: flex; align-items: center; padding: 0 28px;
  gap: 14px;
}

.header-logo {
  display: flex; align-items: center; gap: 12px;
  text-decoration: none; flex-shrink: 0;
}
.header-logo img { height: 46px; width: auto; }
.header-logo-text { display: flex; flex-direction: column; line-height: 1.2; }
.header-logo-name {
  font-family: var(--font-title); font-size: 1.1rem; font-weight: 600;
  color: var(--red); letter-spacing: 0.14em; text-transform: uppercase;
}
.header-logo-sub {
  font-family: var(--font-title); font-size: 0.6rem; font-weight: 400;
  color: var(--gray); letter-spacing: 0.08em; text-transform: uppercase; margin-top: 2px;
}

nav.desktop-nav { display: flex; gap: 2px; margin-left: auto; }
nav.desktop-nav a {
  font-size: 0.85rem; font-weight: 500; color: var(--black);
  text-decoration: none; padding: 7px 14px; border-radius: var(--radius);
  transition: background 0.2s, color 0.2s; white-space: nowrap;
  letter-spacing: 0.02em;
}
nav.desktop-nav a:hover, nav.desktop-nav a.active { background: var(--red); color: var(--white); }

.header-right {
  display: flex; align-items: center; gap: 10px; margin-left: 14px; flex-shrink: 0;
}

.social-icon {
  width: 32px; height: 32px; min-width: 32px; min-height: 32px;
  border-radius: 50%;
  background: var(--red);
  color: var(--white);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.82rem; text-decoration: none;
  transition: all 0.25s;
  box-shadow: 0 2px 8px rgba(204,0,0,0.25);
  flex-shrink: 0;
  line-height: 1;
}
.social-icon:hover { background: var(--red-dark); transform: translateY(-2px) scale(1.1); }

.btn-profile {
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--black); color: var(--white);
  border: none; cursor: pointer; font-size: 0.95rem;
  display: flex; align-items: center; justify-content: center;
  transition: all 0.25s; overflow: hidden;
}
.btn-profile:hover { background: var(--red); transform: scale(1.08); }
.btn-profile img { width: 34px; height: 34px; border-radius: 50%; object-fit: cover; }

.hamburger {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer;
}
.hamburger span { display: block; width: 24px; height: 2px; background: var(--black); border-radius: 2px; transition: all 0.3s; }

/* ─── MOBILE NAV ──────────────────────── */
.mobile-nav-overlay {
  display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.45);
  z-index: 998; backdrop-filter: blur(2px);
}
.mobile-nav-overlay.open { display: block; }

.mobile-nav {
  position: fixed; top: 0; right: -290px; width: 270px; bottom: 0;
  background: #0d0d0d; z-index: 999;
  display: flex; flex-direction: column;
  padding-top: calc(var(--topbar-h) + var(--header-h) + 20px); gap: 2px;
  transition: right 0.3s cubic-bezier(0.4,0,0.2,1);
  border-left: 1px solid rgba(204,0,0,0.3);
  box-shadow: -8px 0 40px rgba(0,0,0,0.4);
}
.mobile-nav.open { right: 0; }
.mobile-nav a {
  font-family: var(--font-title); font-size: 0.95rem; font-weight: 500;
  color: rgba(255,255,255,0.82); text-decoration: none;
  padding: 15px 28px; border-left: 3px solid transparent;
  transition: color 0.2s, border-color 0.2s, background 0.2s;
  letter-spacing: 0.05em; text-transform: uppercase;
  display: flex; align-items: center;
}
.mobile-nav a:hover { color: var(--white); border-left-color: var(--red); background: rgba(204,0,0,0.1); }
.mobile-nav-close {
  position: absolute; top: 18px; right: 18px;
  background: rgba(255,255,255,0.08); border: none; color: rgba(255,255,255,0.6);
  width: 32px; height: 32px; border-radius: 50%; cursor: pointer; font-size: 0.9rem;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.2s;
}
.mobile-nav-close:hover { background: var(--red); color: var(--white); }

.mobile-nav-bottom {
  padding: 20px 28px;
  border-top: 1px solid rgba(255,255,255,0.08);
  margin-top: 12px;
}
.mobile-nav-phone {
  color: rgba(255,255,255,0.7); font-size: 0.88rem;
  display: flex; align-items: center; gap: 8px;
  margin-bottom: 12px; text-decoration: none;
}
.mobile-nav-phone:hover { color: #fff; }
.mobile-nav-phone i { color: var(--red); }
.mobile-nav-social { display: flex; gap: 12px; margin-top: 4px; }
.mobile-nav-social a {
  color: var(--red); font-size: 1.3rem; text-decoration: none;
  display: flex; align-items: center; justify-content: center;
  border: none; background: none; padding: 4px;
  transition: color 0.2s; border-left: none !important;
}
.mobile-nav-social a:hover { color: #fff; border-left-color: transparent !important; background: none !important; }

/* ─── MAIN CONTENT PADDING ─────────────── */
.main-content {
  min-height: 100vh;
  padding-top: calc(var(--header-h) + var(--topbar-h));
}

/* ─── HERO ──────────────────────────── */
.hero {
  position: relative; height: calc(100vh - var(--header-h) - var(--topbar-h)); min-height: 540px;
  background: url('https://onamikai.com/foto/scuola-karate-como.jpg') center/cover no-repeat;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
}
.hero::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.28) 0%, rgba(0,0,0,0.18) 100%);
}
.hero-content {
  position: relative; z-index: 2; text-align: center; color: var(--white); padding: 24px;
}
.hero-content h1 {
  font-family: var(--font-title); font-size: clamp(2.4rem, 6vw, 5rem);
  font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase;
  text-shadow: 0 2px 16px rgba(0,0,0,0.6);
  margin-bottom: 8px;
}
.hero-content p {
  font-family: var(--font-title); font-size: clamp(0.85rem, 2vw, 1.05rem);
  font-weight: 400; letter-spacing: 0.1em; text-transform: uppercase;
  opacity: 0.88; margin-bottom: 32px; text-shadow: 0 1px 6px rgba(0,0,0,0.4);
}
.hero-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

.btn-primary {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--red); color: var(--white);
  font-size: 0.95rem; font-weight: 500; padding: 14px 30px;
  border-radius: var(--radius); text-decoration: none; border: none; cursor: pointer;
  box-shadow: 0 4px 20px rgba(204,0,0,0.4); transition: background 0.2s, transform 0.15s;
  letter-spacing: 0.03em;
}
.btn-primary:hover { background: var(--red-dark); transform: translateY(-2px); }

.btn-wa-hero {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,0.18);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: var(--white);
  font-size: 0.95rem; font-weight: 500; padding: 14px 30px;
  border-radius: var(--radius); text-decoration: none; border: 1.5px solid rgba(255,255,255,0.45); cursor: pointer;
  transition: background 0.2s, border-color 0.2s, transform 0.15s;
  letter-spacing: 0.03em;
}
.btn-wa-hero:hover { background: rgba(255,255,255,0.28); border-color: rgba(255,255,255,0.7); transform: translateY(-2px); }

.btn-secondary {
  display: inline-flex; align-items: center; gap: 8px;
  background: transparent; color: var(--white);
  font-size: 0.92rem; font-weight: 500; padding: 12px 24px;
  border-radius: var(--radius); text-decoration: none;
  border: 2px solid rgba(255,255,255,0.7); cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
}
.btn-secondary:hover { background: rgba(255,255,255,0.15); border-color: #fff; }

/* ─── SECTIONS ───────────────────────── */
.section { padding: 80px 24px; max-width: 1100px; margin: 0 auto; }
.section-title {
  font-family: var(--font-title); font-size: clamp(1.5rem, 4vw, 2.2rem);
  font-weight: 600; color: var(--black); margin-bottom: 10px;
  position: relative; display: inline-block;
  text-transform: uppercase; letter-spacing: 0.06em;
}
.section-title::after {
  content: ''; display: block; width: 48px; height: 3px;
  background: var(--red); margin-top: 8px; border-radius: 2px;
}
.section-subtitle { color: var(--gray); margin-bottom: 40px; font-size: 0.97rem; margin-top: 6px; }

/* Chi siamo */
.chi-siamo-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 52px; align-items: center; }
.chi-siamo-grid img { width: 100%; border-radius: var(--radius); box-shadow: var(--shadow-md); }
.chi-siamo-text p { color: var(--gray); line-height: 1.85; margin-bottom: 16px; }
.values { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 24px; }
.value-card {
  background: var(--off-white); border-radius: var(--radius);
  padding: 22px 16px; text-align: center; border-top: 3px solid var(--red);
  width: 90%;
}
.value-card i { font-size: 1.6rem; color: var(--red); margin-bottom: 8px; display: block; }
.value-card h4 { font-weight: 500; font-size: 0.9rem; text-transform: uppercase; letter-spacing: 0.04em; }

/* Partner */
.partners-section { background: var(--off-white); padding: 60px 24px; }
.partners-inner { max-width: 1100px; margin: 0 auto; text-align: center; }
.partners-logos { display: flex; align-items: center; justify-content: center; gap: 40px; flex-wrap: wrap; margin-top: 36px; }
.partner-logo-link {
  display: flex; align-items: center; justify-content: center;
  opacity: 0.75; transition: opacity 0.2s, transform 0.2s;
  filter: grayscale(30%);
}
.partner-logo-link:hover { opacity: 1; transform: scale(1.07); filter: grayscale(0%); }
.partner-logo-link img { height: 60px; width: auto; max-width: 160px; object-fit: contain; }

/* Dove Trovarci */
.dove-trovarci { background: var(--black); padding: 80px 24px; }
.dove-trovarci .inner { max-width: 1100px; margin: 0 auto; }
.dove-trovarci .dt-header { margin-bottom: 48px; }
.dove-trovarci .section-title { color: var(--white); }
.dove-trovarci .section-title::after { background: var(--red); }
.dove-trovarci .section-subtitle { color: rgba(255,255,255,0.55); }
.sedi-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.sede-card {
  background: rgba(255,255,255,0.05); border-radius: var(--radius);
  border: 1px solid rgba(255,255,255,0.1); border-top: 3px solid var(--red);
  padding: 28px 24px; display: flex; flex-direction: column; gap: 16px;
}
.sede-card h3 {
  font-family: var(--font-title); font-weight: 500; font-size: 1.05rem;
  color: var(--white); text-transform: uppercase; letter-spacing: 0.06em;
}
.sede-card p { color: rgba(255,255,255,0.65); font-size: 0.9rem; line-height: 1.7; }
.sede-card address { color: rgba(255,255,255,0.75); font-style: normal; font-size: 0.88rem; line-height: 1.6; }
.sede-map-wrap { border-radius: 4px; overflow: hidden; margin-top: 4px; }
.sede-map-wrap iframe { display: block; width: 100%; height: 220px; border: none; }
.map-link {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--red); color: var(--white); padding: 10px 20px;
  border-radius: var(--radius); text-decoration: none; font-weight: 500;
  font-size: 0.85rem; transition: background 0.2s; align-self: flex-start;
}
.map-link:hover { background: var(--red-dark); }

/* Corsi */
.corsi-hero { background: var(--black); color: var(--white); text-align: center; padding: 70px 24px; }
.corsi-hero h1 {
  font-family: var(--font-title); font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em;
}
.corsi-hero p { color: rgba(255,255,255,0.7); margin-top: 10px; }
.corsi-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: 24px; }
.corso-card {
  background: var(--white); border-radius: var(--radius);
  border: 1px solid var(--gray-light); overflow: hidden;
  box-shadow: var(--shadow); transition: transform 0.2s, box-shadow 0.2s;
  display: flex; flex-direction: column;
}
.corso-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.corso-card-image { width: 100%; height: 200px; object-fit: cover; display: block; }
.corso-card-top { background: var(--red); padding: 24px; color: var(--white); }
.corso-card-top h3 {
  font-family: var(--font-title); font-size: 1.1rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.05em;
}
.corso-card-top p { opacity: 0.85; font-size: 0.88rem; margin-top: 4px; }
.corso-card-body { padding: 24px; flex: 1; display: flex; flex-direction: column; }
.corso-card-body ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.corso-card-body ul li { display: flex; align-items: flex-start; gap: 8px; color: var(--gray); font-size: 0.92rem; }
.corso-card-body ul li i { color: var(--red); width: 16px; margin-top: 2px; flex-shrink: 0; }

/* Sedi allenamento */
.sedi-allenamento { background: var(--off-white); padding: 80px 24px; }
.sedi-allenamento .inner { max-width: 1100px; margin: 0 auto; }

/* Orari */
.orari-hero { background: var(--red); color: var(--white); text-align: center; padding: 70px 24px; }
.orari-hero h1 {
  font-family: var(--font-title); font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em;
}
.orari-hero p { opacity: 0.88; margin-top: 10px; }
.orari-table-wrap { overflow-x: auto; border-radius: var(--radius); box-shadow: var(--shadow); }
.orari-table { width: 100%; border-collapse: collapse; }
.orari-table th {
  background: var(--black); color: var(--white);
  padding: 14px 16px; text-align: left; font-weight: 500; font-size: 0.85rem;
  text-transform: uppercase; letter-spacing: 0.05em;
}
.orari-table td { padding: 12px 16px; border-bottom: 1px solid var(--gray-light); font-size: 0.9rem; vertical-align: middle; }
.orari-table tr:last-child td { border-bottom: none; }
.orari-table tr:nth-child(even) td { background: var(--off-white); }
.orari-table .day-label { font-weight: 600; color: var(--black); }
.orari-table .sede-label { font-size: 0.82rem; color: var(--gray); }
.badge-chiuso { color: var(--gray); font-style: italic; }
.badge-open { color: var(--red); font-weight: 500; }

/* Belt color dots */
.belt-dots { display: flex; gap: 5px; align-items: center; flex-wrap: wrap; }
.belt-dot {
  width: 13px; height: 13px; border-radius: 50%;
  display: inline-block; flex-shrink: 0;
  border: 1px solid rgba(0,0,0,0.18);
}
.belt-white  { background: #f0f0f0; }
.belt-yellow { background: #F5C518; }
.belt-orange { background: #FF8C00; }
.belt-green  { background: #2E8B57; }
.belt-blue   { background: #1565C0; }
.belt-brown  { background: #795548; }
.belt-black  { background: #212121; border-color: rgba(255,255,255,0.3); }
.class-name-cell { font-weight: 500; font-size: 0.88rem; margin-bottom: 4px; }

/* Row spanning for orari */
.orari-table td.day-cell { vertical-align: middle; font-weight: 600; border-right: 2px solid var(--gray-light); }

/* Contatti */
.contatti-hero { background: var(--black); color: var(--white); text-align: center; padding: 70px 24px; }
.contatti-hero h1 {
  font-family: var(--font-title); font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em;
}
.contatti-hero p { color: rgba(255,255,255,0.7); margin-top: 10px; }
.contatti-form-wrap { max-width: 680px; margin: 0 auto; }
.contatti-form input, .contatti-form textarea {
  width: 100%; padding: 12px 16px; border: 1.5px solid var(--gray-light);
  border-radius: var(--radius); font-family: var(--font-body); font-size: 0.95rem;
  background: var(--white); transition: border-color 0.2s; margin-bottom: 14px;
}
.contatti-form input:focus, .contatti-form textarea:focus { outline: none; border-color: var(--red); }
.contatti-form textarea { resize: vertical; min-height: 150px; }
.form-label { font-size: 0.85rem; font-weight: 500; color: var(--gray); margin-bottom: 4px; display: block; }

.contact-icon {
  width: 40px; height: 40px; background: var(--red); border-radius: 50%;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
  color: var(--white);
}
.contact-info { display: flex; flex-direction: column; gap: 18px; }
.contact-item { display: flex; align-items: flex-start; gap: 14px; }
.contact-item div strong { display: block; margin-bottom: 2px; }

/* ─── CONTACT LIST (pagina contatti) ─── */
.contact-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 40px;
}
.contact-list-item {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  color: var(--black);
  padding: 14px 18px;
  background: var(--off-white);
  border-radius: var(--radius);
  border-left: 3px solid transparent;
  transition: border-color 0.18s, background 0.18s;
}
.contact-list-item:hover {
  border-left-color: var(--red);
  background: #f3f3f3;
}
.cl-ico {
  width: 38px;
  height: 38px;
  min-width: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 0.95rem;
}
.cl-text {
  font-size: 0.97rem;
  font-weight: 500;
  color: var(--black);
  white-space: nowrap;
}

/* ─── FOOTER ─────────────────────────── */
footer.site-footer {
  background: #111111;
  color: rgba(255,255,255,0.55);
  font-size: 0.85rem;
  border-top: none;
  position: relative;
}
footer.site-footer::before {
  content: '';
  display: block;
  width: 60%;
  height: 2px;
  margin: 0 auto;
  background: linear-gradient(to right, transparent, var(--red) 20%, var(--red) 80%, transparent);
  opacity: 0.7;
}
.footer-main {
  max-width: 1100px; margin: 0 auto;
  padding: 52px 24px 40px;
  display: grid; grid-template-columns: 2fr 1fr 1.4fr 1fr; gap: 36px;
}

/* Footer brand: 3 centered lines */
.footer-brand {
  text-align: center;
  display: flex; flex-direction: column; align-items: center;
}
.footer-brand .footer-logo-name {
  font-family: var(--font-title); font-size: 1.1rem; font-weight: 600;
  color: var(--white); letter-spacing: 0.14em; text-transform: uppercase;
  line-height: 1.3;
}
.footer-brand .footer-logo-sub {
  font-family: var(--font-title); font-size: 0.88rem; font-weight: 400;
  color: rgba(255,255,255,0.65); letter-spacing: 0.04em;
  margin-top: 4px; display: block;
}
.footer-brand p {
  margin-top: 4px; color: rgba(255,255,255,0.65);
  font-size: 0.88rem; font-weight: 400; line-height: 1.6;
}

.footer-sedi-links { flex-direction: column; gap: 6px; align-items: center; margin-top: 2px; }
.footer-sedi-links a { display: flex; align-items: center; gap: 6px; font-size: 0.82rem; color: rgba(255,255,255,0.55); text-decoration: none; transition: color 0.2s; justify-content: center; margin-bottom: 0; }
.footer-sedi-links a:hover { color: var(--red); }
.footer-sedi-links a i { color: var(--red); font-size: 0.72rem; flex-shrink: 0; }

.footer-col h4 {
  font-family: var(--font-title); font-size: 0.72rem; font-weight: 600;
  color: var(--white); text-transform: uppercase; letter-spacing: 0.1em;
  margin-bottom: 16px; padding-bottom: 8px;
  border-bottom: 1px solid rgba(204,0,0,0.4);
}
.footer-col a, .footer-col span {
  display: block; color: rgba(255,255,255,0.55);
  text-decoration: none; margin-bottom: 8px; font-size: 0.85rem;
  transition: color 0.2s;
}
.footer-col a:hover { color: var(--red); }

.footer-docs a { color: rgba(255,255,255,0.45); font-size: 0.82rem; }
.footer-docs a:hover { color: var(--red); }

.footer-contacts a { display: flex; align-items: center; gap: 8px; }
.footer-contacts a i { width: 16px; color: var(--red); }

.footer-social-icons { display: flex; gap: 14px; margin-top: 8px; }
.footer-social-icons a {
  color: var(--red);
  background: none;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem; text-decoration: none; transition: color 0.2s;
  margin-bottom: 0; padding: 0;
}
.footer-social-icons a:hover { color: #fff; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 18px 24px; text-align: center;
  font-size: 0.78rem; color: rgba(255,255,255,0.3);
  max-width: 100%;
}

/* ─── WHATSAPP BUBBLE ─────────────────── */
.wa-bubble {
  position: fixed; bottom: 24px; right: 24px; z-index: 2000;
  width: 66px; height: 66px; background: var(--red); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--white); font-size: 1.75rem; text-decoration: none;
  box-shadow: 0 4px 20px rgba(204,0,0,0.45);
  transition: transform 0.2s, background 0.2s;
  animation: waPulse 2.5s infinite;
}
.wa-bubble:hover { transform: scale(1.12); background: var(--red-dark); animation: none; }
@keyframes waPulse {
  0%, 100% { box-shadow: 0 4px 20px rgba(204,0,0,0.45), 0 0 0 0 rgba(204,0,0,0.3); }
  60%       { box-shadow: 0 4px 20px rgba(204,0,0,0.45), 0 0 0 14px rgba(204,0,0,0); }
}

/* ─── WA CHAT WIDGET ─────────────────── */
.wa-chat-panel {
  position: fixed; bottom: 90px; right: 24px; z-index: 1999;
  width: 320px; background: #fff; border-radius: 12px;
  box-shadow: 0 8px 40px rgba(0,0,0,0.18);
  overflow: hidden; display: none; flex-direction: column;
}
.wa-chat-panel.open { display: flex; }
.wa-chat-header {
  background: #075e54; color: #fff;
  padding: 14px 18px; display: flex; align-items: center; gap: 12px;
}
.wa-chat-header-avatar {
  width: 38px; height: 38px; border-radius: 50%; background: #25d366;
  display: flex; align-items: center; justify-content: center; font-size: 1.1rem;
}
.wa-chat-header-info strong { display: block; font-size: 0.95rem; }
.wa-chat-header-info span { font-size: 0.78rem; opacity: 0.75; }
.wa-chat-header-close {
  margin-left: auto; background: none; border: none;
  color: rgba(255,255,255,0.7); cursor: pointer; font-size: 1rem; padding: 4px;
}
.wa-chat-body { background: #e5ddd5; padding: 16px; min-height: 120px; }
.wa-chat-bubble {
  background: #fff; border-radius: 8px 8px 8px 0;
  padding: 10px 14px; font-size: 0.88rem; line-height: 1.5;
  color: #111; box-shadow: 0 1px 2px rgba(0,0,0,0.1); max-width: 90%;
}
.wa-chat-bubble span { display: block; font-size: 0.72rem; color: #999; text-align: right; margin-top: 4px; }
.wa-chat-input-wrap {
  display: flex; gap: 8px; padding: 12px 14px; background: #f0f0f0; align-items: center;
}
.wa-chat-input {
  flex: 1; border: none; border-radius: 20px; padding: 10px 16px;
  font-size: 0.88rem; background: #fff; outline: none;
}
.wa-chat-send {
  width: 38px; height: 38px; border-radius: 50%; background: var(--red);
  border: none; color: #fff; cursor: pointer; font-size: 1rem;
  display: flex; align-items: center; justify-content: center; transition: background 0.2s;
}
.wa-chat-send:hover { background: var(--red-dark); }

/* ─── MODAL ──────────────────────────── */
.modal-overlay {
  display: none; position: fixed; inset: 0;
  background: rgba(0,0,0,0.6); z-index: 3000;
  align-items: center; justify-content: center; padding: 16px;
}
.modal-overlay.open { display: flex; }
.modal {
  background: var(--white); border-radius: 10px;
  width: 100%; max-width: 480px;
  box-shadow: var(--shadow-md); overflow: hidden;
  max-height: 90vh; overflow-y: auto;
}
.modal-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 24px; border-bottom: 1px solid var(--gray-light);
}
.modal-header h3 { font-family: var(--font-title); font-size: 1rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; }
.modal-close {
  background: none; border: none; font-size: 1rem; cursor: pointer;
  color: var(--gray); padding: 4px; transition: color 0.2s;
}
.modal-close:hover { color: var(--red); }
.modal-body { padding: 24px; }
.form-input {
  width: 100%; padding: 11px 14px; border: 1.5px solid var(--gray-light);
  border-radius: var(--radius); font-family: var(--font-body); font-size: 0.93rem;
  background: var(--white); transition: border-color 0.2s; margin-bottom: 14px;
}
.form-input:focus { outline: none; border-color: var(--red); }
.btn-full { width: 100%; justify-content: center; }
.login-error {
  background: #fee2e2; color: #b91c1c; padding: 10px 14px;
  border-radius: var(--radius); font-size: 0.88rem;
  margin-bottom: 14px; display: none;
}
.login-error.show { display: block; }
.forgot-pw {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 0.82rem; color: var(--gray); text-decoration: none;
  margin-bottom: 14px; transition: color 0.2s;
}
.forgot-pw:hover { color: var(--red); }

/* Area Riservata */
.reserved-wrap { max-width: 860px; margin: 0 auto; padding: 40px 24px 80px; }
.reserved-header {
  display: flex; align-items: center; gap: 16px;
  padding: 20px 24px; background: var(--off-white);
  border-radius: var(--radius); margin-bottom: 28px;
  border-left: 3px solid var(--red);
  flex-wrap: wrap;
}
.reserved-user-info { display: flex; align-items: center; gap: 16px; flex: 1; min-width: 0; }
.reserved-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.btn-sm {
  padding: 7px 14px; font-size: 0.8rem; font-weight: 500;
  border-radius: var(--radius); cursor: pointer; border: none;
  display: inline-flex; align-items: center; gap: 5px;
  transition: background 0.2s;
}
.btn-gray { background: var(--gray-light); color: var(--black); }
.btn-gray:hover { background: #d0d0d0; }
.btn-red { background: var(--red); color: var(--white); }
.btn-red:hover { background: var(--red-dark); }
.reserved-tabs { display: flex; border-bottom: 2px solid var(--gray-light); margin-bottom: 24px; }
.reserved-tab {
  padding: 10px 20px; font-size: 0.88rem; font-weight: 500;
  cursor: pointer; border: none; background: none; color: var(--gray);
  border-bottom: 2px solid transparent; margin-bottom: -2px;
  transition: color 0.2s, border-color 0.2s; text-transform: uppercase; letter-spacing: 0.04em;
}
.reserved-tab:hover { color: var(--red); }
.reserved-tab.active { color: var(--red); border-bottom-color: var(--red); }
.btn-back {
  background: none; border: none; cursor: pointer;
  color: var(--gray); font-size: 0.88rem; display: flex; align-items: center; gap: 6px;
  padding: 0; transition: color 0.2s;
}
.btn-back:hover { color: var(--red); }
.quote-list { display: flex; flex-direction: column; gap: 12px; }
.quote-item { padding: 18px 20px; background: var(--off-white); border-radius: var(--radius); border-left: 3px solid var(--red); }
.quote-item-header { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px; }
.quote-item h4 { font-size: 0.95rem; font-weight: 500; }
.quote-amount { font-size: 1.2rem; font-weight: 600; color: var(--red); }
.quote-status { font-size: 0.78rem; font-weight: 500; padding: 3px 10px; border-radius: 20px; }
.status-pending { background: #fef3c7; color: #92400e; }
.status-paid { background: #d1fae5; color: #065f46; }
.note-reminder { background: #fffbeb; border: 1px solid #fcd34d; border-radius: var(--radius); padding: 10px 14px; font-size: 0.85rem; color: #92400e; margin-bottom: 14px; display: flex; align-items: center; gap: 8px; }
.upload-area { border: 2px dashed var(--gray-light); border-radius: var(--radius); padding: 28px; text-align: center; cursor: pointer; transition: border-color 0.2s, background 0.2s; }
.upload-area:hover { border-color: var(--red); background: #fff5f5; }
.upload-area i { font-size: 2rem; color: var(--red); margin-bottom: 10px; }
.upload-area p { color: var(--gray); font-size: 0.9rem; }
.user-checkbox-list { display: flex; flex-direction: column; gap: 8px; margin: 14px 0; }
.user-checkbox-item { display: flex; align-items: center; gap: 10px; }
.user-checkbox-item input[type=checkbox] { accent-color: var(--red); width: 16px; height: 16px; flex-shrink: 0; }
.empty-state { text-align: center; padding: 40px 20px; color: var(--gray); }
.empty-state i { font-size: 2.5rem; color: var(--gray-light); margin-bottom: 12px; display: block; }
.empty-state p { font-size: 0.9rem; }
.spinner { display: inline-block; width: 18px; height: 18px; border: 2px solid rgba(255,255,255,0.4); border-top-color: var(--white); border-radius: 50%; animation: spin 0.7s linear infinite; vertical-align: middle; margin-right: 6px; }
@keyframes spin { to { transform: rotate(360deg); } }
.payment-modal { max-width: 500px; }
.payment-tabs { display: flex; gap: 4px; margin-bottom: 20px; background: var(--off-white); border-radius: var(--radius); padding: 4px; }
.pay-tab { flex: 1; padding: 9px 6px; text-align: center; font-size: 0.82rem; font-weight: 500; border-radius: 4px; cursor: pointer; transition: background 0.2s, color 0.2s; background: none; border: none; color: var(--gray); }
.pay-tab.active { background: var(--white); color: var(--red); box-shadow: 0 1px 4px rgba(0,0,0,0.1); }
.pay-form { display: none; }
.pay-form.active { display: block; }
.card-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.pay-brand { display: flex; align-items: center; gap: 8px; font-size: 0.9rem; color: var(--gray); margin-bottom: 16px; }
.pay-brand i { font-size: 1.6rem; }
.fa-cc-visa { color: #1a1f71; }
.fa-cc-mastercard { color: #eb001b; }
.fa-cc-paypal { color: #003087; }
.stripe-badge { font-size: 0.78rem; color: var(--gray); display: flex; align-items: center; gap: 4px; margin-top: 10px; }
.profile-avatar { width: 100px; height: 100px; border-radius: 50%; background: var(--red); color: var(--white); font-size: 2.5rem; display: flex; align-items: center; justify-content: center; margin: 0 auto 12px; overflow: hidden; }
.profile-avatar img { width: 100%; height: 100%; object-fit: cover; }
.doc-item { display: flex; align-items: center; gap: 14px; padding: 14px 18px; background: var(--off-white); border-radius: var(--radius); border-left: 3px solid var(--gray-light); }
.doc-item:hover { border-left-color: var(--red); }
.doc-item-icon { width: 36px; height: 36px; border-radius: 6px; background: var(--red); color: #fff; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.doc-item-info { flex: 1; min-width: 0; }
.doc-item-info strong { display: block; font-size: 0.9rem; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.doc-item-info span { font-size: 0.78rem; color: var(--gray); }
.doc-item-actions { display: flex; gap: 6px; flex-shrink: 0; }
.quote-group-item { background: var(--white); border-radius: var(--radius); border: 1px solid var(--gray-light); border-left: 3px solid var(--red); overflow: hidden; box-shadow: var(--shadow); }
.quote-group-header { display: flex; align-items: center; justify-content: space-between; padding: 14px 18px; background: var(--off-white); flex-wrap: wrap; gap: 8px; cursor: pointer; user-select: none; }
.quote-group-header h4 { font-size: 0.95rem; font-weight: 600; }
.quote-group-header .meta { font-size: 0.8rem; color: var(--gray); }
.quote-group-recipients { padding: 12px 18px; display: flex; flex-direction: column; gap: 8px; border-top: 1px solid var(--gray-light); }
.quote-recipient-row { display: flex; align-items: center; gap: 10px; padding: 8px 12px; background: var(--off-white); border-radius: 6px; flex-wrap: wrap; }
.quote-recipient-row .rname { flex: 1; font-size: 0.88rem; font-weight: 500; }
.btn-delete-quota { padding: 5px 10px; font-size: 0.78rem; font-weight: 500; background: #fee2e2; color: #b91c1c; border: none; border-radius: 4px; cursor: pointer; transition: background 0.2s; display: inline-flex; align-items: center; gap: 4px; }
.btn-delete-quota:hover { background: #fca5a5; }
.btn-delete-group { padding: 6px 12px; font-size: 0.8rem; font-weight: 500; background: #fee2e2; color: #b91c1c; border: none; border-radius: 4px; cursor: pointer; transition: background 0.2s; display: inline-flex; align-items: center; gap: 4px; }
.btn-delete-group:hover { background: #fca5a5; }
.quote-group-toggle { font-size: 0.78rem; color: var(--gray); transition: transform 0.2s; }
.quote-group-toggle.open { transform: rotate(180deg); }

/* Scroll reveal */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.55s ease, transform 0.55s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* Utility */
.divider { border: none; border-top: 1.5px solid var(--gray-light); margin: 40px 0; }
.bg-off { background: var(--off-white); }
.text-center { text-align: center; }
.mt-8 { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }

/* ─── PRIVACY / COOKIE PAGE ────────────── */
.policy-page { max-width: 820px; margin: 0 auto; padding: 60px 24px 100px; }
.policy-page h1 { font-family: var(--font-title); font-size: 1.8rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 8px; }
.policy-page h2 { font-family: var(--font-title); font-size: 1.05rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; margin: 32px 0 10px; color: var(--red); }
.policy-page p { color: var(--gray); line-height: 1.8; margin-bottom: 14px; font-size: 0.93rem; }
.policy-page .red-bar { width: 48px; height: 3px; background: var(--red); border-radius: 2px; margin-bottom: 32px; }

/* ─── COOKIE BUBBLE ───────────────────── */
.cookie-bubble {
  position: fixed; bottom: 24px; left: 24px; z-index: 1990;
  width: 46px; height: 46px; background: var(--red); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--white); font-size: 1.1rem; cursor: pointer;
  box-shadow: 0 3px 14px rgba(204,0,0,0.40);
  transition: transform 0.2s, background 0.2s; border: none;
}
.cookie-bubble:hover { background: var(--red-dark); transform: scale(1.1); }
.cookie-modal-overlay {
  display: none; position: fixed; inset: 0;
  background: rgba(0,0,0,0.6); z-index: 3100;
  align-items: center; justify-content: center; padding: 16px;
}
.cookie-modal-overlay.open { display: flex; }
.cookie-modal {
  background: var(--white); border-radius: 10px;
  width: 100%; max-width: 500px;
  box-shadow: var(--shadow-md); overflow: hidden;
  max-height: 90vh; overflow-y: auto;
}
.cookie-modal-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 24px; border-bottom: 1px solid var(--gray-light);
  background: var(--red); color: var(--white);
}
.cookie-modal-header h3 { font-family: var(--font-title); font-size: 1rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; }
.cookie-modal-close {
  background: rgba(255,255,255,0.2); border: none; font-size: 0.9rem; cursor: pointer;
  color: var(--white); padding: 5px 8px; border-radius: 4px; transition: background 0.2s;
}
.cookie-modal-close:hover { background: rgba(255,255,255,0.35); }
.cookie-modal-body { padding: 24px; }
.cookie-modal-body p { color: var(--gray); line-height: 1.75; font-size: 0.92rem; margin-bottom: 14px; }
.cookie-modal-body h4 { font-family: var(--font-title); font-size: 0.88rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em; color: var(--red); margin: 20px 0 8px; }
.cookie-accept-btn {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--red); color: var(--white);
  font-size: 0.92rem; font-weight: 500; padding: 12px 28px;
  border-radius: var(--radius); border: none; cursor: pointer;
  margin-top: 8px; transition: background 0.2s; width: 100%; justify-content: center;
}
.cookie-accept-btn:hover { background: var(--red-dark); }

/* ─── RESPONSIVE ─────────────────────── */
@media (max-width: 1024px) {
  nav.desktop-nav a { padding: 7px 10px; font-size: 0.8rem; }
  .header-right { gap: 7px; }
}
@media (max-width: 960px) {
  .footer-main { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .sedi-grid { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  .desktop-topbar { display: none; }
  .mobile-topbar { display: flex; }
  header { top: var(--topbar-h); }
  nav.desktop-nav { display: none; }
  .hamburger { display: flex; }
  header { padding: 0 16px; }
  .header-right { display: none !important; }
  .mobile-header-right { display: flex !important; }
  .header-logo-text { display: flex !important; }
  .header-logo-name { font-size: 0.80rem; letter-spacing: 0.1em; }
  .header-logo-sub { font-size: 6px; }
  .section { text-align: center; }
  .section-title { display: block; text-align: center; }
  .section-title::after { margin: 8px auto 0; }
  .section-subtitle { text-align: center; }
  .chi-siamo-text p { text-align: center; }
  .hero-content { text-align: center; }
  .hero-actions { justify-content: center; }
  .contatti-form-wrap { padding: 0 4px; }
  .contact-item { justify-content: center; flex-wrap: wrap; text-align: center; }
  .values { justify-items: center; }
  .corsi-hero, .orari-hero, .contatti-hero { text-align: center; }
  .sede-card { align-items: center; text-align: center; }
  .sede-card address { text-align: center; }
  .map-link { align-self: center; }
  .chi-siamo-grid { grid-template-columns: 1fr; }
  .chi-siamo-grid img { max-height: 280px; object-fit: cover; }
  .values { grid-template-columns: 1fr; width: 100%; }
  .values-fullwidth { margin-left: -16px; margin-right: -16px; width: calc(100% + 32px); }
  .corsi-grid { grid-template-columns: 1fr; }
  .corso-card-image { height: 220px; }
  .reserved-actions { width: 100%; margin-left: 0; flex-wrap: wrap; }
  .card-row { grid-template-columns: 1fr; }
  .doc-item { flex-direction: column; align-items: flex-start; }
  .doc-item-actions { width: 100%; }
  .footer-main { grid-template-columns: 1fr; gap: 32px; text-align: center; }
  .footer-brand { grid-column: auto; }
  .footer-col { text-align: center; }
  .footer-col a, .footer-col span { justify-content: center; }
  .footer-contacts a { justify-content: center; }
  .footer-social-icons { justify-content: center; }
  .wa-chat-panel { width: calc(100vw - 48px); right: 16px; }
  .partners-logos { justify-content: center; }
  .dove-trovarci .dt-header { text-align: center; }
  .cookie-bubble { bottom: 24px; left: 16px; width: 52px; height: 52px; font-size: 1.2rem; }
}
@media (max-width: 480px) {
  .section { padding: 50px 16px; }
  .reserved-wrap { padding: 24px 14px 60px; }
  .reserved-header { flex-direction: column; align-items: flex-start; gap: 12px; padding: 16px; }
  .reserved-user-info { width: 100%; }
  .reserved-actions { width: 100%; justify-content: flex-start; }
  .reserved-actions .btn-sm { flex: 1; justify-content: center; font-size: 0.75rem; padding: 7px 8px; }
  .wa-bubble { bottom: 16px; right: 16px; width: 60px; height: 60px; font-size: 1.6rem; }
  .modal-body { padding: 20px 16px; }
  .partners-logos { gap: 24px; }
  .hero-content h1 { font-size: clamp(1.8rem, 8vw, 3rem); }
  .cookie-bubble { bottom: 16px; left: 16px; width: 42px; height: 42px; font-size: 1.2rem; }
}
