@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@600;700&display=swap');

/* ==========================================================================
   TrustServices - Global Typography, Brand Identity & Alignment Standards
   ========================================================================== */

:root {
  /* Campionamento cromatico esatto dell'oro satinato / champagne della "S" del logo */
  --logo-gold: #cfa859;
  --logo-gold-hover: #b89243;
  --primary-blue: #0f172a;
}

/* 1. TYPOGRAPHY LOGO, DISPLAY HEADERS E TITOLI - ESCLUSIVAMENTE CORMORANT GARAMOND */
h1, h2, h3, .brand-logo, .brand-display-title {
  font-family: 'Cormorant Garamond', Georgia, serif !important;
  font-weight: 700 !important;
  letter-spacing: -0.3px;
}

/* BRAND DISPLAY TITLE (IN CIMA AL BODY DELLA PAGINA) */
.brand-display-header {
  text-align: center;
  margin-bottom: 20px;
}

.brand-display-title {
  font-size: 52px;
  line-height: 1.1;
  display: inline-block;
  text-decoration: none;
}

/* 'Trust' in Deep Navy Blue su sfondo chiaro */
.brand-display-title span:first-child,
.brand-display-title [data-i18n="brand_prefix"] {
  color: var(--primary-blue, #0f172a) !important;
}

/* 'Services' in Oro Satinato */
.brand-display-title span:last-child,
.brand-display-title [data-i18n="brand_suffix"] {
  color: var(--logo-gold, #cfa859) !important;
}

/* ==========================================================================
   HEADER & NAVBAR STRUTTURA (Desktop a lati opposti, Mobile orizzontale)
   ========================================================================== */

header {
  background-color: var(--primary-blue, #0f172a);
  border-bottom: 3px solid var(--logo-gold, #cfa859);
  position: sticky;
  top: 0;
  z-index: 1000;
  padding: 12px 20px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
}

.brand-wrapper {
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand-link {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  cursor: pointer;
}

.brand-img {
  width: 40px !important;
  height: 40px !important;
  max-width: 40px !important;
  max-height: 40px !important;
  object-fit: contain !important;
  border-radius: 6px;
  display: block;
  transition: transform 0.2s ease;
}

.brand-link:hover .brand-img {
  transform: scale(1.05);
}

.nav-toggle-arrow {
  display: none;
  background: transparent;
  border: 1px solid rgba(207, 168, 89, 0.5);
  color: var(--logo-gold, #cfa859);
  border-radius: 50%;
  width: 32px;
  height: 32px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), background-color 0.2s;
  padding: 0;
}

.nav-toggle-arrow.open {
  transform: rotate(180deg);
  background-color: rgba(207, 168, 89, 0.2);
}

/* Nav Desktop */
.nav-drawer ul {
  display: flex;
  list-style: none;
  gap: 20px;
  align-items: center;
}

.nav-drawer a {
  color: #cbd5e1;
  font-size: 14px;
  font-weight: 500;
  transition: color 0.2s;
  white-space: nowrap;
}

.nav-drawer a:hover {
  color: var(--logo-gold, #cfa859);
}

/* ==========================================================================
   MODALITÀ MOBILE / ANDROID: Estensione Orizzontale a Scorrimento
   ========================================================================== */

@media (max-width: 820px) {
  .nav-container {
    justify-content: flex-start;
    overflow-x: hidden;
  }

  .nav-toggle-arrow {
    display: inline-flex;
    flex-shrink: 0;
  }

  .brand-img {
    width: 36px !important;
    height: 36px !important;
    max-width: 36px !important;
    max-height: 36px !important;
  }

  .brand-display-title {
    font-size: 38px;
  }

  /* Cassetto orizzontale a scorrimento */
  .nav-drawer {
    display: flex;
    max-width: 0;
    opacity: 0;
    overflow-x: auto;
    white-space: nowrap;
    transition: max-width 0.4s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease;
    scrollbar-width: none;
    -ms-overflow-style: none;
    margin-left: 14px;
  }

  .nav-drawer::-webkit-scrollbar {
    display: none;
  }

  .nav-drawer.open {
    max-width: calc(100vw - 120px);
    opacity: 1;
  }

  .nav-drawer ul {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    gap: 16px;
    padding: 4px 6px;
  }

  .nav-drawer a {
    font-size: 13px;
    background: rgba(255, 255, 255, 0.06);
    padding: 6px 12px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
  }
}

/* 2. INTESTAZIONI E TITOLI - CENTRATURA ASSOLUTA */
.hero-section,
.hero-title,
.hero-subtitle,
.section-header-center,
.pricing-section .hero-title,
.pricing-section .hero-subtitle,
.cta-zone-top,
.step-title,
.step-subtitle {
  text-align: center !important;
}

/* 3. TESTI DISCORSIVI, INFORMATIVI, LEGALI ED ELENCHI - GIUSTIFICAZIONE TIPOGRAFICA */
.about-text,
.about-section p,
.disclaimer-box,
.ai-content-text,
.cookie-modal p,
main p:not(.hero-subtitle):not(.step-subtitle):not(.cta-subtitle),
.legal-content p,
.privacy-content p,
.terms-content p,
article p,
.policy-section p,
.policy-section ul li,
.policy-section ol li,
article ul li,
article ol li,
main ul:not(.pricing-features) li,
main ol li {
  text-align: justify !important;
  text-justify: inter-word;
  hyphens: auto;
  -webkit-hyphens: auto;
}

/* Footer disclaimer e note tecniche */
footer .disclaimer-box {
  text-align: justify !important;
  text-justify: inter-word;
}