/* ================================
   WEBFONTS
   ================================ */
@font-face {
  font-family: 'CenturyGothicWeb';
  src: url('/assets/fonts/CenturyGothic.woff2') format('woff2'),
       url('/assets/fonts/CenturyGothic.woff') format('woff');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'CenturyGothicWeb';
  src: url('/assets/fonts/CenturyGothic-Italic.woff2') format('woff2'),
       url('/assets/fonts/CenturyGothic-Italic.woff') format('woff');
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: 'CenturyGothicWeb';
  src: url('/assets/fonts/CenturyGothic-Bold.woff2') format('woff2'),
       url('/assets/fonts/CenturyGothic-Bold.woff') format('woff');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'CenturyGothicWeb';
  src: url('/assets/fonts/CenturyGothic-BoldItalic.woff2') format('woff2'),
       url('/assets/fonts/CenturyGothic-BoldItalic.woff') format('woff');
  font-weight: 700;
  font-style: italic;
  font-display: swap;
}


/* ================================
   THEME VARIABLES
   ================================ */
:root {
  --ml-primary: #18b7b0;
  --ml-dark: #111;
  --ml-font-body: 'Inter', system-ui, sans-serif;
  --ml-font-gothic: 'CenturyGothicWeb', 'Century Gothic', Arial, sans-serif;

  /* leggermente più chiaro di #FAF7F0 */
  --ml-sand: #FBF9F3;
  --ml-sand-2: #F6F2E8;
}


/* ================================
   BASE / TYPOGRAPHY
   ================================ */
/* Usa Gothic ovunque (testi + headings + UI) */
html, body {
  font-family: var(--ml-font-gothic) !important;
}

/* Forza anche su elementi form/Bootstrap che a volte non ereditano */
button,
input,
select,
textarea,
.form-control,
.form-select,
.btn {
  font-family: var(--ml-font-gothic) !important;
}

/* (Opzionale) Utility se vuoi ancora usare Inter in punti specifici */
.font-body {
  font-family: var(--ml-font-body) !important;
}


/* ================================
   GLOBAL LINKS (brand tiffany)
   ================================ */
/* link standard nel contenuto */
a {
  color: var(--ml-primary);
  text-decoration: none;
  transition: color .2s ease;
}

/* hover / focus */
a:hover,
a:focus {
  color: #12918b;
  text-decoration: underline;
}

/* link phone / mail (opzionale ma coerente) */
a[href^="mailto:"],
a[href^="tel:"] {
  font-weight: 500;
}

/* evita interferenze con bottoni */
a.btn,
a.btn:hover,
a.btn:focus {
  text-decoration: none;
}


/* ================================
   GLOBAL BACKGROUND (warm sand)
   ================================ */
/* background generale del sito */
body{
  background-color: var(--ml-sand) !important;
}

/* dove Bootstrap usa bg-white */
.bg-white{
  background-color: var(--ml-sand) !important;
}

/* dove Bootstrap usa bg-light (spesso è “quasi bianco”) */
.bg-light{
  background-color: var(--ml-sand) !important;
}

/* (opzionale) se hai sezioni che risultano ancora bianche */
section,
main{
  background-color: transparent; /* lascia ereditare dal body */
}


/* ================================
   BRAND / LOGO
   ================================ */
.navbar-brand {
  font-weight: 500;
  letter-spacing: 0.05em;
}

.logo-svg{
  height: 42px;   /* prova 38-48 finché ti piace */
  width: auto;
  color: var(--ml-primary);
  display: block;
}

.navbar-brand:hover .logo-svg {
  opacity: .85;
}


/* ================================
   NAVBAR (hover + active underline)
   ================================ */
/* NAV hover + active underline (Tiffany) SOLO sui link con .nav-ml */
.navbar .navbar-nav .nav-link.nav-ml {
  position: relative;
  color: #2b2b2b;
  font-weight: 400;
  letter-spacing: .02em;
  padding-left: .9rem;
  padding-right: .9rem;
  transition: color .2s ease;
}

/* underline animata */
.navbar .navbar-nav .nav-link.nav-ml::after {
  content: "";
  position: absolute;
  left: .9rem;
  right: .9rem;
  bottom: .35rem;
  height: 2px;
  background: var(--ml-primary);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .2s ease;
  opacity: .95;
}

/* hover/focus */
.navbar .navbar-nav .nav-link.nav-ml:hover,
.navbar .navbar-nav .nav-link.nav-ml:focus {
  color: var(--ml-primary);
  text-decoration: none;
}

