/* ============================================
   ELIXORIA GROUP - Palette "Élixir"
   Ivoire #F3E9DC | Cuivre #C97B4A | Émeraude #0F3D3A
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;600;700&family=Inter:wght@300;400;500;600&display=swap');

:root {
  /* Palette Élixir : émeraude profond + cuivre, unique parmi les sites du secteur */
  --crema:      #F3E9DC;   /* fond principal - ivoire chaud */
  --crema-lt:   #FAF3E9;   /* fond clair */
  --crema-dk:   #E4D0B8;   /* bordures et séparateurs */
  --oro:        #C97B4A;   /* cuivre vif - accent signature */
  --oro-dk:     #8A3E1F;   /* cuivre foncé texte */
  --oro-lt:     #E0956A;   /* cuivre clair hover */
  --oro-pale:   #F0C4A0;   /* pêche pâle accents */
  --marrone:    #0F3D3A;   /* émeraude profond nav/footer */
  --marrone-lt: #1D5C52;   /* émeraude moyen */
  --testo:      #14211D;   /* texte principal foncé */
  --testo-mid:  #6B5A42;   /* texte secondaire */
  --bianco:     #FDFBF7;   /* blanc chaud cartes */
  --bordo:      #D9BFA0;   /* bordures */
  --radius:     12px;
  --radius-lg:  20px;
  --ombra:      0 4px 24px rgba(15,61,58,.12);
  --ombra-lg:   0 16px 48px rgba(15,61,58,.18);
  --trans:      all .3s cubic-bezier(.4,0,.2,1);
}

/* ============================================
   RESET
   ============================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: 'Inter', sans-serif;
  background: var(--crema-lt);
  color: var(--testo);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; height: auto; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
video { max-width: 100%; display: block; }

/* ============================================
   TIPOGRAFIA
   ============================================ */
h1,h2,h3,h4 { font-family: 'Playfair Display', serif; line-height: 1.2; color: var(--testo); }
h1 { font-size: clamp(1.8rem, 5vw, 3.6rem); font-weight: 700; }
h2 { font-size: clamp(1.4rem, 3.5vw, 2.6rem); font-weight: 600; }
h3 { font-size: clamp(1rem, 2vw, 1.3rem); font-weight: 600; }
p  { font-size: clamp(.9rem, 2vw, 1rem); color: var(--testo-mid); line-height: 1.7; }
.lead { font-size: clamp(1rem, 2.5vw, 1.12rem); line-height: 1.8; }

/* ============================================
   LAYOUT
   ============================================ */
.container { max-width: 1140px; margin: 0 auto; padding: 0 20px; }
.section { padding: 72px 0; }

/* ============================================
   BANDE ORO
   ============================================ */
.pattern-bar {
  width: 100%; height: 4px;
  background: linear-gradient(90deg,
    var(--oro-dk), var(--oro), var(--oro-lt), var(--oro-pale),
    var(--oro-lt), var(--oro), var(--oro-dk)
  );
}

/* ============================================
   NAVIGAZIONE
   ============================================ */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: rgba(15,61,58,.97);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(201,123,74,.3);
}
.navbar .container {
  display: flex; align-items: center; justify-content: space-between;
  height: 62px; gap: 12px;
}
.logo {
  display: flex; align-items: center; gap: 10px;
  font-family: 'Playfair Display', serif;
  font-size: 1.15rem; font-weight: 700; color: var(--crema-lt);
  flex-shrink: 0; white-space: nowrap;
}
.logo-icon {
  width: 34px; height: 34px; min-width: 34px;
  border-radius: 50%; object-fit: cover;
  border: 1.5px solid rgba(201,123,74,.4);
}
.logo span { color: var(--oro-lt); }

.nav-links { display: flex; gap: 2px; align-items: center; }
.nav-links a {
  color: rgba(250,243,233,.75); font-size: .82rem; font-weight: 500;
  padding: 7px 11px; border-radius: 8px; transition: var(--trans); white-space: nowrap;
}
.nav-links a:hover, .nav-links a.active {
  color: var(--crema-lt); background: rgba(201,123,74,.2);
}
.nav-links .btn-nav {
  background: var(--oro); color: var(--testo) !important;
  font-weight: 700; padding: 8px 16px; border-radius: 8px;
}
.nav-links .btn-nav:hover { background: var(--oro-lt); }

.hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 6px; flex-shrink: 0; }
.hamburger span { display: block; width: 22px; height: 2px; background: var(--crema-lt); border-radius: 2px; transition: var(--trans); }

/* ============================================
   BOTTONI
   ============================================ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 28px; border-radius: 50px;
  font-size: .92rem; font-weight: 600; font-family: 'Inter', sans-serif;
  cursor: pointer; border: 2px solid transparent;
  transition: var(--trans); white-space: nowrap;
}
.btn-primary { background: var(--oro); color: var(--testo); border-color: var(--oro); }
.btn-primary:hover { background: var(--oro-lt); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(201,123,74,.4); }
.btn-outline { background: transparent; color: var(--crema-lt); border-color: rgba(250,243,233,.4); }
.btn-outline:hover { border-color: var(--oro-lt); color: var(--oro-pale); transform: translateY(-2px); }
.btn-dark { background: var(--marrone); color: var(--crema-lt); border-color: var(--marrone); }
.btn-dark:hover { background: var(--marrone-lt); transform: translateY(-2px); }
.btn-lg { padding: 15px 36px; font-size: 1rem; }

/* ============================================
   BADGE
   ============================================ */
.badge {
  display: inline-block; padding: 5px 14px; border-radius: 50px;
  font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
}
.badge-gold { background: rgba(201,123,74,.18); color: var(--oro-dk); border: 1px solid rgba(201,123,74,.35); }
.badge-forest { background: rgba(15,61,58,.14); color: var(--marrone-lt); border: 1px solid rgba(15,61,58,.3); }
.btn-forest { background: var(--marrone); color: var(--bianco); border-color: var(--marrone); }
.btn-forest:hover { background: var(--marrone-lt); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(15,61,58,.35); }
.badge-dark { background: rgba(15,61,58,.1); color: var(--marrone); border: 1px solid rgba(15,61,58,.2); }

/* ============================================
   CARD
   ============================================ */
.card {
  background: var(--bianco); border: 1px solid var(--bordo);
  border-radius: var(--radius-lg); padding: 28px 22px; transition: var(--trans);
}
.card:hover { transform: translateY(-4px); box-shadow: var(--ombra-lg); border-color: var(--oro); }
.card-icon {
  width: 50px; height: 50px; border-radius: 14px;
  background: rgba(201,123,74,.12); display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem; margin-bottom: 16px;
}
.card h3 { color: var(--testo); margin-bottom: 8px; }
.card p { color: var(--testo-mid); }

/* ============================================
   HERO - COLORI LOGO
   ============================================ */
.hero {
  min-height: 100vh; background: var(--marrone);
  display: flex; align-items: center;
  position: relative; overflow: hidden; padding-top: 62px;
}
.hero::before {
  content: ''; position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 70% 60% at 65% 40%, rgba(201,123,74,.15) 0%, transparent 60%),
    radial-gradient(ellipse 50% 80% at 0% 100%, rgba(138,62,31,.12) 0%, transparent 50%),
    linear-gradient(160deg, #14211D 0%, #0F3D3A 50%, #081512 100%);
}
.hero .container { position: relative; z-index: 1; width: 100%; }
.hero-geo {
  position: absolute; top: 50%; right: -8%; transform: translateY(-50%);
  width: min(52vw, 640px); height: auto; opacity: .12; pointer-events: none; z-index: 0;
}
.hero-inner {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 56px; align-items: center; padding: 56px 0;
}
.hero-tag {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(201,123,74,.15); border: 1px solid rgba(201,123,74,.35);
  color: var(--oro-pale); padding: 7px 16px; border-radius: 50px;
  font-size: .75rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
  margin-bottom: 20px;
}
.hero h1 { color: var(--crema-lt); margin-bottom: 10px; }
.hero h1 em { color: var(--oro-lt); font-style: normal; }
.hero .hero-sub { color: var(--oro-pale); font-size: .9rem; font-style: italic; margin-bottom: 10px; opacity: .8; }
.hero .lead { color: rgba(250,243,233,.7); margin-bottom: 28px; }
.hero-btns { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 22px; }
.hero-contacts { display: flex; flex-direction: column; gap: 8px; }
.hero-contacts a { color: rgba(250,243,233,.45); font-size: .83rem; display: flex; align-items: center; gap: 8px; transition: var(--trans); }
.hero-contacts a:hover { color: var(--oro-pale); }

