/**
 * Sartoria Galli Business - Custom Theme
 */

/**
* Variables
*/

:root {
  /* TESTI */
  --color-primary: #1a1612; /* Nero caldo — Perfetto, massima leggibilità */
  --color-secondary: #5a524a; /* Marrone bruciato/Fumo — Per testi secondari o didascalie */
  
    /* SFONDI (Ridotti a 3 per maggiore pulizia) */
  --bg-body: #ffffff; /* Bianco puro — Sfondo principale per dare aria al sito */
  --bg-cream: #fdf1dd; /* Avorio — Per spezzare e creare sezioni eleganti (es. il footer o la storia) */
  --bg-card: #faf7f2; /* Carta — Per evidenziare singoli elementi (es. box recensioni o dettagli prodotto) */

  /* ACCENTI SARTORIALI (Oro) */
  --light-primary: #b8975a; /* Oro sartoriale — Per bottoni principali, bordi e icone */
  --light-secondary: #d4b87a; /* Oro chiaro — Esclusivamente per linee divisorie (<hr>) e dettagli sottili */
  --accent-link: #264653; /* blu petrolio */

  /* BORDI */
  --color-border: #d4b87a;

  /* VARIABILI EREDITATE */
  --text-color: #4a4a4a;
  --text-color-light: #878787;
  --bold-color: #222222;
  --dark: #0f0f22;
  --shadow-primary: 0 0 10px 1px var(--color-primary);
  --shadow-secondary: 0 0 10px 1px var(--color-secondary);
  
  --line: rgba(26, 22, 18, 0.14);
  

  /* ── TIPOGRAFIA ──────────────────────────────────────── */
  --font-text: 'Cormorant Garamond', "Inter", sans-serif;
  --font-heading: 'DM Mono', 'Georgia', serif;
  --font-tecno: 'DM Mono', 'Courier New';
  --slogan: 'Cormorant Garamond';
  
  /* Scale tipografica */
  --text-xs: 12px;
  --text-sm: 14px;
  --text-base: 16px;
  --text-md: 18px;
  --text-lg: 20px;
  --text-xl: 22px;
  --text-2xl: 24px;
  --text-3xl: 26px;
  --text-4xl: 28px;

  /* Fluid title */
  --title-hero: clamp(30px, 4vw, 28px);
  --title-section: clamp(28px, 4vw, 24px);
  --title-card: clamp(18px, 2.5vw, 20px);

  /* Line height */
  --leading-tight: 1.1;
  --leading-snug: 1.3;
  --leading-normal: 1.6;
  --leading-loose: 1.9;

  /* Letter spacing */
  --tracking-wide: 0.05em;
  --tracking-wider: 0.1em;
  --tracking-label: 0.25em;

  /* per eyebrow/label */
  --tracking-title: 0.03em;

  /* ── SPAZIATURE ──────────────────────────────────────── */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 48px;
  --space-8: 64px;
  --space-9: 80px;
  --space-10: 96px;

  /* ── LAYOUT ──────────────────────────────────────────── */
  --max-width: 1100px;
  --max-content: 760px;
  --gutter: 5%;
  --gap: 16px;
  --radius: 2px;
  /* bordi quasi-squadrati, sartoriali */

  /* ── TRANSIZIONI ─────────────────────────────────────── */
  --transition: 0.2s ease;
  --transition-slow: 0.4s ease;

  /* ── OMBRE ───────────────────────────────────────────── */
  --shadow-sm: 0 2px 8px rgba(26, 22, 18, 0.06);
  --shadow-md: 0 8px 24px rgba(26, 22, 18, 0.10);
  --shadow-lg: 0 16px 48px rgba(26, 22, 18, 0.14);

  /* ── Z-INDEX ─────────────────────────────────────────── */
  --z-base: 1;
  --z-dropdown: 100;
  --z-header: 200;
  --z-modal: 300;
}


*, *::before, *::after {
  box-sizing: border-box;
}

html {
  font-size: 15px;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text-main);
  background: var(--bg-main);
  font-family: var(--font-sans);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
/* Impostazioni generali */

body {
  font-family: Arial, sans-serif;
}

/* Immagini responsive */

img {
  max-width: 100%;
  height: auto;
}

.header.full-width {
  background-color: var(--bg-cream);
  color: var(--text-main);
  border-bottom: 1px solid var(--accent-light);
  padding-bottom: 24px;
}

