/* ════════════════════════════════════════════════
   GLOBAL — Design Tokens, Reset, Tipografia base
   In Equipe Theme v1.0
   ════════════════════════════════════════════════ */

/* ── Design Tokens ── */
:root {
  /* Colori sfondo */
  --bg:        #FFFFFF;
  --bg-soft:   #F6FAF8;
  --bg-teal:   #EAF5F0;
  --bg-warm:   #FBF7F2;

  /* Testi */
  --ink:       #1A2B25;
  --ink-mid:   #3D5149;
  --ink-light: #6A7D74;

  /* Brand teal */
  --teal:      #2E8B72;
  --teal-d:    #1F6B57;
  --teal-l:    #5BB59A;
  --teal-pale: #C8E8DF;

  /* Accent orange */
  --orange:    #E07240;
  --orange-l:  #F08858;
  --orange-pale: #FEF0E8;
  --orange-border: #FDDCC8;

  /* Bordi */
  --border:    #DDE8E2;

  /* Font families */
  --ff-head:   'Playfair Display', Georgia, serif;
  --ff-body:   'DM Sans', system-ui, sans-serif;
  --ff-mono:   'DM Mono', monospace;

  /* Easing */
  --ease:      cubic-bezier(.25,.46,.45,.94);

  /* Spaziature ricorrenti */
  --section-py:    80px;
  --section-py-sm: 48px;
  --container-max: 1200px;

  /* Raggi */
  --radius-sm:  8px;
  --radius-md:  12px;
  --radius-lg:  16px;
  --radius-xl:  20px;
  --radius-pill: 100px;

  /* Ombre */
  --shadow-sm:  0 4px 16px rgba(46, 139, 114, .07);
  --shadow-md:  0 8px 28px rgba(46, 139, 114, .10);
  --shadow-lg:  0 18px 44px rgba(46, 139, 114, .13);
}

/* ── Reset & Base ── */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--ff-body);
  font-size: 16px;
  line-height: 1.75;
  color: var(--ink-mid);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a { color: var(--teal); transition: color .2s; }
a:hover { color: var(--teal-d); }

/* ── Tipografia ── */
h1, h2, h3, h4 {
  font-family: var(--ff-head);
  color: var(--ink);
  line-height: 1.15;
  margin-bottom: .5em;
}

h1 { font-size: clamp(32px, 4vw, 48px); font-weight: 700; }
h2 { font-size: clamp(26px, 3vw, 36px); font-weight: 700; }
h3 { font-size: clamp(20px, 2.2vw, 26px); font-weight: 700; }
h4 { font-size: 18px; font-weight: 700; }

h5, h6 {
  font-family: var(--ff-body);
  color: var(--ink);
  font-weight: 700;
}
h5 { font-size: 15px; }
h6 { font-size: 11px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; color: var(--teal); }

p { margin-bottom: 1em; }
p:last-child { margin-bottom: 0; }

.type-display {
  font-family: var(--ff-head);
  font-size: clamp(40px, 5vw, 60px);
  font-weight: 700;
  color: var(--ink);
  line-height: 1.05;
}
.type-display em { font-style: italic; font-weight: 400; }

.type-lead {
  font-size: clamp(17px, 2vw, 20px);
  font-weight: 300;
  line-height: 1.8;
  color: var(--ink-mid);
}

.type-eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--teal);
  display: flex;
  align-items: center;
  gap: 10px;
}
.type-eyebrow::before {
  content: '';
  width: 20px;
  height: 2px;
  background: var(--teal);
  border-radius: 2px;
  flex-shrink: 0;
}

.type-mono {
  font-family: var(--ff-mono);
  font-size: 13px;
  color: var(--teal-d);
  background: var(--bg-teal);
  padding: 2px 8px;
  border-radius: 5px;
}

/* ── Layout helpers ── */
.section-py    { padding-top: var(--section-py); padding-bottom: var(--section-py); }
.section-py-sm { padding-top: var(--section-py-sm); padding-bottom: var(--section-py-sm); }

.bg-soft   { background: var(--bg-soft) !important; }
.bg-teal   { background: var(--bg-teal) !important; }
.bg-warm   { background: var(--bg-warm) !important; }
.bg-ink    { background: var(--ink) !important; }
.bg-teal-d { background: var(--teal-d) !important; }

