/* ==========================================================================
   TrustBridge Europe — Foglio di stile principale
   Palette: Blu Navy Profondo / Oro Brillante / Bianco
   ========================================================================== */

:root {
  --navy-900: #050d1c;
  --navy-800: #0a1730;
  --navy-700: #0e2043;
  --navy-600: #142c59;
  --navy-500: #1c3a70;

  --gold-400: #f5d97a;
  --gold-500: #e8c25a;
  --gold-600: #d4a437;
  --gold-700: #b4862a;
  --gold-grad: linear-gradient(135deg, #f7e7a8 0%, #e8c25a 35%, #c8952e 65%, #f2dd96 100%);

  --white: #ffffff;
  --cream: #f6f1e4;
  --muted: #b9c4d8;

  --maxw: 1180px;
  --radius: 14px;
  --shadow-lg: 0 24px 60px rgba(0, 0, 0, .45);
  --shadow-md: 0 12px 30px rgba(0, 0, 0, .3);
  --ease: cubic-bezier(.22, .61, .36, 1);

  --font-title: "Cormorant Garamond", "Times New Roman", Georgia, serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.7;
  color: var(--cream);
  background: var(--navy-900);
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: var(--gold-500); text-decoration: none; transition: color .25s var(--ease); }
a:hover { color: var(--gold-400); }
h1, h2, h3, h4 { font-family: var(--font-title); font-weight: 700; line-height: 1.15; margin: 0 0 .5em; letter-spacing: .2px; }
h1 { font-size: clamp(2.1rem, 5.2vw, 3.9rem); }
h2 { font-size: clamp(1.75rem, 3.6vw, 2.7rem); }
h3 { font-size: clamp(1.2rem, 2.1vw, 1.5rem); }
p  { margin: 0 0 1.1em; }
ul { margin: 0 0 1.1em; padding-left: 1.15em; }
li { margin-bottom: .5em; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* ---------- Utility ---------- */
.gold-text {
  background: var(--gold-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--gold-500);
  margin-bottom: 14px;
}
.lead { font-size: 1.12rem; color: #dce4f0; }
.muted { color: var(--muted); }
.center { text-align: center; }
.gold-rule {
  width: 92px; height: 3px; border: 0; border-radius: 2px;
  background: var(--gold-grad); margin: 0 0 26px;
}
.center .gold-rule { margin-left: auto; margin-right: auto; }

/* ---------- Bottoni ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 15px 30px;
  font-family: var(--font-body);
  font-size: .95rem; font-weight: 700; letter-spacing: .04em;
  border-radius: 999px; border: 1.5px solid transparent;
  cursor: pointer; transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s var(--ease), color .25s var(--ease);
}
.btn svg { width: 19px; height: 19px; flex: none; }
.btn-gold {
  background: var(--gold-grad);
  color: var(--navy-900);
  box-shadow: 0 10px 26px rgba(212, 164, 55, .3);
}
.btn-gold:hover { transform: translateY(-2px); box-shadow: 0 16px 34px rgba(212, 164, 55, .42); color: var(--navy-900); }
.btn-outline {
  background: transparent; color: var(--gold-500); border-color: rgba(232, 194, 90, .55);
}
.btn-outline:hover { background: rgba(232, 194, 90, .1); border-color: var(--gold-500); transform: translateY(-2px); }
.btn-row { display: flex; flex-wrap: wrap; gap: 16px; }
.center .btn-row { justify-content: center; }

/* ---------- Top bar ---------- */
.topbar {
  background: var(--navy-900);
  border-bottom: 1px solid rgba(232, 194, 90, .14);
  font-size: .84rem;
  color: var(--muted);
}
.topbar .container { display: flex; flex-wrap: wrap; gap: 8px 26px; justify-content: space-between; align-items: center; min-height: 42px; }
.topbar a { color: var(--muted); }
.topbar a:hover { color: var(--gold-500); }
.topbar-list { display: flex; flex-wrap: wrap; gap: 8px 22px; align-items: center; }
.topbar-list span { display: inline-flex; align-items: center; gap: 7px; }
.topbar svg { width: 15px; height: 15px; color: var(--gold-600); }

/* ---------- Selettore lingua ---------- */
.lang-switch {
  display: inline-flex; align-items: center;
  border: 1px solid rgba(232, 194, 90, .35);
  border-radius: 999px; overflow: hidden;
  background: rgba(5, 13, 28, .5);
}
.lang-switch a {
  padding: 4px 12px;
  font-size: .74rem; font-weight: 600; letter-spacing: .09em;
  color: var(--muted); line-height: 1.7;
  transition: background .25s var(--ease), color .25s var(--ease);
}
.lang-switch a + a { border-left: 1px solid rgba(232, 194, 90, .25); }
.lang-switch a:hover { color: var(--gold-400); background: rgba(232, 194, 90, .1); }
.lang-switch a.active { background: var(--gold-grad); color: var(--navy-900); }
.lang-switch a.active:hover { color: var(--navy-900); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 900;
  background: rgba(10, 23, 48, .92);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(232, 194, 90, .18);
}
.site-header .container { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 86px; }
.brand { display: flex; align-items: center; gap: 14px; }
.brand img {
  width: 62px; height: 62px; border-radius: 50%;
  border: 2px solid var(--gold-600);
  box-shadow: 0 0 22px rgba(212, 164, 55, .35);
}
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-name { font-family: var(--font-title); font-size: 1.4rem; font-weight: 700; }
.brand-tag { font-size: .68rem; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); }

.nav { display: flex; align-items: center; gap: 6px; }
.nav a {
  position: relative;
  padding: 10px 16px; border-radius: 8px;
  color: var(--cream); font-size: .93rem; font-weight: 500;
}
.nav a::after {
  content: ""; position: absolute; left: 16px; right: 16px; bottom: 4px; height: 2px;
  background: var(--gold-grad); border-radius: 2px;
  transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease);
}
.nav a:hover::after, .nav a.active::after { transform: scaleX(1); }
.nav a.active { color: var(--gold-500); }
.nav .btn { margin-left: 10px; padding: 11px 22px; }
.nav .btn::after { display: none; }

.nav-toggle {
  display: none; background: none; border: 1.5px solid rgba(232, 194, 90, .45);
  border-radius: 10px; padding: 9px 11px; cursor: pointer;
}
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--gold-500); border-radius: 2px; }
.nav-toggle span + span { margin-top: 5px; }

