@font-face { font-family: "Unbounded"; font-weight: 400 600; font-display: swap;
  src: url(/assets/fonts/unbounded-latin.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Unbounded"; font-weight: 400 600; font-display: swap;
  src: url(/assets/fonts/unbounded-latin-ext.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Inter"; font-weight: 400 600; font-display: swap;
  src: url(/assets/fonts/inter-latin.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Inter"; font-weight: 400 600; font-display: swap;
  src: url(/assets/fonts/inter-latin-ext.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

:root {
  --blue: #1B3A8C;
  --navy: #0F1B3D;
  --navy-hover: #1A2B5C;
  --sand: #D8BE95;
  --bg: #F6F7F9;
  --line: #DFE3EB;
  --ink: #0E1424;
  --muted: #556079;
  --white: #FFFFFF;
  --radius: 12px;
  --display: "Unbounded", system-ui, sans-serif;
  --body: "Inter", system-ui, sans-serif;
  --max: 1160px;
  --gutter: clamp(16px, 5vw, 48px);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--body); font-size: 18px; line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--display); font-weight: 500; line-height: 1.12; margin: 0; letter-spacing: -0.025em; }
h1 { font-size: clamp(2.2rem, 5.2vw, 4rem); }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.75rem); }
h3 { font-size: 1.15rem; line-height: 1.25; }
p { margin: 0; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: .4em;
  font-family: var(--display); font-weight: 600; font-size: 1.05rem;
  padding: .85em 1.5em; border-radius: 10px; text-decoration: none;
  background: var(--navy); color: var(--white); border: 2px solid var(--navy);
  box-shadow: 0 1px 2px rgba(16,22,46,.12); transition: transform .15s, box-shadow .15s, background .15s;
}
.btn:hover { transform: translateY(-1px); background: var(--navy-hover); border-color: var(--navy-hover); box-shadow: 0 4px 10px rgba(16,22,46,.16); }
.btn:active { transform: translateY(0); box-shadow: 0 1px 2px rgba(16,22,46,.12); }
.btn-ghost { background: transparent; color: var(--blue); border-color: var(--blue); box-shadow: none; }
.btn-ghost:hover { background: var(--blue); color: var(--white); box-shadow: none; }
.btn-small { padding: .5em 1.1em; font-size: .95rem; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 10;
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px var(--gutter);
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
.brand img { width: 56px; height: 56px; }
.nav { display: flex; align-items: center; gap: 28px; }
.nav a:not(.btn) { font-family: var(--display); font-weight: 500; font-size: calc(1em - 1px); text-decoration: none; color: var(--blue); }
.nav .btn-small { font-size: calc(.95rem - 1px); }
.nav a:not(.btn):hover { color: var(--navy); }
.menu-toggle { display: none; }

/* Hero */
.hero {
  max-width: var(--max); margin: 0 auto;
  padding: clamp(32px, 6vw, 80px) var(--gutter) clamp(56px, 8vw, 110px);
  display: grid; grid-template-columns: 1.2fr 1fr; gap: 48px; align-items: center;
}
.eyebrow, .tag {
  font-family: var(--display); font-weight: 500; font-size: .95rem;
  text-transform: uppercase; letter-spacing: .08em; color: var(--blue); margin-bottom: 18px;
}
.hl {
  color: var(--blue);
  background: linear-gradient(var(--sand), var(--sand)) 0 90% / 100% .14em no-repeat;
  -webkit-box-decoration-break: clone; box-decoration-break: clone;
}
.lead { font-size: clamp(1.1rem, 1.6vw, 1.3rem); color: var(--muted); margin-top: 24px; max-width: 34em; }
.cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 36px; }
.hero-visual { position: relative; display: grid; place-items: center; }
.hero-visual img { position: relative; width: min(420px, 100%); animation: wave 3.2s ease-in-out infinite; transform-origin: 50% 60%; }
.blob {
  position: absolute; inset: 6% 2%; border-radius: 46% 54% 58% 42% / 52% 44% 56% 48%;
  background: #E3E7EF; opacity: 1;
}
@keyframes wave { 0%, 100% { transform: rotate(-3deg); } 50% { transform: rotate(3deg); } }
@media (prefers-reduced-motion: reduce) { .hero-visual img { animation: none; } html { scroll-behavior: auto; } }

/* Sections */
.section { max-width: var(--max); margin: 0 auto; padding: clamp(64px, 9vw, 120px) var(--gutter); }
.section-head { max-width: 760px; margin-bottom: 48px; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; color: var(--muted); }
.two-col strong { color: var(--ink); }

.section-blue {
  max-width: none; background: var(--navy); color: var(--white);
  border-radius: clamp(16px, 2.5vw, 28px); margin: 0 clamp(8px, 2vw, 24px);
}
.section-blue > * { max-width: var(--max); margin-left: auto; margin-right: auto; }
.section-blue .tag { color: var(--sand); }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card {
  display: block; background: var(--white); color: var(--ink); border-radius: var(--radius);
  padding: 28px; border: 1px solid var(--line); text-decoration: none;
  transition: transform .2s, box-shadow .2s;
}
.card:hover { transform: translateY(-4px); box-shadow: 0 8px 20px rgba(0,0,0,.12); }
.card h3 { color: var(--blue); margin-bottom: 10px; }
.card p { color: var(--muted); font-size: 1rem; }
.card-more {
  display: inline-block; margin-top: 14px; font-family: var(--display);
  font-weight: 500; font-size: .9rem; color: var(--blue);
}

.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; }
.steps .num {
  display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%;
  background: transparent; color: var(--blue); border: 1.5px solid var(--blue);
  font-family: var(--display); font-weight: 600; font-size: 1.4rem; margin-bottom: 16px;
}
.steps h3 { margin-bottom: 6px; }
.steps p { color: var(--muted); font-size: 1rem; }