.navbar .navbar-nav .nav-link.nav-ml:hover::after,
.navbar .navbar-nav .nav-link.nav-ml:focus::after {
  transform: scaleX(1);
}

/* stato active */
.navbar .navbar-nav .nav-link.nav-ml.active {
  color: var(--ml-primary);
  text-decoration: none;
}

.navbar .navbar-nav .nav-link.nav-ml.active::after {
  transform: scaleX(1);
}

/* Language dropdown: highlight senza underline */
.navbar .dropdown-menu .dropdown-item:hover,
.navbar .dropdown-menu .dropdown-item:focus {
  text-decoration: none;
  background-color: rgba(24, 183, 176, 0.12);
  color: var(--ml-primary);
}

/* Language selector trigger: niente underline in hover/focus */
.navbar .nav-link.dropdown-toggle:hover,
.navbar .nav-link.dropdown-toggle:focus,
.navbar .nav-link.dropdown-toggle:focus-visible {
  text-decoration: none;
  background-color: rgba(24, 183, 176, 0.10);
  border-radius: 10px;
}


/* ================================
   BUTTONS
   ================================ */
.btn-primary {
  background-color: var(--ml-primary);
  border: none;
}

/* FIX hover / focus / active dei pulsanti (no blu Bootstrap) */
.btn-primary {
  background-color: var(--ml-primary);
  border-color: var(--ml-primary);
}

.btn-primary:hover,
.btn-primary:focus,
.btn-primary:focus-visible {
  background-color: #12918b;   /* tiffany più scuro */
  border-color: #12918b;
  box-shadow: none;
}

.btn-primary:active {
  background-color: #0f7f79;   /* ancora un filo più scuro */
  border-color: #0f7f79;
  box-shadow: none;
}


/* ================================
   HERO (responsive background jpg)
   ================================ */
/* base: mobile first */
.hero {
  background:
    linear-gradient(rgba(0,0,0,0.45), rgba(0,0,0,0.45)),
    url('../img/hero-640.jpg') center/cover no-repeat;
  color: #fff;
  padding: 140px 0;
}

/* >= 576px (sm) */
@media (min-width: 576px){
  .hero{
    background:
      linear-gradient(rgba(0,0,0,0.45), rgba(0,0,0,0.45)),
      url('../img/hero-960.jpg') center/cover no-repeat;
  }
}

/* >= 768px (md) */
@media (min-width: 768px){
  .hero{
    background:
      linear-gradient(rgba(0,0,0,0.45), rgba(0,0,0,0.45)),
      url('../img/hero-1280.jpg') center/cover no-repeat;
  }
}

/* >= 992px (lg) */
@media (min-width: 992px){
  .hero{
    background:
      linear-gradient(rgba(0,0,0,0.45), rgba(0,0,0,0.45)),
      url('../img/hero-1600.jpg') center/cover no-repeat;
  }
}

/* >= 1200px (xl) */
@media (min-width: 1200px){
  .hero{
    background:
      linear-gradient(rgba(0,0,0,0.45), rgba(0,0,0,0.45)),
      url('../img/hero-1920.jpg') center/cover no-repeat;
  }
}

/* >= 1600px (2xl / large desktop) */
@media (min-width: 1600px){
  .hero{
    background:
      linear-gradient(rgba(0,0,0,0.45), rgba(0,0,0,0.45)),
      url('../img/hero-2560.jpg') center/cover no-repeat;
  }
}


/* ================================
   LAYOUT SECTIONS
   ================================ */
.section {
  padding: 80px 0;
}

.section-title {
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-size: 0.85rem;
  color: var(--ml-primary);
}


/* ================================
   FLAGS / ICONS
   ================================ */
.fi {
  width: 1.25em;
  height: 0.9em;
  border-radius: 2px;
}


/* ================================
   WHAT-WE-DO: feature ghost icons
   ================================ */
.feature-ghost{
  position: relative;
  padding: 38px 22px;
  border-radius: 18px;              /* coerente con rounded-4 */
  background: transparent;          /* niente card */
  overflow: hidden;
}

.feature-ghost h2,
.feature-ghost p{
  position: relative;
  z-index: 2;
}

/* grande icona “watermark” */
.feature-ghost-icon{
  position: absolute;
  left: -6px;
  top: 6px;
  font-size: 120px;                 /* grande come nello screenshot */
  line-height: 1;
  opacity: .06;                     /* super soft */
  z-index: 1;
  pointer-events: none;
}