/* ---------- Sezioni ---------- */
.section { padding: 92px 0; position: relative; }
.section-alt { background: var(--navy-800); }
.section-deep { background: var(--navy-900); }
.section-head { max-width: 760px; margin-bottom: 52px; }
.section-head.center { margin-left: auto; margin-right: auto; }

/* Pattern planisfero / griglia decorativa */
.world-bg { position: relative; overflow: hidden; }
.world-bg::before {
  content: ""; position: absolute; inset: 0;
  background-image:
    radial-gradient(circle at 18% 28%, rgba(232, 194, 90, .09), transparent 42%),
    radial-gradient(circle at 82% 68%, rgba(232, 194, 90, .07), transparent 45%),
    linear-gradient(rgba(232, 194, 90, .045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(232, 194, 90, .045) 1px, transparent 1px);
  background-size: auto, auto, 62px 62px, 62px 62px;
  pointer-events: none;
}
.world-bg > * { position: relative; z-index: 1; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 110px 0 100px;
  background:
    radial-gradient(ellipse at 20% 0%, rgba(28, 58, 112, .85), transparent 58%),
    radial-gradient(ellipse at 85% 90%, rgba(180, 134, 42, .22), transparent 55%),
    linear-gradient(160deg, var(--navy-800) 0%, var(--navy-900) 100%);
  overflow: hidden;
}
.hero-art { position: absolute; inset: 0; opacity: .55; pointer-events: none; }
.hero-art img, .hero-art svg { width: 100%; height: 100%; object-fit: cover; }
.hero .container { position: relative; z-index: 2; }
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 60px; align-items: center; }
.hero h1 { margin-bottom: 18px; }
.hero .slogan {
  font-family: var(--font-title); font-style: italic;
  font-size: clamp(1.15rem, 2.3vw, 1.6rem);
  color: var(--gold-500); margin-bottom: 22px;
}
.hero-note {
  margin-top: 30px; padding: 18px 22px;
  border-left: 3px solid var(--gold-600);
  background: rgba(255, 255, 255, .035);
  border-radius: 0 12px 12px 0;
  font-size: .96rem; color: #d6dfee;
}
.hero-medallion { display: flex; justify-content: center; }
.hero-medallion img {
  width: min(360px, 100%); border-radius: 50%;
  border: 3px solid var(--gold-600);
  box-shadow: 0 0 70px rgba(212, 164, 55, .35), var(--shadow-lg);
  animation: float 7s ease-in-out infinite;
}
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-14px); } }