.hero-photo-wrap { position: relative; display: flex; justify-content: center; align-items: center; }
.hero-photo-frame {
  width: 100%; max-width: 340px; aspect-ratio: 3/4;
  border-radius: var(--radius-lg); overflow: hidden;
  border: 2px solid rgba(201,123,74,.4);
  box-shadow: 0 24px 60px rgba(0,0,0,.45);
  background: var(--crema);
}
.hero-photo-frame img { width: 100%; height: 100%; object-fit: contain; background: var(--crema); }
.hero-badge {
  position: absolute; bottom: -14px; left: -14px;
  background: var(--oro); color: var(--testo);
  border-radius: 14px; padding: 12px 16px; font-weight: 700; text-align: center;
  box-shadow: 0 8px 28px rgba(201,123,74,.5);
}
.hero-badge .num { font-size: 1.4rem; font-family: 'Playfair Display', serif; display: block; }
.hero-badge .lbl { font-size: .65rem; text-transform: uppercase; letter-spacing: .06em; opacity: .85; }
.hero-scroll {
  position: absolute; bottom: 20px; left: 50%; transform: translateX(-50%);
  color: rgba(250,243,233,.3); font-size: .7rem; letter-spacing: .1em; text-transform: uppercase;
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  animation: bounce 2.5s infinite;
}
.hero-scroll::after { content: '↓'; font-size: 1rem; }
@keyframes bounce { 0%,100%{transform:translateX(-50%) translateY(0)} 50%{transform:translateX(-50%) translateY(7px)} }

/* ============================================
   STATS BAR - CREMA
   ============================================ */
.stats-bar { background: var(--crema-dk); border-bottom: 1px solid var(--bordo); }
.stats-bar .container {
  display: flex; justify-content: space-around; flex-wrap: wrap;
  padding: 28px 20px; gap: 20px;
}
.stat-item { text-align: center; min-width: 100px; }
.stat-item .num { font-family: 'Playfair Display', serif; font-size: clamp(1.7rem, 4vw, 2.3rem); font-weight: 700; color: var(--oro-dk); display: block; }
.stat-item .lbl { font-size: .78rem; color: var(--testo-mid); font-weight: 500; }

/* ============================================
   VIDEO
   ============================================ */
.video-section { background: var(--testo); padding: 64px 0; }
.video-section .section-header h2 { color: var(--crema-lt); }
.video-section .section-header p { color: rgba(250,243,233,.5); }
.video-wrapper {
  width: 100%; max-width: 860px; margin: 0 auto;
  border-radius: var(--radius-lg); overflow: hidden;
  border: 2px solid rgba(201,123,74,.4);
  box-shadow: 0 24px 60px rgba(0,0,0,.5);
}
.video-wrapper video { width: 100%; display: block; background: #000; }

/* ============================================
   ABOUT
   ============================================ */
.about-home { background: var(--bianco); }
.section-label { font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .12em; color: var(--oro-dk); display: block; margin-bottom: 10px; }
.highlight-box {
  background: var(--crema); border-left: 4px solid var(--oro);
  border-radius: 0 12px 12px 0; padding: 16px 20px;
  margin: 20px 0; font-style: italic; color: var(--marrone-lt); font-size: 1rem;
}

/* ============================================
   SECTION HEADER
   ============================================ */
.section-header { text-align: center; margin-bottom: 48px; }
.section-header .badge { margin-bottom: 12px; }
.section-header h2 { margin-bottom: 12px; }
.section-header p { max-width: 520px; margin: 0 auto; }

/* ============================================
   PAGE HERO INTERNE
   ============================================ */
.page-hero { background: var(--marrone); padding: 110px 0 70px; position: relative; overflow: hidden; }
.page-hero::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse 50% 70% at 80% 50%, rgba(201,123,74,.1) 0%, transparent 60%);
}
.page-hero .container { position: relative; z-index: 1; }
.page-hero h1 { color: var(--crema-lt); margin-bottom: 12px; }
.page-hero .lead { color: rgba(250,243,233,.65); max-width: 560px; }
.breadcrumb { display: flex; gap: 8px; align-items: center; margin-bottom: 16px; font-size: .8rem; color: rgba(201,123,74,.65); flex-wrap: wrap; }
.breadcrumb a { color: rgba(201,123,74,.65); }
.breadcrumb a:hover { color: var(--oro-pale); }