.section-family { padding-top: 0; }
.family {
  --tsc-coral: #E84241;
  background: #141617; color: #F2F2F2;
  border-radius: var(--radius);
  padding: clamp(28px, 5vw, 64px);
  display: flex; align-items: center; gap: clamp(20px, 4vw, 44px);
}
.family-logo { width: 96px; height: 96px; flex: none; border-radius: 50%; }
.family h2 { color: #FFFFFF; margin-bottom: 20px; text-transform: uppercase; letter-spacing: -0.01em; }
.family p { max-width: 46em; margin-bottom: 28px; color: #C7C9CC; }
.family p strong { color: #FFFFFF; }
.btn-tsc {
  background: var(--tsc-coral); color: #FFFFFF; border: none;
  border-radius: 20px; box-shadow: none;
}
.btn-tsc:hover { background: #d43635; box-shadow: none; }

@media (max-width: 640px) {
  .family { flex-direction: column; text-align: center; }
}

.section-contact { text-align: center; }
.section-contact .section-head { margin-left: auto; margin-right: auto; }
.section-contact .lead { margin-left: auto; margin-right: auto; }
.contact-big {
  font-family: var(--display); font-weight: 600; font-size: clamp(1.6rem, 5vw, 3.4rem);
  color: var(--blue); text-decoration: none; overflow-wrap: anywhere;
  border-bottom: 2px solid var(--sand);
}
.contact-big:hover { color: var(--navy); }
.contact-list { list-style: none; padding: 0; margin: 40px 0 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 40px; color: var(--muted); }
.contact-list span { display: block; font-family: var(--display); font-weight: 500; color: var(--ink); }

/* Footer */
.site-footer {
  background: var(--navy); color: var(--white); text-align: center;
  padding: 48px var(--gutter); display: grid; justify-items: center; gap: 10px;
}
.site-footer a { color: var(--sand); }
.site-footer .small { font-size: .85rem; opacity: .75; }

/* Responsive */
@media (max-width: 960px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 760px) {
  body { font-size: 17px; }
  .brand img { width: 48px; height: 48px; }
  .menu-toggle {
    display: grid; gap: 6px; padding: 12px; background: none; border: 0; cursor: pointer;
  }
  .menu-toggle span { display: block; width: 26px; height: 3px; border-radius: 2px; background: var(--blue); transition: transform .2s; }
  .menu-toggle[aria-expanded="true"] span:first-child { transform: translateY(4.5px) rotate(45deg); }
  .menu-toggle[aria-expanded="true"] span:last-child { transform: translateY(-4.5px) rotate(-45deg); }
  .nav {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: flex-start; gap: 18px;
    padding: 20px var(--gutter) 28px; background: var(--bg);
    border-bottom: 3px solid var(--blue);
  }
  .nav.open { display: flex; }
  .hero { grid-template-columns: 1fr; gap: 24px; }
  .hero-visual { order: -1; max-width: 240px; margin: 0 auto; }
  .two-col, .cards, .steps { grid-template-columns: 1fr; }
}

/* Service detail pages */
.back-link {
  display: inline-flex; align-items: center; gap: .4em;
  font-family: var(--display); font-weight: 500; font-size: .95rem;
  color: var(--blue); text-decoration: none; margin-bottom: 20px;
}
.back-link:hover { color: var(--navy); }
.page-hero {
  max-width: var(--max); margin: 0 auto;
  padding: clamp(28px, 5vw, 56px) var(--gutter) clamp(32px, 5vw, 56px);
}
.page-hero .lead { margin-top: 20px; max-width: 42em; }
.page-body { padding-top: clamp(32px, 5vw, 56px); border-top: 1px solid var(--line); }
.page-body .section-head { display: grid; grid-template-columns: 200px 1fr; gap: 24px 40px; margin-bottom: 48px; align-items: start; }
.section-tag { font-family: var(--display); font-size: .8rem; font-weight: 500; text-transform: uppercase; letter-spacing: .12em; color: var(--blue); padding-top: 12px; }
.page-body .section-head h2 { max-width: 22ch; }
.lede { font-size: 1.05rem; color: var(--muted); max-width: 60ch; margin-top: 18px; }
.pillars {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px;
}
.pillar {
  background: var(--white); color: var(--ink); border-radius: var(--radius);
  padding: 28px; border: 1px solid var(--line);
}
.pillar-tag {
  display: inline-block; font-family: var(--display); font-weight: 600;
  font-size: .9rem; color: var(--blue); margin-bottom: 10px;
}
.pillar h3 { color: var(--blue); margin-bottom: 8px; }
.pillar p { color: var(--muted); font-size: 1rem; }

.page-cta { max-width: var(--max); margin: 0 auto; padding: clamp(48px, 7vw, 88px) var(--gutter); text-align: center; }
.page-cta h2 { margin-bottom: 20px; }
.page-cta .cta { justify-content: center; }

@media (max-width: 760px) {
  .pillars { grid-template-columns: 1fr; }
  .page-body .section-head { grid-template-columns: 1fr; gap: 12px; margin-bottom: 32px; }
}

/* Footer links */
.footer-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 22px; margin-top: 6px; font-size: .9rem; }
.footer-links a { color: var(--sand); text-decoration: none; }
.footer-links a:hover, .footer-links .link-btn:hover { text-decoration: underline; }
.link-btn { background: none; border: 0; padding: 0; font: inherit; color: var(--blue); text-decoration: underline; cursor: pointer; }
.footer-links .link-btn { color: var(--sand); text-decoration: none; }

/* Legal pages */
.legal { max-width: 760px; }
.legal .updated { font-size: .9rem; color: var(--muted); margin-bottom: 32px; }
.legal h2 { font-size: clamp(1.15rem, 2vw, 1.45rem); margin: 40px 0 14px; color: var(--navy); }
.legal p, .legal li { font-size: 1rem; color: var(--ink); }
.legal p { margin-bottom: 14px; }
.legal ul { margin: 0 0 14px; padding-left: 1.3em; }
.legal li { margin-bottom: 8px; }
.legal a { color: var(--blue); }
.legal code { font-size: .88em; background: #E3E7EF; padding: 2px 6px; border-radius: 4px; overflow-wrap: anywhere; }
.legal .todo { background: #FFF3C4; padding: 0 4px; border-radius: 3px; }
.legal-table { width: 100%; border-collapse: collapse; margin: 0 0 18px; font-size: .95rem; display: block; overflow-x: auto; }
.legal-table th, .legal-table td { text-align: left; vertical-align: top; padding: 10px 12px; border: 1px solid var(--line); }
.legal-table th { background: #E3E7EF; font-family: var(--display); font-weight: 500; font-size: .85rem; }
.legal-table td { background: var(--white); }

/* Cookie banner (stile del banner di Shaula, colori Soulmate) */
.cc-banner {
  --cc-accent: var(--navy); --cc-link: var(--blue);
  position: fixed; z-index: 99999; right: 10px; bottom: 10px;
  width: 526px; max-width: calc(100% - 20px); max-height: calc(100vh - 20px); overflow-y: auto;
  box-sizing: border-box; padding: 15px 20px; display: grid; gap: 10px;
  background: #fff; color: #222; border-radius: 12px; border: 1px solid #f2f2f2;
  box-shadow: 0 8px 30px rgba(0,0,0,.18);
  font-family: var(--body); font-size: 12px; line-height: 1.5; text-align: left;
}
.cc-banner[hidden] { display: none; }
.cc-header { display: grid; grid-template-columns: 100px 1fr 100px; align-items: center; }
.cc-title { grid-column: 2; justify-self: center; font-size: 15px; font-weight: 500; text-align: center; }
.cc-close { grid-column: 3; justify-self: end; width: 20px; height: 20px; padding: 0; background: none; border: 0; cursor: pointer; color: #222; line-height: 0; }
.cc-close svg { width: 20px; height: 20px; }
.cc-divider { height: 1px; background: #e6e6e6; margin: 0 -20px; }
.cc-message { margin-bottom: 5px; }
.cc-message a, .cc-docs a { color: var(--cc-link); text-decoration: underline; }
.cc-categories { display: none; }
.cc-banner.cc-expanded .cc-categories { display: block; margin-top: 10px; animation: cc-fade .6s; }
.cc-category { background: rgba(239,239,239,.5); }
.cc-category-header { display: grid; grid-template-columns: 1fr auto 18px; align-items: center; gap: 10px; padding: 10px; }
.cc-category-title { font-size: 14px; font-weight: 500; }
.cc-always { font-size: 12px; font-weight: 500; color: green; }
.cc-toggle { background: none; border: 0; padding: 0; cursor: pointer; display: flex; color: inherit; }
.cc-toggle svg { width: 18px; height: 18px; transition: transform .4s; fill: currentColor; }
.cc-toggle[aria-expanded="true"] svg { transform: rotate(180deg); }
.cc-description { padding: 0 10px 10px; font-size: 12px; }
.cc-buttons { display: flex; gap: 10px; }
.cc-btn {
  flex: 1; min-height: 45px; padding: 10px; border-radius: 6px; cursor: pointer;
  font: 500 15px/20px var(--body); text-align: center; white-space: nowrap;
  background: #f9f9f9; border: 1px solid #f2f2f2; color: #333;
}
.cc-btn:hover { filter: brightness(.96); }
.cc-btn.cc-accept { background: var(--cc-accent); border-color: var(--cc-accent); color: #fff; }
.cc-btn.cc-accept:hover { background: var(--navy-hover); filter: none; }
.cc-btn.cc-deny { color: #222; }
.cc-save { display: none; }
.cc-banner.cc-expanded .cc-save { display: block; }
.cc-banner.cc-expanded .cc-view { display: none; }
.cc-docs { display: flex; justify-content: center; gap: 14px; }
.cc-banner :focus-visible, .cc-manage:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
.cc-manage {
  position: fixed; z-index: 9998; right: 40px; bottom: -35px; min-width: 100px; height: 50px; padding: 15px;
  background: #fff; color: #222; font: 12px/1 var(--body); border: 1px solid #f2f2f2; border-bottom: 0;
  border-radius: 12px 12px 0 0; cursor: pointer; transition: bottom .5s;
}
.cc-manage:hover, .cc-manage:focus { bottom: 0; }
.cc-manage[hidden] { display: none; }
@keyframes cc-fade { from { opacity: 0; } to { opacity: 1; } }
@media (max-width: 768px) {
  .cc-banner { right: 0; bottom: 0; width: 100%; max-width: 100%; border-radius: 12px 12px 0 0; }
  .cc-buttons { flex-direction: column; }
  .cc-manage { display: none; }
}
@media (max-width: 425px) { .cc-title { display: none; } .cc-header { grid-template-columns: 1fr auto; } .cc-close { grid-column: 2; } }
@media (prefers-reduced-motion: reduce) { .cc-banner.cc-expanded .cc-categories { animation: none; } .cc-manage, .cc-toggle svg { transition: none; } }