/* ---------- Hero pagine interne ---------- */
.page-hero {
  position: relative; overflow: hidden;
  padding: 78px 0 66px;
  background:
    radial-gradient(ellipse at 25% 10%, rgba(28, 58, 112, .8), transparent 60%),
    linear-gradient(160deg, var(--navy-800), var(--navy-900));
  border-bottom: 1px solid rgba(232, 194, 90, .18);
}
.page-hero .container { position: relative; z-index: 2; max-width: 900px; }
.page-hero h1 { margin-bottom: 14px; }
.page-hero .lead { margin-bottom: 0; }
.breadcrumb { font-size: .84rem; color: var(--muted); margin-bottom: 16px; }
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--gold-500); }
.breadcrumb span { margin: 0 8px; color: var(--gold-700); }

/* ---------- Barra statistiche / rotta ---------- */
.route-bar { background: var(--navy-700); border-top: 1px solid rgba(232, 194, 90, .2); border-bottom: 1px solid rgba(232, 194, 90, .2); padding: 26px 0; }
.route { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 10px 18px; }
.route-node { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; font-size: .82rem; }
.route-node i { width: 9px; height: 9px; border-radius: 50%; background: var(--gold-grad); box-shadow: 0 0 12px rgba(232, 194, 90, .8); }
.route-line { width: 58px; height: 1.5px; background: linear-gradient(90deg, transparent, var(--gold-600), transparent); }

/* ---------- Card ---------- */
.grid { display: grid; gap: 26px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: linear-gradient(160deg, rgba(255, 255, 255, .05), rgba(255, 255, 255, .015));
  border: 1px solid rgba(232, 194, 90, .2);
  border-radius: var(--radius);
  padding: 34px 30px;
  transition: transform .3s var(--ease), border-color .3s var(--ease), box-shadow .3s var(--ease);
}
.card:hover { transform: translateY(-6px); border-color: rgba(232, 194, 90, .55); box-shadow: var(--shadow-md); }
.card h3 { color: var(--white); }
.card p:last-child { margin-bottom: 0; }
.card-num {
  font-family: var(--font-title); font-size: 2.4rem; line-height: 1;
  color: rgba(232, 194, 90, .35); margin-bottom: 10px;
}

.icon-badge {
  width: 62px; height: 62px; border-radius: 16px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(232, 194, 90, .1);
  border: 1px solid rgba(232, 194, 90, .35);
  margin-bottom: 20px;
}
.icon-badge svg { width: 32px; height: 32px; color: var(--gold-500); }

