/* ============================================================
   MARCELLO ERBETTA — Redesign 2026
   Palette: bianco, grigio caldo, blu petrolio, accento oro
   ============================================================ */

/* ── SELF-HOSTED FONTS ── */
/* Cormorant Garamond */
@font-face {
  font-family: 'Cormorant Garamond';
  src: url('fonts/CormorantGaramond-Light.woff2') format('woff2');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Cormorant Garamond';
  src: url('fonts/CormorantGaramond-LightItalic.woff2') format('woff2');
  font-weight: 300;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: 'Cormorant Garamond';
  src: url('fonts/CormorantGaramond-Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Cormorant Garamond';
  src: url('fonts/CormorantGaramond-Italic.woff2') format('woff2');
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: 'Cormorant Garamond';
  src: url('fonts/CormorantGaramond-SemiBold.woff2') format('woff2');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
/* DM Sans */
@font-face {
  font-family: 'DM Sans';
  src: url('fonts/DMSans-Light.woff2') format('woff2');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'DM Sans';
  src: url('fonts/DMSans-Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'DM Sans';
  src: url('fonts/DMSans-Medium.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

:root {
  --white:       #FAFAF8;
  --off-white:   #F2F0EC;
  --stone:       #E5E0D8;
  --mid:         #9A9088;
  --dark:        #2C2A27;
  --teal:        #1E4A5C;
  --teal-light:  #2A6278;
  --gold:        #B8935A;
  --gold-light:  #D4B07A;

  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body:    'DM Sans', system-ui, sans-serif;

  --nav-h: 72px;
  --radius: 4px;
  --transition: 0.3s cubic-bezier(0.4, 0, 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: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  color: var(--dark);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }

/* ── TYPOGRAPHY ── */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -0.01em;
}
h1 { font-size: clamp(2.4rem, 5vw, 4rem); }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.8rem); }
h3 { font-size: clamp(1.3rem, 2.5vw, 1.8rem); }
h4 { font-size: 1.1rem; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; font-family: var(--font-body); color: var(--teal); }
p { max-width: 68ch; }

/* ── NAVBAR ── */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  background: rgba(250,250,248,0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--stone);
  z-index: 100;
  display: flex;
  align-items: center;
  padding: 0 clamp(1.5rem, 5vw, 3rem);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.nav-logo img {
  height: 54px;
  width: auto;
}
.nav-logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}
.nav-logo-name {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--teal);
  letter-spacing: 0.02em;
}
.nav-logo-title {
  font-size: 0.72rem;
  color: var(--mid);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 300;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  list-style: none;
}
.nav-links a {
  font-size: 0.82rem;
  font-weight: 400;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--dark);
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius);
  transition: color var(--transition), background var(--transition);
}
.nav-links a:hover,
.nav-links a.active {
  color: var(--teal);
  background: rgba(30,74,92,0.07);
}
.nav-links .cta-link a {
  background: var(--teal);
  color: var(--white);
  padding: 0.5rem 1rem;
}
.nav-links .cta-link a:hover {
  background: var(--teal-light);
  color: var(--white);
}

/* Hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 0.5rem;
  border: none;
  background: none;
  z-index: 110;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--dark);
  border-radius: 2px;
  transition: var(--transition);
}
.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); }

/* Mobile menu */
.nav-mobile {
  display: none;
  position: fixed;
  top: var(--nav-h);
  left: 0; right: 0; bottom: 0;
  background: var(--white);
  z-index: 99;
  padding: 2rem clamp(1.5rem, 5vw, 3rem);
  flex-direction: column;
  gap: 0.5rem;
  overflow-y: auto;
  transform: translateY(-10px);
  opacity: 0;
  transition: opacity var(--transition), transform var(--transition);
}
.nav-mobile.open {
  display: flex;
  opacity: 1;
  transform: translateY(0);
}
.nav-mobile a {
  display: block;
  font-size: 1.5rem;
  font-family: var(--font-display);
  color: var(--dark);
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--stone);
  transition: color var(--transition), padding var(--transition);
}
.nav-mobile a:hover,
.nav-mobile a.active {
  color: var(--teal);
  padding-left: 0.5rem;
}
.nav-mobile .mobile-contact {
  margin-top: 1.5rem;
  padding: 1.25rem;
  background: var(--off-white);
  border-radius: var(--radius);
}
.nav-mobile .mobile-contact p {
  font-size: 0.85rem;
  color: var(--mid);
  margin-bottom: 0.5rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.nav-mobile .mobile-contact a {
  font-family: var(--font-body);
  font-size: 1.1rem;
  border-bottom: none;
  color: var(--teal);
  font-weight: 500;
  padding: 0;
}

/* ── PAGE WRAPPER ── */
.page-wrap {
  padding-top: var(--nav-h);
  min-height: 100vh;
}




/* Slider */
    #hero-slider .slide {
        position: absolute;
        inset: 0;
        opacity: 0;
        transition: opacity 1s ease;
        z-index: 0;
    }

    #hero-slider .slide.active {
        opacity: 1;
        z-index: 1;
    }

    #hero-slider .slide img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center top;
        opacity: 1;
    }

    /* Pallini */
    .slider-dots {
        position: absolute;
        bottom: 1.5rem;
        right: clamp(1.5rem, 5vw, 3rem);
        z-index: 3;
        display: flex;
        gap: 0.5rem;
        left: 47%;
        right: 47%;
    }

    .slider-dot {
        width: 8px;
        border-radius: 50%;
        background: rgba(255, 255, 255, 0.35);
        border: 1px solid rgba(255, 255, 255, 0.6);
        cursor: pointer;
        transition: background 0.3s;
        min-width: 8px;
        aspect-ratio: 1 / 1;
    }

    .slider-dot.active {
        background: var(--gold);
        border-color: var(--gold);
    }




/* ── HERO ── */
.hero {
  position: relative;
  overflow: hidden;
  background: var(--teal);
  color: var(--white);
  /* min-height: clamp(400px, 60vh, 680px); */
  display: flex;
  align-items: flex-end;
}
.hero-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  opacity: 1;
}
.hero-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(30,74,92,0.95) 0%, rgba(30,74,92,0.5) 60%, rgba(30,74,92,0.2) 100%);
}
.hero-content {
  position: relative;
  z-index: 2;
  padding: clamp(2rem, 6vw, 4rem) clamp(1.5rem, 5vw, 3rem);
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
}
.hero-eyebrow {
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold-light);
  font-weight: 400;
  margin-bottom: 1rem;
}
.hero-content h1 {
  font-weight: 300;
  color: var(--white);
  margin-bottom: 1.25rem;
}
.hero-content h1 em {
  font-style: italic;
  color: var(--gold-light);
}
.hero-content p {
  font-size: 1.05rem;
  color: rgba(255,255,255,0.8);
  font-weight: 300;
  margin-bottom: 2rem;
}
.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--gold);
  color: var(--white);
  padding: 0.875rem 1.75rem;
  border-radius: var(--radius);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: background var(--transition), transform var(--transition);
}
.hero-cta:hover {
  background: var(--gold-light);
  transform: translateY(-1px);
}
.hero-cta svg { width: 16px; height: 16px; }

/* Page hero (inner pages) */
.page-hero {
  background: var(--teal);
  color: var(--white);
  padding: clamp(3rem, 8vw, 6rem) clamp(1.5rem, 5vw, 3rem);
  text-align: center;
}
.page-hero h1 {
  color: var(--white);
  font-weight: 300;
  margin-bottom: 0.75rem;
}
.page-hero .subtitle {
  font-size: 1.05rem;
  color: rgba(255,255,255,0.7);
  font-weight: 300;
justify-self: center;
}

/* ── CONTAINER ── */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 clamp(1.5rem, 5vw, 3rem);
}