/* Bootstrap container override */
.container, .container-fluid {
  --bs-gutter-x: 24px;
}
@media (min-width: 1280px) {
  .container { max-width: var(--container-max); }
}

/* ── Topbar ── */
.iq-topbar {
  background: var(--teal-d);
  padding: 9px 0;
  font-size: 12px;
  color: rgba(255, 255, 255, .7);
}
.iq-topbar a {
  color: rgba(255, 255, 255, .85);
  text-decoration: none;
}
.iq-topbar a:hover { color: white; }
.iq-topbar strong { color: white; }

/* ── Navbar ── */
.iq-navbar {
  background: rgba(255, 255, 255, .97);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 0;
  transition: box-shadow .3s;
}
.iq-navbar.scrolled {
  box-shadow: 0 4px 20px rgba(26, 43, 37, .08);
}
.iq-navbar .navbar-brand {
  font-family: var(--ff-head);
  font-size: 18px;
  font-weight: 700;
  color: var(--ink);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 0;
}
.iq-navbar .navbar-brand:hover { color: var(--teal); }
.iq-navbar .navbar-brand img {
  width: 36px;
  height: 36px;
  object-fit: contain;
}
.iq-navbar .nav-link {
  font-size: 14px;
  color: var(--ink-mid);
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  transition: all .2s;
  font-weight: 400;
}
.iq-navbar .nav-link:hover { color: var(--ink); background: var(--bg-teal); }
.iq-navbar .nav-link.active { color: var(--teal); font-weight: 600; }
.iq-navbar .btn-prenota {
  background: var(--orange);
  color: white;
  font-size: 13px;
  font-weight: 600;
  padding: 9px 18px;
  border-radius: var(--radius-sm);
  text-decoration: none;
  transition: all .2s var(--ease);
  white-space: nowrap;
}
.iq-navbar .btn-prenota:hover {
  background: var(--orange-l);
  color: white;
  transform: translateY(-1px);
}

/* Dropdown Bootstrap overrides */
.iq-navbar .dropdown-menu {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: 0 12px 40px rgba(26, 43, 37, .12);
  padding: 8px;
  min-width: 220px;
  margin-top: 6px;
}
.iq-navbar .dropdown-item {
  font-size: 14px;
  color: var(--ink-mid);
  padding: 9px 14px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all .18s;
}
.iq-navbar .dropdown-item:hover {
  color: var(--teal);
  background: var(--bg-teal);
}
.iq-navbar .dropdown-item svg { color: var(--teal); flex-shrink: 0; }
.iq-navbar .dropdown-divider { border-color: var(--border); margin: 6px 0; }
.iq-navbar .navbar-toggler {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 6px 10px;
}
.iq-navbar .navbar-toggler:focus { box-shadow: none; }

/* ── Footer ── */
.iq-footer {
  background: var(--ink);
  padding: 60px 0 0;
}
.iq-footer-brand {
  font-family: var(--ff-head);
  font-size: 18px;
  font-weight: 700;
  color: white;
}
.iq-footer-desc {
  font-size: 13px;
  line-height: 1.75;
  color: rgba(255, 255, 255, .52);
}
.iq-footer-cert {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(46, 139, 114, .2);
  border: 1px solid rgba(91, 181, 154, .3);
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  font-size: 12px;
  color: var(--teal-l);
}
.iq-footer-col-title {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .32);
  margin-bottom: 14px;
}
.iq-footer-link {
  font-size: 14px;
  color: rgba(255, 255, 255, .6);
  text-decoration: none;
  display: block;
  padding: 3px 0;
  transition: color .2s;
}
.iq-footer-link:hover { color: white; }
.iq-footer-bottom {
  margin-top: 48px;
  padding: 16px 0;
  border-top: 1px solid rgba(255, 255, 255, .08);
  font-size: 11px;
  color: rgba(255, 255, 255, .3);
}

/* ── Availability dot ── */
.avail-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #4DC87A;
  display: inline-block;
  flex-shrink: 0;
  animation: iq-pulse 2s infinite;
}
@keyframes iq-pulse {
  0%, 100% { opacity: 1; }
  50%       { opacity: .35; }
}

/* ── Responsive ── */
@media (max-width: 767px) {
  :root {
    --section-py: 48px;
    --section-py-sm: 32px;
  }
}