/* NM Visual */
.nm-visual { background: var(--marrone); border-radius: var(--radius-lg); padding: 32px; }
.tree-node { background: rgba(201,123,74,.12); border: 1px solid rgba(201,123,74,.3); color: var(--oro-pale); border-radius: 10px; padding: 7px 14px; font-size: .8rem; font-weight: 500; text-align: center; width: fit-content; }
.tree-root { background: var(--oro); color: var(--testo); font-weight: 700; margin: 0 auto; }

/* Step items */
.step-item { display: flex; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--bordo); }
.step-item:last-child { border-bottom: none; }
.step-num { min-width: 36px; height: 36px; border-radius: 50%; background: rgba(201,123,74,.15); color: var(--oro-dk); display: flex; align-items: center; justify-content: center; font-family: 'Playfair Display', serif; font-weight: 700; flex-shrink: 0; }
.step-item h3 { font-size: .95rem; margin-bottom: 4px; }

/* Myths */
.myth-card { background: var(--bianco); border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--bordo); transition: var(--trans); }
.myth-card:hover { box-shadow: var(--ombra-lg); }
.myth-header { padding: 14px 18px; display: flex; align-items: center; gap: 10px; font-size: .85rem; font-weight: 600; }
.myth-header.myth { background: rgba(220,38,38,.07); color: #B91C1C; }
.myth-header.reality { background: rgba(15,61,58,.08); color: var(--marrone-lt); }
.myth-body { padding: 14px 18px; }
.myth-body p { font-size: .88rem; color: var(--testo); }

/* Step cards */
.step-card { text-align: center; padding: 32px 20px; background: var(--bianco); border: 1px solid var(--bordo); border-radius: var(--radius-lg); transition: var(--trans); }
.step-card:hover { border-color: var(--oro); box-shadow: var(--ombra); }
.step-card .step-n { width: 54px; height: 54px; border-radius: 50%; background: var(--marrone); color: var(--crema-lt); font-family: 'Playfair Display', serif; font-size: 1.3rem; font-weight: 700; display: flex; align-items: center; justify-content: center; margin: 0 auto 18px; }
.step-card h3 { margin-bottom: 10px; font-size: 1.05rem; }

/* Benefits */
.benefit-item { display: flex; gap: 14px; align-items: flex-start; padding: 18px; background: var(--bianco); border-radius: var(--radius); border: 1px solid var(--bordo); transition: var(--trans); }
.benefit-item:hover { border-color: var(--oro); box-shadow: var(--ombra); }
.benefit-icon { font-size: 1.4rem; min-width: 32px; }
.benefit-item h4 { font-size: .92rem; font-weight: 600; color: var(--testo); margin-bottom: 3px; font-family: 'Inter', sans-serif; }

/* CTA */
.cta-join { background: linear-gradient(135deg, var(--marrone) 0%, var(--marrone-lt) 100%); padding: 72px 0; position: relative; overflow: hidden; }
.cta-join::before { content: ''; position: absolute; top: -60px; right: -60px; width: 280px; height: 280px; border: 50px solid rgba(201,123,74,.07); border-radius: 50%; }
.cta-join .container { position: relative; z-index: 1; text-align: center; }
.cta-join h2 { color: var(--crema-lt); margin-bottom: 12px; }
.cta-join p { color: rgba(250,243,233,.65); max-width: 460px; margin: 0 auto 32px; }

/* Countries */
.countries-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px,1fr)); gap: 18px; }
.country-card { border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--bordo); background: var(--bianco); transition: var(--trans); }
.country-card:hover { transform: translateY(-4px); box-shadow: var(--ombra-lg); }
.country-flag { height: 90px; display: flex; align-items: center; justify-content: center; font-size: 3.2rem; background: var(--crema); }
.country-info { padding: 18px; }
.country-info h3 { color: var(--testo); margin-bottom: 6px; font-size: 1rem; }
.country-info p { font-size: .83rem; margin-bottom: 10px; }
.country-tag { display: inline-block; padding: 3px 10px; border-radius: 50px; font-size: .7rem; font-weight: 600; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1fr 1.5fr; gap: 48px; align-items: start; }
.contact-item { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 22px; }
.contact-icon { width: 42px; height: 42px; min-width: 42px; border-radius: 12px; background: rgba(201,123,74,.12); display: flex; align-items: center; justify-content: center; font-size: 1.1rem; }
.contact-item h4 { font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--oro-dk); margin-bottom: 3px; }
.contact-item p { font-size: .9rem; color: var(--testo); }