/* ── SECTIONS ── */
.section {
  padding: clamp(3rem, 8vw, 6rem) clamp(1.5rem, 5vw, 3rem);
}
.section-white  { background: var(--white); }
.section-off    { background: var(--off-white); }
.section-teal   { background: var(--teal); color: var(--white); }
.section-dark   { background: var(--dark); color: var(--white); }

.section-header {
  margin-bottom: clamp(2rem, 5vw, 3.5rem);
}
.section-header h4 {
  margin-bottom: 0.5rem;
}
.section-teal h4, .section-dark h4 {
  color: var(--gold-light);
}
.section-header h2 {
  font-weight: 300;
}
.section-header p {
  margin-top: 1rem;
  color: var(--mid);
  font-size: 1.05rem;
}
.section-teal .section-header p,
.section-dark .section-header p {
  color: rgba(255,255,255,0.7);
}

/* ── DIVIDER ── */
.divider {
  width: 40px;
  height: 2px;
  background: var(--gold);
  margin: 1rem 0;
}

/* ── GRID ── */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.grid-2-1 { display: grid; grid-template-columns: 2fr 1fr; gap: 3rem; align-items: center; }
.grid-1-2 { display: grid; grid-template-columns: 1fr 2fr; gap: 3rem; align-items: center; }

/* ── CARD ── */
.card {
  background: var(--white);
  border: 1px solid var(--stone);
  border-radius: var(--radius);
  padding: 2rem;
  transition: border-color var(--transition), box-shadow var(--transition), transform var(--transition);
}
.card:hover {
  border-color: var(--teal);
  box-shadow: 0 8px 32px rgba(30,74,92,0.1);
  transform: translateY(-2px);
}
.card-number {
  font-family: var(--font-display);
  font-size: 3rem;
  color: var(--stone);
  line-height: 1;
  margin-bottom: 1rem;
}
.card h3 { margin-bottom: 0.5rem; font-size: 1.2rem; }
.card p { font-size: 0.92rem; color: var(--mid); max-width: none; }

/* ── TEAL CARD (on white bg) ── */
.card-teal {
  background: var(--teal);
  color: var(--white);
  border-color: var(--teal);
}
.card-teal h3 { color: var(--white); }
.card-teal p  { color: rgba(255,255,255,0.75); }
.card-teal:hover { border-color: var(--teal-light); }

/* ── STAT STRIP ── */
.stat-strip {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
  padding: 5px;
}
.stat-item {
  flex: 1;
  min-width: 150px;
  background: var(--teal-light);
  padding: 2rem 1.5rem;
  text-align: center;
  border-radius: 10px;
}

.stat-num {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 300;
  color: var(--white);
  line-height: 1;
}
.stat-label {
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.7);
  margin-top: 0.4rem;
}

/* ── IMAGE BLOCKS ── */
.img-rounded {
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4/3;
  object-fit: cover;
  width: 100%;
}
.img-portrait {
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 3/4;
  object-fit: cover;
  width: 100%;
}

/* ── INLINE LIST ── */
.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
}
.tag {
  font-size: 0.8rem;
  background: var(--off-white);
  border: 1px solid var(--stone);
  color: var(--dark);
  padding: 0.35rem 0.8rem;
  border-radius: 100px;
  letter-spacing: 0.03em;
}

/* ── CTA BAND ── */
.cta-band {
  background: var(--gold);
  color: var(--white);
  padding: clamp(2.5rem, 6vw, 4rem) clamp(1.5rem, 5vw, 3rem);
  text-align: center;
}
.cta-band h2 { color: var(--white); font-weight: 300; margin-bottom: 0.75rem; }
.cta-band p { color: rgba(255,255,255,0.85); margin: 0 auto 1.75rem; }
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.875rem 1.75rem;
  border-radius: var(--radius);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: var(--transition);
  cursor: pointer;
  border: 2px solid transparent;
}
.btn-white {
  background: var(--white);
  color: var(--teal);
}
.btn-white:hover {
  background: var(--off-white);
  transform: translateY(-1px);
}
.btn-teal {
  background: var(--teal);
  color: var(--white);
}
.btn-teal:hover {
  background: var(--teal-light);
  transform: translateY(-1px);
}
.btn-outline-white {
  background: transparent;
  border-color: rgba(255,255,255,0.5);
  color: var(--white);
}
.btn-outline-white:hover {
  border-color: var(--white);
  background: rgba(255,255,255,0.1);
}

