/* =============================================================
   GSS SEO MASTER — Foglio di stile principale
   File:    css/cssseo.css
   Autore:  Global Spine Solutions / NDPLANET Web Agency
   Nota:    Le @font-face sono incluse qui per centralizzare
            tutte le regole in un unico file esterno.
   ============================================================= */


/* -------------------------------------------------------------
   @FONT-FACE — Plus Jakarta Sans (self-hosted dal sito)
   ------------------------------------------------------------- */
@font-face {
  font-family: "Plus Jakarta Sans";
  font-style: normal;
  font-weight: 300;
  font-display: fallback;
  src: url('https://globalspinesolutions.com/wp-content/uploads/fonts/LDIbaomQNQcsA88c7O9yZ4KMCoOg4IA6-91aHEjcWuA_907NTxXUEKi4Rw.woff2') format('woff2');
}
@font-face {
  font-family: "Plus Jakarta Sans";
  font-style: normal;
  font-weight: 400;
  font-display: fallback;
  src: url('https://globalspinesolutions.com/wp-content/uploads/fonts/LDIbaomQNQcsA88c7O9yZ4KMCoOg4IA6-91aHEjcWuA_qU7NTxXUEKi4Rw.woff2') format('woff2');
}
@font-face {
  font-family: "Plus Jakarta Sans";
  font-style: normal;
  font-weight: 500;
  font-display: fallback;
  src: url('https://globalspinesolutions.com/wp-content/uploads/fonts/LDIbaomQNQcsA88c7O9yZ4KMCoOg4IA6-91aHEjcWuA_m07NTxXUEKi4Rw.woff2') format('woff2');
}
@font-face {
  font-family: "Plus Jakarta Sans";
  font-style: normal;
  font-weight: 600;
  font-display: fallback;
  src: url('https://globalspinesolutions.com/wp-content/uploads/fonts/LDIbaomQNQcsA88c7O9yZ4KMCoOg4IA6-91aHEjcWuA_d0nNTxXUEKi4Rw.woff2') format('woff2');
}
@font-face {
  font-family: "Plus Jakarta Sans";
  font-style: normal;
  font-weight: 700;
  font-display: fallback;
  src: url('https://globalspinesolutions.com/wp-content/uploads/fonts/LDIbaomQNQcsA88c7O9yZ4KMCoOg4IA6-91aHEjcWuA_TknNTxXUEKi4Rw.woff2') format('woff2');
}


/* -------------------------------------------------------------
   CSS CUSTOM PROPERTIES — palette & layout
   ------------------------------------------------------------- */
:root {
  /* Palette primaria (blu) */
  --c-primary-950: #001151;
  --c-primary-900: #002172;
  --c-primary-800: #003498;
  --c-primary-700: #004BC3;
  --c-primary-600: #0064ED;
  --c-primary-500: #387aff;
  --c-primary-400: #6193ff;
  --c-primary-300: #94B5FF;
  --c-primary-100: #DEE9FF;
  --c-primary-050: #EEF4FF;

  /* Palette neutri */
  --c-neutral-950: #131720;
  --c-neutral-900: #1f2633;
  --c-neutral-800: #343e51;
  --c-neutral-700: #46556d;
  --c-neutral-600: #57667f;
  --c-neutral-500: #7d8ba1;
  --c-neutral-400: #97a5ba;
  --c-neutral-300: #c6d0dd;
  --c-neutral-200: #dde4ee;
  --c-neutral-100: #f1f5f9;
  --c-neutral-050: #f8fafc;
  --c-neutral-000: #ffffff;

  /* Layout */
  --font:        "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --max-content: 900px;
  --max-wide:    1300px;
  --pad-x:       5vw;
  --header-h:    80px;
  --nav-accent:  #5c9ad0;
  --nav-hover:   #003767;
}