/* micro “accent” sotto il titolo (opzionale) */
.feature-ghost h2::after{
  content:"";
  display:block;
  width: 42px;
  height: 2px;
  margin-top: 12px;
  background: var(--ml-primary);
  opacity: .55;
  border-radius: 999px;
}

/* CTA card - premium accent */
.cta-card{
  background: #fbfaf7;                 /* leggermente diverso dal bg-light */
  border: 1px solid rgba(17,17,17,.12) !important;
  border-left: 4px solid var(--ml-primary);
  box-shadow: 0 10px 30px rgba(17,17,17,.06);
}


/* ================================
   HOME: EXPERTISE cards hover
   ================================ */
.expertise-card{
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
  border-color: rgba(17,17,17,.10) !important;
  box-shadow: 0 0 0 rgba(0,0,0,0);
}

.expertise-card:hover{
  transform: translateY(-6px);
  border-color: rgba(24,183,176,.45) !important; /* tiffany soft */
  box-shadow: 0 14px 34px rgba(17,17,17,.10);
}

/* micro accent tiffany sul titolo al passaggio */
.expertise-card:hover .fw-semibold{
  color: var(--ml-primary);
}

/* accessibilità: stesso effetto anche con tab */
.expertise-card:focus-within{
  transform: translateY(-6px);
  border-color: rgba(24,183,176,.45) !important;
  box-shadow: 0 14px 34px rgba(17,17,17,.10);
}
.expertise-card{ cursor: default; }


/* ================================
   VISION – Guides card (sand + tiffany edge + subtle weave)
   ================================ */
.guides-card{
  position: relative;
  overflow: hidden;

  /* stesso tono del body */
  background-color: var(--ml-sand);

  /* bordo elegante + accent tiffany */
  border: 1px solid rgba(17,17,17,.12);
  border-left: 5px solid rgba(24,183,176,.65);
  border-radius: 18px;
}

/* tramatura “design” quasi invisibile + whisper tiffany */
.guides-card::before{
  content:"";
  position:absolute;
  inset:0;
  pointer-events:none;
  z-index:0;

  background:
    /* whisper tiffany morbido (non “macchia”) */
    radial-gradient(700px 320px at 18% 18%,
      rgba(24,183,176,.10), transparent 60%),

    /* weave: incrocio sottilissimo (tipo tessuto/carta) */
    repeating-linear-gradient(
      135deg,
      rgba(17,17,17,.030) 0,
      rgba(17,17,17,.030) 1px,
      transparent 1px,
      transparent 16px
    ),
    repeating-linear-gradient(
      45deg,
      rgba(24,183,176,.020) 0,
      rgba(24,183,176,.020) 1px,
      transparent 1px,
      transparent 20px
    );

  /* rende la trama più “soft”, meno digitale */
  opacity: .85;
}

/* layer di “luce” calda (effetto premium, ma sulla sabbia) */
.guides-card::after{
  content:"";
  position:absolute;
  inset:0;
  pointer-events:none;
  z-index:0;

  background: linear-gradient(
    135deg,
    rgba(251,249,243,.55),
    rgba(246,242,232,.35)
  );
}

/* contenuto sopra i layer */
.guides-card > *{
  position: relative;
  z-index: 1;
}

/* ================================
   VISION – numbered circles
   ================================ */
.guides-card .num-circle{
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;

  border: 1px solid rgba(17,17,17,.45); /* più sottile e meno marcato */
  border-radius: 999px;

  color: var(--ml-dark);
  background: transparent;              /* niente sfondo */

  font-weight: 700;
  font-size: 0.95rem;
  line-height: 1;
}


/* ================================
   VISION – Quick facts (premium)
   ================================ */
.facts{
  display: grid;
  gap: 14px;
  margin-top: 10px;
}