.site-name-slogan {
  padding-left: 30px;
}

.site-name-slogan.second-line {
	color: var(--light-primary);
	font-family: var(--slogan);
	font-style: italic;
}


.header i {
  color: var(--light-primary);
}

/* Contenuto del nodo */
.node-view-mode-teaser .links-container {
display: none;
}

/* footer */
.footer.full-width {
  background: var(--bg-cream);
  color: var(--text-main);
}

.footer-main {
 background: none;
}

.footer-legal p {
 text-align: center;
 margin-left: 4px;
}

/* Specifico per landing page */
.page-type-landing-page *,
.page-type-landing-page *::before,
.page-type-landing-page *::after { box-sizing: border-box; }

.page-type-landing-page img,
.page-type-landing-page .video { width: auto; height: 100%; display: block; }
.page-type-landing-page .video .figure { margin: auto; max-width: 450px; }

/* ---------- Struttura sezioni ---------- */
.page-type-landing-page .hero {
  padding: 30px 24px;
  background: var(--bg-body);
  width: 100%;
  text-align: left;
}

.page-type-landing-page .wrap { max-width: 1140px; margin: 0 auto; }
.page-type-landing-page .wrap-narrow { width: 90%; }
.page-type-landing-page .hr { color: var(--light-secondary); width: 80%; margin: auto; text-align: center; }

/* ---------- Tipografia ---------- * /
.page-type-landing-page .card .label {
  font-family: var(--font-tecno);
  font-size: 1.2rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--light-primary);
  margin: 0 0 16px;
}
*/

.page-type-landing-page .label {
	font-size: var(--title-card);
	text-align: center;
	text-transform: none;
}

.page-type-landing-page .body {
	font-size: var(--text-base);
	text-transform: none;
}

.page-type-landing-page h2, .page-type-landing-page h3 {
  font-family: "Cormorant Garamond", serif;
  font-weight: 300;
  color: var(--color-primary);
  line-height: 1.15;
  margin: 0 0 20px;
}

.page-type-landing-page h2 { font-size: clamp(1.9rem, 3.4vw, 2.5rem); }
.page-type-landing-page h3 { font-size: 1.5rem; }
.page-type-landing-page h3 { font-size: 1.1rem; }
.page-type-landing-page p { margin: 0 0 18px; }
.page-type-landing-page .lead { font-size: 1.2rem; color: var(--color-secondary); }
.page-type-landing-page .note {
  font-size: 0.92rem;
  color: var(--color-secondary);
  padding-left: 14px;
}

.page-type-landing-page a.link {
  color: var(--color-primary);
  text-decoration: none;
  border-bottom: 1px solid var(--light-primary);
}

.page-type-landing-page a.link:hover { color: var(--light-primary); }

.page-type-landing-page .header-right .menu {
  display: none;
}

.page-type-landing-page .image {
	width: 450px;
	height: auto;
}