/* -------------------------------------------------------------
   RESET & BASE
   ------------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
}

body {
  background:  var(--c-neutral-000);
  color:       var(--c-neutral-700);
  font-family: var(--font);
  font-size:   17px;
  font-weight: 400;
  line-height: 1.7;
}

a         { color: #003767; text-decoration: none; }
a:hover   { color: var(--c-neutral-600); }

p            { text-align: justify; margin-bottom: 1.1em; }
p:last-child { margin-bottom: 0; }

img {
  max-width:     100%;
  height:        auto;
  border-radius: 8px;
  display:       block;
}

h1, h2, h3, h4, h5, h6 {
  color:          var(--c-neutral-950);
  font-family:    var(--font);
  font-weight:    500;
  letter-spacing: -0.01em;
  line-height:    1.2;
}
h1 { font-size: clamp(36px, 2.25rem + 2.245vw, 58px); }
h2 { font-size: clamp(36px, 2.25rem + 1.02vw,  46px); }
h3 { font-size: clamp(32px, 2rem   + 0.408vw,  36px); }
h4 { font-size: 28px; }
h5 { font-size: 24px; }
h6 { font-size: 21px; }


/* -------------------------------------------------------------
   LAYOUT HELPERS
   ------------------------------------------------------------- */
.wrap-wide {
  max-width:    var(--max-wide);
  margin-left:  auto;
  margin-right: auto;
}
.wrap-content {
  max-width:    var(--max-content);
  margin-left:  auto;
  margin-right: auto;
}
.pad-x {
  padding-left:  var(--pad-x);
  padding-right: var(--pad-x);
}


/* -------------------------------------------------------------
   HEADER — sticky
   ------------------------------------------------------------- */
.site-header {
  position:      sticky;
  top:           0;
  z-index:       300;
  background:    #ffffff;
  border-bottom: 1px solid rgba(0, 0, 0, .08);
  box-shadow:    0 1px 12px rgba(0, 0, 0, .05);
}

.header-inner {
  display:         flex;
  align-items:     center;
  justify-content: space-between;
  gap:             24px;
  min-height:      var(--header-h);
  padding-top:     10px;
  padding-bottom:  10px;
}

/* Logo */
.site-logo a { display: flex; align-items: center; }
.site-logo img {
  height:        46px;
  width:         auto;
  border-radius: 0;
}

/* Desktop Navigation */
.site-nav { display: flex; align-items: center; }
.site-nav > ul {
  display:     flex;
  align-items: center;
  gap:         28px;
  list-style:  none;
}
.site-nav > ul > li { position: relative; }

.site-nav a {
  color:         #111827;
  font-size:     15px;
  font-weight:   500;
  white-space:   nowrap;
  padding:       4px 0;
  display:       inline-flex;
  align-items:   center;
  gap:           5px;
  transition:    color .2s;
}
.site-nav a:hover,
.site-nav .current > a { color: var(--nav-accent); }

/* Chevron items with submenu */
.has-sub > a::after {
  content:        '';
  display:        inline-block;
  width:          6px;
  height:         6px;
  border:         solid #111827;
  border-width:   0 1.5px 1.5px 0;
  transform:      rotate(45deg) translateY(-2px);
  transition:     border-color .2s, transform .2s;
}
.has-sub:hover > a::after {
  border-color: var(--nav-accent);
  transform:    rotate(225deg) translateY(-2px);
}

/* Dropdown submenu */
.submenu {
  display:       none;
  position:      absolute;
  top:           calc(100% + 8px);
  left:          0;
  background:    #ffffff;
  border:        1px solid rgba(0, 0, 0, .08);
  border-radius: 6px;
  min-width:     220px;
  padding:       6px 0;
  list-style:    none;
  z-index:       400;
  box-shadow:    0 4px 20px rgba(25, 30, 41, .1);
}
/* bridge gap to avoid hover gap */
.submenu::before {
  content:  '';
  position: absolute;
  top:      -8px;
  left:     0;
  right:    0;
  height:   8px;
}
.submenu li a {
  display:     block;
  padding:     8px 18px;
  color:       var(--nav-accent);
  font-size:   14px;
  font-weight: 400;
  white-space: nowrap;
  transition:  background .15s, color .15s;
}
.submenu li a:hover {
  background: var(--c-neutral-050);
  color:      var(--c-primary-700);
}
.has-sub:hover .submenu,
.has-sub:focus-within .submenu { display: block; }