.fact{
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.fact-ico{
  width: 34px;
  height: 34px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;

  /* look boutique: soft pill, tiffany whisper */
  background: rgba(24,183,176,.10);
  border: 1px solid rgba(24,183,176,.20);
  color: var(--ml-primary);

  flex: 0 0 34px;
}

.fact-ico i{
  font-size: 16px;
  line-height: 1;
  transform: translateY(-.5px);
}

.fact-body{
  min-width: 0;
}

.fact-label{
  font-size: 12px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: rgba(17,17,17,.55);
  margin-top: 2px;
}

.fact-value{
  font-size: 16px;
  color: rgba(17,17,17,.78);
  line-height: 1.35;
  margin-top: 2px;
}

/* micro-divider elegante (opzionale): attivalo se ti piace */
.facts .fact + .fact{
  padding-top: 12px;
  border-top: 1px solid rgba(17,17,17,.06);
}


/* ================================
   VISION – Quick facts card border darker
   ================================ */
.quick-facts-card{
  border-color: rgba(17,17,17,.18) !important; /* leggermente più scuro di default */
}

.quick-facts-card:hover{
  border-color: rgba(17,17,17,.22) !important; /* micro boost al passaggio (facoltativo) */
}


/* ================================
   CONTACTS – Cards background (match guides-card style) [FIX CLEAN EDGES]
   ================================ */
/* Base */
.contact-card-bg{
  position: relative;
  overflow: hidden;
  border-color: rgba(0,0,0,.08) !important;
  color: var(--ml-dark);
  background: none !important;            /* IMPORTANT: niente background qui */
  border-radius: inherit;                 /* usa quello di .rounded-4 */
}

/* Photo layer */
.contact-card-bg::before{
  content: "";
  position: absolute;
  inset: 0;
  background: var(--card-bg) center/cover no-repeat;
  border-radius: inherit;                 /* clippa perfetto */
  z-index: 0;
}

/* Light overlay layer (same look as guides-card) */
.contact-card-bg::after{
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,.92), rgba(255,255,255,.78));
  border-radius: inherit;                 /* clippa perfetto */
  z-index: 1;
  pointer-events: none;
}

/* Put content above photo+overlay */
.contact-card-bg > *{
  position: relative;
  z-index: 2;
}

/* Typography inside cards */
.contact-card-bg .text-muted,
.contact-card-bg .small{
  color: rgba(17,17,17,.70) !important;
}

.contact-card-bg h3,
.contact-card-bg h4,
.contact-card-bg .h5,
.contact-card-bg .h6,
.contact-card-bg .fw-semibold{
  color: var(--ml-dark) !important;
}

/* Links */
.contact-card-bg a{
  color: var(--ml-primary) !important;
}

.contact-card-bg a:hover{
  color: #12918b !important;
  text-decoration: underline;
}

/* WhatsApp icon */
.contact-card-bg .bi-whatsapp{
  color: var(--ml-primary);
}

/* Per-card image via CSS variable */
.contact-card-contacts{
  --card-bg: url("/assets/img/contact-contacts-bg.jpg");
}

.contact-card-whatsapp{
  --card-bg: url("/assets/img/contact-whatsapp-bg.jpg");
}

@media (min-width: 992px){
  .contact-form-card{
    height: 100%;
    display: flex;
    flex-direction: column;
  }

  .contact-form-card form{
    flex: 1;
    display: flex;
    flex-direction: column;
  }

  .contact-form-card form > .row{
    flex: 1;
  }
}


/* ================================
   WORKS – cards + media overlay
   ================================ */
/* Works cards: image + soft brighten overlay */
.card-media {
  position: relative;
  overflow: hidden;
}

/* immagine: cover perfetto dentro ratio */
.card-media-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transform: scale(1.02); /* micro-zoom per evitare bordi */
}

/* overlay leggero per “schiarire” */
.card-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.12); /* aumenta a 0.18 se vuoi più chiaro */
  pointer-events: none;
}

/* opzionale: hover elegante */
.card:hover .card-media-img {
  transform: scale(1.05);
  transition: transform 300ms ease;
}

.card .card-media-img {
  transition: transform 300ms ease;
}

/* Works features (no cards) */
.works-features { border-top: 1px solid rgba(0,0,0,.08); border-bottom: 1px solid rgba(0,0,0,.08); }
.works-feature { padding: 22px 8px; height: 100%; position: relative; }
.works-feature-kicker{
  font-size: 12px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: rgba(0,0,0,.45);
  margin-bottom: 10px;
}

/* separatori verticali su desktop */
@media (min-width: 992px){
  .works-feature { padding: 22px 22px; }
  .works-feature::after{
    content:"";
    position:absolute;
    top: 18px;
    bottom: 18px;
    right: -12px;
    width: 1px;
    background: rgba(0,0,0,.08);
  }
  .works-features .col-lg-4:last-child .works-feature::after{ display:none; }
}

/* separatori orizzontali su mobile */
@media (max-width: 991.98px){
  .works-features .col-lg-4:not(:last-child) .works-feature{
    border-bottom: 1px solid rgba(0,0,0,.08);
  }
}