.page-type-landing-page .video .figure {
  height: auto; /* Il riquadro deve avere un'altezza definita */
  width: 450px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.contenitore-video video {
  height: 80%;   /* Riduce l'altezza all'80% del contenitore */
  width: auto;   /* Adatta la larghezza in automatico senza schiacciare il video */
}

/* ---------- Griglie ---------- */
.page-type-landing-page .split { 
	display: grid; 
	grid-template-columns: 1fr 1fr; 
	gap: 64px; 
	align-items: center; 
}

.page-type-landing-page .split-hero { 
	grid-template-columns: 48fr 52fr; 
}

.page-type-landing-page .grid-3 { 
	display: grid; 
	grid-template-columns: repeat(3, 1fr); 
	gap: 40px; 
	margin-top: 48px; 
}

.page-type-landing-page .grid-2 { 
	display: grid; 
	grid-template-columns: repeat(2, 1fr); 
	gap: 40px; 
	margin-top: 48px; 
}

.page-type-landing-page .col { 
	border-top: 1px solid var(--line); 
	padding-top: 24px; 
}

.page-type-landing-page .col img { 
	margin-bottom: 20px; 
	width: 100%; 
}

.page-type-landing-page .col p:last-child { 
	margin-bottom: 0; 
}

.page-type-landing-page .figure img { 
	width: 100%; 
}

.page-type-landing-page .figure--45 img { 
	aspect-ratio: 4 / 5; 
	object-fit: cover; 
}

.page-type-landing-page .figure--169 video,
.page-type-landing-page .figure--169 img { 
	aspect-ratio: 16 / 9; 
	object-fit: cover; 
	width: 100%; 
	background: var(--color-primary); 
}

.page-type-landing-page .caption { 
	font-size: 0.85rem; 
	color: var(--color-secondary);
	margin-top: 10px; 
}

/* ---------- Blocchi card (pari importanza) ---------- */
.page-type-landing-page .card {
  border: 1px solid var(--line);
  background: var(--bg-card);
  display: flex;
  flex-direction: column;
  padding: 10px;
}
.page-type-landing-page .card img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.page-type-landing-page .card-body { padding: 32px; display: flex; flex-direction: column; flex: 1; }
.page-type-landing-page .card-body .actions { margin-top: auto; padding-top: 12px; }

/* Variante hero: immagini quadrate, stessa altezza nelle due colonne */
.page-type-landing-page .hero .card img { aspect-ratio: 1 / 1; }
.page-type-landing-page .hero .card,
.page-type-landing-page .hero .card .body h2 { margin-bottom: 14px; }
.page-type-landing-page .grid-2 { align-items: stretch; }

.page-type-landing-page .cta {
	background: var(--light-primary);
	border: 1px solid #000000;
	color: #ffffff;
	padding: 4px 20px;
	max-width: 80%;
	margin: auto;
}

.page-type-landing-page .video .cta-anchor {
	color: var(--light-primary);
	text-decoration: underline;
	font-size: var(--text-md);
}

.page-type-landing-page .video .lead {
	padding-top: 24px;
	font-size: var(--text-md);
}

.page-type-landing-page .video ul {
	font-size: var(--text-md);
}

.page-type-landing-page li {
 margin-bottom: 8px;
}


.page-type-landing-page hr {}
.page-type-landing-page .solution {}
.page-type-landing-page .case-study {}

/* ---------- Responsive ---------- */
@media (max-width: 1023px) {
	.page-type-landing-page .section { padding: 64px 24px; }
  .page-type-landing-page .split { gap: 40px; }
  .page-type-landing-page .grid-3 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 767px) {
  .page-type-landing-page .section { padding: 52px 20px; }
  .page-type-landing-page .split,
  .page-type-landing-page .split-hero,
  .page-type-landing-page .grid-3,
  .page-type-landing-page .grid-2, 
  .page-type-landing-page .row { grid-template-columns: 1fr; }
  .page-type-landing-page .split { gap: 32px; }
  .page-type-landing-page .actions { flex-direction: column; }
  .page-type-landing-page a.btn { text-align: center; }
  .page-type-landing-page .card .body,
  .page-type-landing-page .card { padding: 24px; }
  .page-type-landing-page .steps li { grid-template-columns: 40px 1fr; }
  .page-type-landing-page .table { font-size: 0.92rem; }
  .page-type-landing-page .hero .card img { aspect-ratio: 4 / 3; }
}

/*					-------------------------------						*/

    :root {
      --bg-page: #FAF9F6;         /* Avorio caldo sartoriale */
      --text-primary: #141B29;    /* Blu notte profondo */
      --text-muted: #5A6270;
      --accent-blue: #1B365D;     /* Blu Scuderie Blue */
      --border-light: #E2DFD7;
    }

    * {
      box-sizing: border-box;
      margin: 0;
      padding: 0;
    }

    body {
      background-color: var(--bg-page);
      color: var(--text-primary);
      font-family: 'Plus Jakarta Sans', sans-serif;
      -webkit-font-smoothing: antialiased;
    }

    /* Contenitore principale Hero */
    .b2b-hero-section {
      max-width: 1280px;
      margin: 0 auto;
      padding: 48px 24px 80px;
    }

    .b2b-hero-header {
      text-align: center;
      max-width: 680px;
      margin: 0 auto 48px;
    }

    .b2b-eyebrow {
      font-size: 11px;
      letter-spacing: 0.18em;
      text-transform: uppercase;
      color: var(--accent-blue);
      font-weight: 600;
      margin-bottom: 12px;
      display: block;
    }

    .b2b-hero-header h1 {
      font-family: 'Cormorant Garamond', serif;
      font-size: clamp(32px, 4vw, 46px);
      font-weight: 500;
      line-height: 1.15;
    }

    /* Griglia a 2 colonne gemelle * /
    .b2b-split-grid {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 40px;
      align-items: start;
    }

    .b2b-card {
      display: flex;
      flex-direction: column;
    }

    /* Barra superiore sopra l'immagine per allineare le altezze */
    .b2b-card-topbar {
      height: 36px;
      display: flex;
      align-items: center;
      justify-content: space-between;
      margin-bottom: 12px;
      border-bottom: 1px solid var(--border-light);
      padding-bottom: 8px;
    }

    .b2b-card-label {
      font-size: 11px;
      letter-spacing: 0.12em;
      text-transform: uppercase;
      color: var(--text-muted);
      font-weight: 600;
    }

    /* Pulsanti Switcher per le due Capsule */
    .capsule-tabs {
      display: flex;
      gap: 16px;
    }

    .capsule-tab-btn {
      background: none;
      border: none;
      font-family: inherit;
      font-size: 11px;
      letter-spacing: 0.1em;
      text-transform: uppercase;
      color: var(--text-muted);
      cursor: pointer;
      padding: 4px 0;
      position: relative;
      transition: color 0.25s ease;
    }

    .capsule-tab-btn.active {
      color: var(--accent-blue);
      font-weight: 600;
    }

    .capsule-tab-btn.active::after {
      content: "";
      position: absolute;
      bottom: -9px;
      left: 0;
      width: 100%;
      height: 2px;
      background-color: var(--accent-blue);
    }

    /* Contenitore Immagine Bloccato a 3:4 */
    .b2b-media-frame {
      position: relative;
      width: 100%;
      aspect-ratio: 3 / 4;
      overflow: hidden;
      background-color: #EFECE6;
    }

    .b2b-media-frame img {
      position: absolute;
      inset: 0;
      width: 100%;
      height: 100%;
      object-fit: cover;
      transition: opacity 0.45s ease, transform 0.6s ease;
    }

    /* Gestione dissolvenza tra Indigo Craft e Quiet Tailoring */
    .capsule-slide {
      opacity: 0;
      pointer-events: none;
    }

    .capsule-slide.active {
      opacity: 1;
      pointer-events: auto;
    }

    .b2b-card:hover .b2b-media-frame img.active,
    .b2b-card:hover .b2b-media-frame img.static-img {
      transform: scale(1.02);
    }

    /* Badge discreto in sovraimpressione */
    .b2b-badge {
      position: absolute;
      bottom: 14px;
      left: 14px;
      background: rgba(250, 249, 246, 0.92);
      backdrop-filter: blur(6px);
      padding: 6px 12px;
      font-size: 11px;
      letter-spacing: 0.06em;
      color: var(--text-primary);
      z-index: 2;
    }

    /* Testi e CTA sotto l'immagine */
    .b2b-card-content {
      padding-top: 24px;
    }

    .b2b-card-content h2 {
      font-family: 'Cormorant Garamond', serif;
      font-size: 28px;
      font-weight: 600;
      margin-bottom: 10px;
    }

    .b2b-card-content p {
      font-size: 15px;
      line-height: 1.6;
      color: var(--text-muted);
      margin-bottom: 22px;
      min-height: 48px;
    }

    .b2b-cta {
      display: inline-flex;
      align-items: center;
      gap: 10px;
      padding: 14px 26px;
      font-size: 12px;
      font-weight: 600;
      letter-spacing: 0.12em;
      text-transform: uppercase;
      text-decoration: none;
      transition: all 0.25s ease;
    }

    .b2b-cta-primary {
      background-color: var(--accent-blue);
      color: #FFFFFF;
      border: 1px solid var(--accent-blue);
    }

    .b2b-cta-primary:hover {
      background-color: #0F223D;
    }

    .b2b-cta-outline {
      background-color: transparent;
      color: var(--text-primary);
      border: 1px solid var(--text-primary);
    }

    .b2b-cta-outline:hover {
      background-color: var(--text-primary);
      color: #FFFFFF;
    }

    /* Responsive Mobile */
    @media (max-width: 860px) {
      .b2b-split-grid {
        grid-template-columns: 1fr;
        gap: 56px;
      }
      .b2b-card-content p {
        min-height: auto;
      }
    }