/* ── CONTACT FORM ── */
.form-group {
  margin-bottom: 1.25rem;
}
.form-group label {
  display: block;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--mid);
  margin-bottom: 0.4rem;
  font-weight: 500;
}
.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  border: 1px solid var(--stone);
  border-radius: var(--radius);
  background: var(--white);
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--dark);
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
  -webkit-appearance: none;
}
.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(30,74,92,0.1);
}
.form-group textarea { resize: vertical; min-height: 130px; }
.form-submit { margin-top: 0.5rem; }

/* ── INFO BOX ── */
.info-box {
  background: var(--off-white);
  border-left: 3px solid var(--gold);
  padding: 1.5rem 1.75rem;
  border-radius: 0 var(--radius) var(--radius) 0;
  margin: 1.5rem 0;
}
.info-box h4 { color: var(--dark); margin-bottom: 0.5rem; }

/* ── ACCORDION ── */
.accordion-item {
  border-bottom: 1px solid var(--stone);
}
.accordion-trigger {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  padding: 1.25rem 0;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: var(--dark);
  gap: 1rem;
}
.accordion-trigger:hover { color: var(--teal); }
.accordion-icon {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  border: 1.5px solid currentColor;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform var(--transition);
}
.accordion-trigger[aria-expanded="true"] .accordion-icon {
  transform: rotate(45deg);
  color: var(--teal);
}
.accordion-body {
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.4s ease;
}
.accordion-body-inner {
  padding-bottom: 1.25rem;
  font-size: 0.95rem;
  color: var(--mid);
  line-height: 1.7;
}

/* ── FOOTER ── */
footer {
  background: var(--dark);
  color: rgba(255,255,255,0.6);
  padding: 3rem clamp(1.5rem, 5vw, 3rem) 2rem;
}
.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2rem;
  align-items: start;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer-brand { font-family: var(--font-display); font-size: 1.4rem; color: var(--white); margin-bottom: 0.4rem; }
.footer-copy {
  max-width: 1200px;
  margin: 1.5rem auto 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
  font-size: 0.8rem;
}
.footer-copy a { color: rgba(255,255,255,0.4); transition: color var(--transition); }
.footer-copy a:hover { color: var(--white); }
.footer-links { display: flex; gap: 1.5rem; flex-wrap: wrap; }

/* ── BREADCRUMB ── */
.breadcrumb {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.5);
  margin-bottom: 1rem;
  letter-spacing: 0.03em;
}
.breadcrumb a { color: rgba(255,255,255,0.6); }
.breadcrumb a:hover { color: var(--white); }
.breadcrumb span { margin: 0 0.4rem; }

/* ── UTILS ── */
.text-center { text-align: center; }
.text-teal   { color: var(--teal); }
.text-gold   { color: var(--gold); }
.text-mid    { color: var(--mid); }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mb-3 { margin-bottom: 1.5rem; }
.flex { display: flex; }
.items-center { align-items: center; }
.gap-1 { gap: 0.5rem; }
.gap-2 { gap: 1rem; }


/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  .nav-links { display: none; }
  .nav-toggle { display: flex; }
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .grid-2-1, .grid-1-2 { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; }
  .footer-copy { flex-direction: column; align-items: flex-start; }
  .hero {min-height: 300px!important;}
}
@media (max-width: 600px) {
  .stat-strip { flex-direction: column; gap: 2px; }
  .stat-item:first-child { border-radius: var(--radius) var(--radius) 0 0; }
  .stat-item:last-child  { border-radius: 0 0 var(--radius) var(--radius); }
  .hero-cta { width: 100%; justify-content: center; }
  .hero {min-height: 400px!important;}
}

@media (min-width: 1200px) {
   .hero slide {object-position: center top; }
}