/* CTA button */
.header-cta .btn-cta {
  display:     inline-block;
  background:  #003767;
  color:       #ffffff !important;
  font-size:   14px;
  font-weight: 500;
  padding:     12px 18px;
  border-radius: 4px;
  white-space: nowrap;
  transition:  background .2s;
}
.header-cta .btn-cta:hover {
  background: var(--c-primary-700);
  color:      #fff !important;
}

/* Hamburger button */
.hamburger {
  display:    none;
  background: none;
  border:     none;
  cursor:     pointer;
  padding:    4px;
}
.hamburger svg { width: 28px; height: 28px; }


/* -------------------------------------------------------------
   MOBILE MENU — overlay
   ------------------------------------------------------------- */
.mobile-overlay {
  display:         none;
  position:        fixed;
  inset:           0;
  background:      #003767;
  z-index:         9999;
  flex-direction:  column;
  align-items:     center;
  justify-content: center;
  padding:         40px 32px;
  overflow-y:      auto;
}
.mobile-overlay.open { display: flex; }

.mob-close {
  position:   absolute;
  top:        18px;
  right:      20px;
  background: none;
  border:     none;
  cursor:     pointer;
  line-height: 1;
  color:      #ffffff;
}
.mob-close svg { width: 28px; height: 28px; fill: #fff; }

.mob-nav > ul { list-style: none; text-align: center; }
.mob-nav > ul > li > a {
  display:         block;
  font-size:       24px;
  font-weight:     500;
  color:           #ffffff;
  padding:         10px 0;
  text-decoration: none;
  cursor:          pointer;
}
.mob-nav > ul > li > a:hover { color: var(--nav-accent); }

.mob-sub {
  display:        none;
  list-style:     none;
  text-align:     center;
  padding-bottom: 8px;
}
.mob-sub.open { display: block; }
.mob-sub li a {
  display:   block;
  font-size: 16px;
  color:     var(--nav-accent);
  padding:   5px 0;
}


/* -------------------------------------------------------------
   PAGE HERO — banner titolo pagina
   ------------------------------------------------------------- */
.page-hero {
  background-color:       var(--c-primary-950);
  background-image:       url('https://globalspinesolutions.com/wp-content/uploads/2025/08/co-b-r.svg');
  background-position:    100% 100%;
  background-size:        cover;
  background-attachment:  scroll;
  padding: clamp(64px, 6vw, 96px) var(--pad-x) clamp(40px, 4vw, 56px);
  text-align: center;
}
.page-hero h1 {
  color:           #ffffff;
  text-transform:  lowercase;
  max-width:       800px;
  margin:          0 auto;
}
.page-hero h1::first-letter {
  text-transform:  uppercase;
}


/* -------------------------------------------------------------
   MAIN CONTENT
   ------------------------------------------------------------- */
.page-content {
  padding: 80px var(--pad-x) 60px;
}
.page-content h2 {
  color:         var(--c-neutral-700);
  margin-bottom: 28px;
}
.page-content h3 {
  color:         var(--c-neutral-700);
  margin-top:    40px;
  margin-bottom: 16px;
}
.page-content .content-list {
  margin:      16px 0 24px 24px;
  padding:     0;
  line-height: 1.8;
}
.page-content .content-list li {
  margin-bottom: 6px;
}

/* Grid 3 immagini */
.grid-img-3 {
  display:               grid;
  grid-template-columns: repeat(3, 1fr);
  gap:                   24px;
  margin:                44px 0;
}
.grid-img-3 figure { margin: 0; }
.grid-img-3 figure img {
  width:         100%;
  height:        220px;
  object-fit:    cover;
  border-radius: 8px;
  transition:    transform .3s ease;
}
.grid-img-3 figure img:hover { transform: scale(1.02); }
.grid-img-3 figcaption {
  text-align:  center;
  font-size:   13px;
  color:       var(--c-neutral-500);
  margin-top:  8px;
  line-height: 1.4;
}


/* -------------------------------------------------------------
   FOOTER
   ------------------------------------------------------------- */
.site-footer {
  background: var(--c-neutral-050);
  padding:    clamp(64px, 5vw, 96px) var(--pad-x) 0;
}

.footer-cols {
  display:         flex;
  gap:             clamp(32px, 4vw, 80px);
  justify-content: space-between;
  align-items:     flex-start;
  flex-wrap:       nowrap;
}

/* Brand column */
.fc-brand { flex: 0 0 300px; }
.fc-brand img {
  width:         240px;
  height:        auto;
  border-radius: 0;
  margin-bottom: 20px;
}
.fc-brand p {
  font-size:     15px;
  line-height:   1.7;
  text-align:    left;
  color:         var(--c-neutral-700);
  margin-bottom: 20px;
}

.footer-social {
  display:    flex;
  gap:        16px;
  list-style: none;
  margin-top: 8px;
}
.footer-social a { color: var(--c-neutral-900); display: flex; align-items: center; }
.footer-social a:hover { color: var(--c-primary-600); }
.footer-social svg { width: 22px; height: 22px; }

/* Nav columns */
.fc-nav { flex: 1 1 160px; min-width: 0; }
.fc-nav h4 {
  font-size:     17px;
  font-weight:   600;
  color:         var(--c-neutral-950);
  border-left:   2px solid var(--c-primary-500);
  padding-left:  8px;
  margin-bottom: 16px;
}
.fc-nav ul          { list-style: none; line-height: 1.3; }
.fc-nav ul li       { padding: 5px 0; }
.fc-nav ul li a     { font-size: 16px; color: var(--c-neutral-900); transition: color .2s; }
.fc-nav ul li a:hover { color: var(--c-primary-600); }

/* Contact column */
.fc-contact          { flex: 0 0 210px; }
.fc-contact-item     { margin-bottom: 20px; }
.fc-contact-item .lbl {
  font-size:     15px;
  font-weight:   500;
  color:         var(--c-primary-600);
  margin-bottom: 4px;
  text-align:    left;
}
.fc-contact-item .val {
  font-size:   20px;
  font-weight: 600;
  line-height: 1.3;
  color:       var(--c-neutral-950);
  text-align:  left;
  margin:      0;
}
.fc-contact-item .val.sm {
  font-size:   16px;
  font-weight: 400;
  line-height: 1.6;
}

/* Separator & bottom bar */
.footer-hr {
  border:     none;
  border-top: 1px solid var(--c-neutral-200);
  margin:     40px 0 0;
}
.footer-bottom {
  display:         flex;
  justify-content: space-between;
  align-items:     center;
  flex-wrap:       wrap;
  gap:             12px;
  padding:         20px 0 clamp(32px, 4vw, 56px);
}
.footer-bottom-left {
  display:     flex;
  gap:         12px;
  align-items: center;
  flex-wrap:   wrap;
}
.footer-bottom p,
.footer-bottom a {
  font-size:  14px;
  color:      var(--c-neutral-500);
  text-align: left;
  margin:     0;
}
.footer-bottom a:hover { color: var(--c-neutral-950); }
.footer-sep { color: var(--c-neutral-200); }

.footer-powered     { font-size: 13px; color: var(--c-neutral-500); text-align: right; margin: 0; }
.footer-powered a   { font-size: 13px; color: var(--c-neutral-500); }
.footer-powered a:hover { color: var(--c-primary-600); }


/* -------------------------------------------------------------
   RESPONSIVE BREAKPOINTS
   ------------------------------------------------------------- */

/* ≤ 1150px — nasconde nav desktop, mostra hamburger */
@media (max-width: 1150px) {
  .site-nav,
  .header-cta { display: none; }
  .hamburger  { display: block; }
}

/* ≤ 1100px — footer si wrappa */
@media (max-width: 1100px) {
  .footer-cols { flex-wrap: wrap; }
  .fc-brand    { flex: 0 0 100%; }
  .fc-contact  { flex: 0 0 auto; }
}

/* ≤ 768px — griglia immagini 2 colonne, footer bottom in colonna */
@media (max-width: 768px) {
  .grid-img-3            { grid-template-columns: repeat(2, 1fr); }
  .grid-img-3 figure:nth-child(n+2) { display: none; }
  .footer-bottom         { flex-direction: column; align-items: flex-start; }
  .footer-powered        { text-align: left; }
}

/* ≤ 480px — griglia immagini 1 colonna */
@media (max-width: 480px) {
  .grid-img-3            { grid-template-columns: 1fr; }
  .grid-img-3 figure img { height: 240px; }
}

/* =============================================================
   SEZIONE FAQ
   Accordion nativo con <details>/<summary> — zero JS
   ============================================================= */

.faq-section {
  padding-top: 3.5rem;
  padding-bottom: 4rem;
  background-color: #f8fafc;
}

.faq-heading {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  color: var(--c-primary-800, #003767);
  margin-bottom: 0.5rem;
}

.faq-intro {
  font-size: 1rem;
  color: var(--c-neutral-600, #4b5563);
  margin-bottom: 2rem;
  max-width: 680px;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

/* Singolo item FAQ */
.faq-item {
  background: #ffffff;
  border: 1px solid var(--c-neutral-200, #e5e7eb);
  border-radius: 8px;
  overflow: hidden;
  transition: box-shadow 0.2s ease;
}

.faq-item[open] {
  box-shadow: 0 4px 16px rgba(0, 55, 103, 0.08);
  border-color: var(--c-primary-300, #7ab0d4);
}

/* Summary — la domanda cliccabile */
.faq-item > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.125rem 1.25rem;
  font-size: 1rem;
  font-weight: 600;
  color: var(--c-primary-800, #003767);
  cursor: pointer;
  list-style: none;          /* rimuove marker nativo */
  user-select: none;
}

/* Rimuove marker nativo in webkit */
.faq-item > summary::-webkit-details-marker { display: none; }

/* Icona +/- generata via CSS */
.faq-item > summary::after {
  content: '+';
  flex-shrink: 0;
  width: 1.5rem;
  height: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  font-weight: 400;
  color: var(--c-primary-500, #0066b3);
  background: var(--c-primary-50, #e8f1f9);
  border-radius: 50%;
  transition: transform 0.25s ease, background 0.2s ease;
}

.faq-item[open] > summary::after {
  content: '−';
  background: var(--c-primary-100, #c5ddf0);
  transform: rotate(180deg);
}

/* Risposta */
.faq-answer {
  padding: 0 1.25rem 1.25rem;
  border-top: 1px solid var(--c-neutral-100, #f3f4f6);
}

.faq-answer p {
  font-size: 0.9375rem;
  line-height: 1.75;
  color: var(--c-neutral-700, #374151);
  margin: 0.75rem 0 0;
}

.faq-answer a {
  color: var(--c-primary-600, #0055a0);
  text-decoration: underline;
}

.faq-answer a:hover {
  color: var(--c-primary-800, #003767);
}


.wp-block-button {
    margin-top: 40px;
}

.wp-element-button, .wp-block-button__link {
    background-color: #003767;
    border-width: 0;
    color: var(--wp--preset--color--bbe-neutral-000);
    font-family: inherit;
    font-size: inherit;
    font-style: inherit;
    font-weight: inherit;
    letter-spacing: inherit;
    line-height: inherit;
    padding-top: calc(0.667em + 2px);
    padding-right: calc(1.333em + 2px);
    padding-bottom: calc(0.667em + 2px);
    padding-left: calc(1.333em + 2px);
    text-decoration: none;
    text-transform: inherit;
    color: white;
    border-radius: 5px;
}

/* Responsive FAQ */
@media (max-width: 768px) {
  .faq-item > summary {
    font-size: 0.9375rem;
    padding: 1rem;
  }
  .faq-answer {
    padding: 0 1rem 1rem;
  }
}