/* WORKS: body area slightly darker than page sand (warm, not grey) */
.works-card .card-body{
  background: var(--ml-sand-2);
}

/* separatore soft tra immagine e body */
.works-card .card-media{
  border-bottom: 1px solid rgba(17,17,17,.06);
}


/* ================================
   WE CARE – editorial list (no cards)
   ================================ */
.care-list{
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  border-top: 1px solid rgba(17,17,17,.10);
  border-bottom: 1px solid rgba(17,17,17,.10);
  background: transparent;
}

/* “row” minimal con separatore */
.care-item{
  position: relative;
  padding: 22px 6px 22px 18px;
  border-top: 1px solid rgba(17,17,17,.08);
}

.care-item:first-child{ border-top: 0; }

/* micro accent tiffany a sinistra */
.care-item::before{
  content:"";
  position:absolute;
  left: 0;
  top: 22px;
  bottom: 22px;
  width: 3px;
  border-radius: 999px;
  background: var(--ml-primary);
  opacity: .65;
}

/* kicker piccolo e “editoriale” */
.care-kicker{
  font-size: 12px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: rgba(0,0,0,.45);
  margin-bottom: 8px;
}

.care-title{
  color: var(--ml-dark);
  margin: 0 0 6px 0;
}

/* responsive: 2 colonne su desktop con divider verticali soft */
@media (min-width: 992px){
  .care-list{
    grid-template-columns: 1fr 1fr;
    border-left: 1px solid rgba(17,17,17,.10);
    border-right: 1px solid rgba(17,17,17,.10);
  }

  .care-item{
    padding: 26px 24px 26px 28px;
    border-top: 1px solid rgba(17,17,17,.08);
  }

  /* divider verticale tra le due colonne */
  .care-item:nth-child(odd){
    border-right: 1px solid rgba(17,17,17,.08);
  }

  /* sistemiamo il bordo top della prima riga */
  .care-item:nth-child(1),
  .care-item:nth-child(2){
    border-top: 0;
  }

  .care-item::before{
    left: 14px;
    top: 26px;
    bottom: 26px;
  }
}


/* ================================
   FOOTER
   ================================ */
/* Footer: tiffany on hover (vince su .text-muted), no underline */
footer a:hover,
footer a:focus,
footer a:hover i,
footer a:focus i {
  color: var(--ml-primary) !important;
  text-decoration: none !important;
}


/* ================================
   ACCESSIBILITY
   ================================ */
.skip-link{
  position: absolute;
  left: -9999px;
  top: 10px;
  z-index: 9999;
  background: #fff;
  color: var(--ml-dark);
  border: 1px solid rgba(0,0,0,.2);
  padding: .6rem .9rem;
  border-radius: .6rem;
  text-decoration: none;
}

.skip-link:focus{
  left: 10px;
  outline: none;
  box-shadow: 0 0 0 3px rgba(24,183,176,.25);
}


/* ================================
   RESPONSIVE
   ================================ */
/* Mobile: underline a tutta larghezza del link (facoltativo) */
@media (max-width: 991.98px) {
  .navbar .navbar-nav .nav-link.nav-ml::after {
    left: 0;
    right: 0;
  }
}

/* WHAT-WE-DO – Services split grid (no cards, no left bar) */
.services-split{
  border-top: 1px solid rgba(17,17,17,.10);
  border-bottom: 1px solid rgba(17,17,17,.10);
}

.services-split-item{
  padding: 22px 6px;
  border-top: 1px solid rgba(17,17,17,.08);
}

.services-split-item:first-child{ border-top: 0; }

.services-split-title{
  font-size: 12px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: rgba(0,0,0,.55);
  margin-bottom: 8px;
}

.services-split-desc{
  color: rgba(17,17,17,.72);
  line-height: 1.55;
}

/* 2 colonne desktop + divider verticale */
@media (min-width: 992px){
  .services-split{
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: 26px;
  }

  .services-split-item{
    padding: 26px 0;
  }

  /* divider verticale tra colonne (solo sugli item a sinistra) */
  .services-split-item:nth-child(odd){
    padding-right: 26px;
    border-right: 1px solid rgba(17,17,17,.08);
  }
  .services-split-item:nth-child(even){
    padding-left: 26px;
  }

  /* top border sulla prima riga via grid */
  .services-split-item:nth-child(1),
  .services-split-item:nth-child(2){
    border-top: 0;
  }
}