/* Lista con spunte dorate */
.check-list { list-style: none; padding: 0; }
.check-list li { position: relative; padding-left: 32px; margin-bottom: 12px; }
.check-list li::before {
  content: ""; position: absolute; left: 0; top: .45em;
  width: 16px; height: 16px; border-radius: 50%;
  background: var(--gold-grad);
  box-shadow: 0 0 10px rgba(232, 194, 90, .5);
}
.check-list li::after {
  content: ""; position: absolute; left: 5px; top: .72em;
  width: 4px; height: 8px; border: solid var(--navy-900);
  border-width: 0 2px 2px 0; transform: rotate(45deg);
}

/* Blocchi immagine/testo alternati */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 54px; align-items: center; }
.split.reverse .split-visual { order: 2; }
.split-visual {
  border-radius: var(--radius); overflow: hidden;
  border: 1px solid rgba(232, 194, 90, .28);
  background: var(--navy-700);
  box-shadow: var(--shadow-md);
}
.split-visual svg, .split-visual img { width: 100%; height: auto; display: block; }

/* ---------- Servizi dettaglio ---------- */
.service-block { padding: 40px 0; border-top: 1px solid rgba(232, 194, 90, .16); }
.service-block:first-of-type { border-top: 0; }
.tag-row { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 18px; }
.tag {
  font-size: .78rem; letter-spacing: .05em; font-weight: 600;
  padding: 7px 14px; border-radius: 999px;
  background: rgba(232, 194, 90, .1);
  border: 1px solid rgba(232, 194, 90, .3);
  color: var(--gold-400);
}

/* ---------- CTA fascia ---------- */
.cta-band {
  background: linear-gradient(120deg, var(--navy-700), var(--navy-600) 60%, var(--navy-700));
  border-top: 1px solid rgba(232, 194, 90, .3);
  border-bottom: 1px solid rgba(232, 194, 90, .3);
  padding: 72px 0;
}