.contact-form-box { background: var(--bianco); border: 1px solid var(--bordo); border-radius: var(--radius-lg); padding: 36px 28px; box-shadow: var(--ombra); }
.form-group { margin-bottom: 18px; }
.form-group label { display: block; font-size: .8rem; font-weight: 600; color: var(--testo); margin-bottom: 6px; }
.form-group input, .form-group select, .form-group textarea {
  width: 100%; padding: 12px 16px;
  border: 1.5px solid var(--bordo); border-radius: var(--radius);
  font-family: 'Inter', sans-serif; font-size: .9rem; color: var(--testo);
  background: var(--crema-lt); transition: var(--trans);
  -webkit-appearance: none; appearance: none;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  outline: none; border-color: var(--oro); background: var(--bianco);
  box-shadow: 0 0 0 3px rgba(201,123,74,.15);
}
.form-group textarea { resize: vertical; min-height: 120px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

/* Alerts */
.alert { padding: 13px 16px; border-radius: var(--radius); margin-bottom: 16px; display: flex; align-items: center; gap: 10px; font-size: .88rem; }
.alert-success { background: rgba(15,61,58,.08); border: 1px solid rgba(15,61,58,.2); color: var(--marrone); }
.alert-error { background: rgba(220,38,38,.07); border: 1px solid rgba(220,38,38,.2); color: #B91C1C; }

/* Footer */
.footer { background: var(--testo); color: rgba(250,243,233,.55); }
.footer-main { padding: 60px 0 36px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 36px; }
.footer-brand .logo { color: var(--crema-lt); margin-bottom: 12px; }
.footer-brand p { font-size: .86rem; line-height: 1.7; }
.footer h4 { color: var(--crema-lt); font-family: 'Inter', sans-serif; font-size: .85rem; font-weight: 600; margin-bottom: 14px; }
.footer-links a { display: block; padding: 4px 0; font-size: .83rem; transition: var(--trans); }
.footer-links a:hover { color: var(--oro-pale); }
.footer-bottom { border-top: 1px solid rgba(250,243,233,.08); padding: 18px 0; display: flex; justify-content: space-between; align-items: center; font-size: .78rem; flex-wrap: wrap; gap: 8px; }
.footer-bottom a { color: var(--oro-pale); }
.footer-legal { padding-top: 18px; font-size: .72rem; color: rgba(250,243,233,.45); text-align: center; line-height: 1.6; }
.footer-legal a { color: rgba(250,243,233,.6); }

/* Admin */
.admin-body { background: var(--crema); min-height: 100vh; }
.admin-nav { background: var(--marrone); color: var(--crema-lt); padding: 14px 24px; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px; }
.admin-nav .logo-admin { font-family: 'Playfair Display', serif; font-size: 1.1rem; color: var(--oro-pale); }
.admin-layout { display: flex; min-height: calc(100vh - 54px); }
.admin-sidebar { width: 230px; background: var(--bianco); border-right: 1px solid var(--bordo); padding: 20px 0; flex-shrink: 0; }
.admin-sidebar a { display: flex; align-items: center; gap: 10px; padding: 10px 18px; color: var(--testo-mid); font-size: .86rem; font-weight: 500; transition: var(--trans); border-left: 3px solid transparent; }
.admin-sidebar a:hover, .admin-sidebar a.active { color: var(--marrone); background: rgba(201,123,74,.08); border-left-color: var(--oro); }
.admin-content { flex: 1; padding: 28px 20px; min-width: 0; }
.admin-card { background: var(--bianco); border-radius: var(--radius-lg); padding: 24px; border: 1px solid var(--bordo); margin-bottom: 18px; }
.admin-card h3 { color: var(--testo); margin-bottom: 3px; font-size: 1rem; }
.admin-card .sub { font-size: .8rem; color: var(--testo-mid); margin-bottom: 18px; }
.gros-add-form { display: grid; grid-template-columns: 1fr 1fr 1fr auto; gap: 10px; align-items: end; }
.admin-grid { display: grid; grid-template-columns: repeat(auto-fill,minmax(160px,1fr)); gap: 12px; margin-bottom: 20px; }
.stat-box { background: var(--crema); border-radius: var(--radius); padding: 16px 18px; }
.stat-box .sn { font-family: 'Playfair Display', serif; font-size: 1.7rem; color: var(--oro-dk); font-weight: 700; }
.stat-box .sl { font-size: .75rem; color: var(--testo-mid); font-weight: 500; }
.admin-table { width: 100%; border-collapse: collapse; }
.admin-table th { text-align: left; padding: 9px 12px; font-size: .73rem; text-transform: uppercase; letter-spacing: .06em; color: var(--testo-mid); border-bottom: 2px solid var(--bordo); }
.admin-table td { padding: 11px 12px; border-bottom: 1px solid var(--bordo); font-size: .86rem; }
.admin-table tr:hover td { background: var(--crema-lt); }
.status-badge { display: inline-block; padding: 3px 9px; border-radius: 50px; font-size: .7rem; font-weight: 600; }
.status-new { background: rgba(201,123,74,.18); color: var(--oro-dk); }
.status-read { background: rgba(15,61,58,.1); color: var(--marrone-lt); }
.admin-btn { padding: 7px 14px; border-radius: 8px; font-size: .8rem; font-weight: 600; border: none; cursor: pointer; transition: var(--trans); text-decoration: none; display: inline-block; }
.admin-btn-primary { background: var(--marrone); color: var(--bianco); }
.admin-btn-gold { background: var(--oro); color: var(--testo); }
.admin-btn-danger { background: rgba(220,38,38,.1); color: #B91C1C; }
.admin-btn:hover { opacity: .85; }

/* Grid helpers */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.grid-3 { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4,1fr); gap: 20px; }
.cards-2col { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

/* ============================================
   RESPONSIVE TABLET 1024px
   ============================================ */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
  .grid-4 { grid-template-columns: repeat(2,1fr); }
  .nav-links a:not(.btn-nav) { padding: 6px 8px; font-size: .78rem; }
}

/* ============================================
   RESPONSIVE MOBILE 768px
   ============================================ */
@media (max-width: 768px) {
  .section { padding: 48px 0; }
  .container { padding: 0 16px; }

  /* Nav */
  .hamburger { display: flex; }
  .nav-links {
    display: none; position: fixed; top: 62px; left: 0; right: 0;
    background: var(--marrone); flex-direction: column; align-items: stretch;
    padding: 12px 16px; gap: 4px;
    border-top: 1px solid rgba(201,123,74,.2);
    max-height: calc(100vh - 62px); overflow-y: auto; z-index: 999;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 13px 14px; font-size: .92rem; white-space: normal; }
  .nav-links .btn-nav { text-align: center; border-radius: 50px; }

  /* Sélecteur de langue : passe en liste dépliée sur place (le dropdown en position:absolute
     serait coupé par le overflow-y:auto du menu mobile ci-dessus).
     Sélecteurs préfixés par .nav-links pour gagner en spécificité face au <style> inline
     de header.php (qui, sans media query, l'emporterait sinon sur les propriétés communes). */
  .nav-links .lang-switch { order: 5; width: 100%; }
  .nav-links .lang-current {
    width: 100%; text-align: left; color: var(--crema) !important; border-color: rgba(255,255,255,.25);
    padding: 14px 16px !important; font-size: 1rem !important; justify-content: space-between;
  }
  .nav-links .lang-menu.open {
    display: grid !important; grid-template-columns: 1fr 1fr; gap: 6px;
    position: static !important; box-shadow: none; min-width: 0; margin-top: 8px; background: transparent;
    width: 100%;
  }
  .nav-links .lang-menu a { padding: 12px 10px; font-size: .85rem; color: var(--crema); border-radius: 6px; background: rgba(255,255,255,.05); }
  .nav-links .lang-menu a:hover, .nav-links .lang-menu a.active { background: rgba(255,255,255,.15); }

  /* Hero */
  .hero-inner { grid-template-columns: 1fr; gap: 28px; padding: 36px 0 52px; }
  .hero-geo { display: none; }
  .hero-photo-wrap { order: -1; }
  .hero-photo-frame { max-width: 200px; aspect-ratio: 1; border-radius: 50%; margin: 0 auto; }
  .hero-badge { bottom: -10px; left: 50%; transform: translateX(-50%); white-space: nowrap; }
  .hero-btns { flex-direction: column; }
  .hero-btns .btn { width: 100%; }
  .hero h1, .hero .hero-sub, .hero .lead { text-align: center; }
  .hero-contacts { align-items: center; }
  .hero-tag { margin: 0 auto 18px; }

  /* Grids */
  .grid-2, .contact-grid { grid-template-columns: 1fr; gap: 28px; }
  .grid-3 { grid-template-columns: 1fr; gap: 16px; }
  .grid-4 { grid-template-columns: 1fr 1fr; gap: 12px; }
  .why-grid { grid-template-columns: 1fr 1fr !important; gap: 14px !important; }
  .produits-grid { grid-template-columns: 1fr 1fr !important; gap: 16px !important; }
  .form-row { grid-template-columns: 1fr; }

  /* Stats */
  .stats-bar .container { gap: 14px; padding: 20px 16px; justify-content: center; }

  /* Video */
  .video-section { padding: 44px 0; }

  /* Contact */
  .contact-form-box { padding: 24px 16px; }

  /* Footer */
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .footer-legal { flex-direction: column !important; text-align: center !important; }
  .footer-legal > div { text-align: center !important; }

  /* Page hero */
  .page-hero { padding: 90px 0 48px; }

  /* Admin */
  .admin-layout { flex-direction: column; }
  .admin-sidebar { width: 100%; border-right: none; border-bottom: 1px solid var(--bordo); padding: 8px 0; display: flex; flex-wrap: wrap; }
  .admin-sidebar a { padding: 10px 14px; font-size: .8rem; border-left: none; border-bottom: 2px solid transparent; }
  .admin-sidebar a.active { border-bottom-color: var(--oro); border-left: none; }
  .admin-content { padding: 16px 12px; }
  .admin-table { display: block; overflow-x: auto; white-space: nowrap; }

  .section-header { margin-bottom: 36px; }
  .cta-join { padding: 52px 0; }
  .countries-grid { grid-template-columns: 1fr 1fr; }
  .gros-add-form { grid-template-columns: 1fr !important; }
}

/* ============================================
   RESPONSIVE PICCOLO 480px
   ============================================ */
@media (max-width: 480px) {
  h1 { font-size: 1.65rem; }
  h2 { font-size: 1.35rem; }
  .grid-4 { grid-template-columns: 1fr; }
  .why-grid { grid-template-columns: 1fr !important; }
  .produits-grid { grid-template-columns: 1fr !important; }
  .countries-grid { grid-template-columns: 1fr; }
  .hero-photo-frame { max-width: 160px; }
  .btn-lg { padding: 13px 24px; font-size: .92rem; }
  .stat-item .num { font-size: 1.5rem; }
  .admin-grid { grid-template-columns: 1fr 1fr; }
  .cards-2col { grid-template-columns: 1fr; }
}

/* ============================================
   CONTENU EN ARABE (RTL) — uniquement le texte,
   la nav/le menu restent stables (voir includes/header.php)
   ============================================ */
.rtl-content main,
.rtl-content .page-hero,
.rtl-content .section,
.rtl-content footer {
  direction: rtl;
  text-align: right;
}
.rtl-content input,
.rtl-content textarea,
.rtl-content select {
  text-align: right;
}
/* Le menu du haut de page reste toujours LTR pour éviter
   de casser la disposition du menu et du sélecteur de langue */
.rtl-content nav.navbar,
.rtl-content .nav-links,
.rtl-content .lang-switch {
  direction: ltr;
  text-align: left;
}
.rtl-content .network-map-section {
  direction: ltr;
}