/* ---------- Form ---------- */
.form-wrap {
  background: linear-gradient(160deg, rgba(255, 255, 255, .055), rgba(255, 255, 255, .015));
  border: 1px solid rgba(232, 194, 90, .28);
  border-radius: var(--radius);
  padding: 38px 34px;
}
.field { margin-bottom: 20px; }
.field label { display: block; font-size: .86rem; font-weight: 600; letter-spacing: .05em; margin-bottom: 8px; color: var(--gold-400); }
.field label .req { color: #ff9f9f; }
.field input, .field select, .field textarea {
  width: 100%; padding: 13px 15px;
  font-family: var(--font-body); font-size: .97rem; color: var(--white);
  background: rgba(5, 13, 28, .65);
  border: 1px solid rgba(232, 194, 90, .28);
  border-radius: 10px;
  transition: border-color .25s var(--ease), box-shadow .25s var(--ease);
}
.field textarea { min-height: 130px; resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: #7c8aa3; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--gold-500); box-shadow: 0 0 0 3px rgba(232, 194, 90, .16);
}
.field select option { background: var(--navy-800); color: var(--white); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.field-row-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 20px; }
.privacy { display: flex; gap: 12px; align-items: flex-start; font-size: .87rem; color: var(--muted); margin: 6px 0 24px; }
.privacy input { width: 19px; height: 19px; flex: none; margin-top: 3px; accent-color: var(--gold-600); }
.form-note { font-size: .82rem; color: var(--muted); margin-top: 16px; }
.form-status { display: none; margin-top: 18px; padding: 14px 18px; border-radius: 10px; font-size: .92rem; }
.form-status.ok { display: block; background: rgba(72, 187, 120, .14); border: 1px solid rgba(72, 187, 120, .5); color: #a7e8c0; }
.form-status.err { display: block; background: rgba(229, 62, 62, .14); border: 1px solid rgba(229, 62, 62, .5); color: #f6b0b0; }

/* ---------- Contatti ---------- */
.contact-card {
  display: flex; gap: 16px; align-items: flex-start;
  padding: 22px; border-radius: 12px;
  background: rgba(255, 255, 255, .035);
  border: 1px solid rgba(232, 194, 90, .2);
}
.contact-card svg { width: 24px; height: 24px; color: var(--gold-500); flex: none; margin-top: 3px; }
.contact-card strong { display: block; color: var(--white); font-size: .95rem; margin-bottom: 3px; }
.contact-card span, .contact-card a { font-size: .93rem; word-break: break-word; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-900); border-top: 1px solid rgba(232, 194, 90, .2); padding: 66px 0 0; font-size: .93rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1.2fr; gap: 46px; padding-bottom: 44px; }
.site-footer h4 { font-family: var(--font-body); font-size: .82rem; letter-spacing: .18em; text-transform: uppercase; color: var(--gold-500); margin-bottom: 18px; }
.site-footer ul { list-style: none; padding: 0; }
.site-footer li { margin-bottom: 10px; color: var(--muted); }
.site-footer a { color: var(--muted); }
.site-footer a:hover { color: var(--gold-500); }
.footer-brand img { width: 78px; height: 78px; border-radius: 50%; border: 2px solid var(--gold-600); margin-bottom: 16px; }
.footer-legal {
  border-top: 1px solid rgba(232, 194, 90, .14);
  padding: 22px 0; display: flex; flex-wrap: wrap; gap: 10px 24px;
  justify-content: space-between; color: #8494ad; font-size: .84rem;
}

/* ---------- WhatsApp floating ---------- */
.wa-float {
  position: fixed; right: 22px; bottom: 22px; z-index: 950;
  display: flex; align-items: center; gap: 11px;
  padding: 14px 20px 14px 16px;
  background: #25d366; color: #04240f;
  font-weight: 700; font-size: .93rem;
  border-radius: 999px;
  box-shadow: 0 14px 34px rgba(37, 211, 102, .42);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
.wa-float:hover { transform: translateY(-3px) scale(1.03); color: #04240f; box-shadow: 0 20px 44px rgba(37, 211, 102, .55); }
.wa-float svg { width: 26px; height: 26px; flex: none; }
.wa-float::before {
  content: ""; position: absolute; inset: 0; border-radius: 999px;
  border: 2px solid rgba(37, 211, 102, .55);
  animation: pulse 2.4s ease-out infinite;
}
@keyframes pulse { 0% { transform: scale(1); opacity: .8; } 100% { transform: scale(1.35); opacity: 0; } }

/* ---------- Animazione di ingresso ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.visible { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
  .hero-grid { grid-template-columns: 1fr; text-align: center; }
  .hero-grid .btn-row { justify-content: center; }
  .hero-medallion { order: -1; }
  .hero-medallion img { width: min(260px, 70%); }
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .split { grid-template-columns: 1fr; gap: 34px; }
  .split.reverse .split-visual { order: 0; }
}

@media (max-width: 780px) {
  body { font-size: 16px; }
  .section { padding: 66px 0; }
  .nav-toggle { display: block; }
  .nav {
    position: fixed; inset: 86px 0 auto 0;
    flex-direction: column; align-items: stretch; gap: 2px;
    background: var(--navy-800);
    border-bottom: 1px solid rgba(232, 194, 90, .25);
    padding: 14px 24px 26px;
    transform: translateY(-130%);
    transition: transform .35s var(--ease);
    max-height: calc(100vh - 86px); overflow-y: auto;
  }
  .nav.open { transform: none; }
  .nav a { padding: 14px 6px; border-bottom: 1px solid rgba(255, 255, 255, .06); }
  .nav a::after { display: none; }
  .nav .btn { margin: 16px 0 0; justify-content: center; }
  .topbar .container { justify-content: center; text-align: center; }
  .grid-3, .grid-4, .grid-2 { grid-template-columns: 1fr; }
  .field-row, .field-row-3 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 34px; }
  .form-wrap { padding: 26px 20px; }
  .wa-float { right: 14px; bottom: 14px; padding: 13px; }
  .wa-float span { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}
