/* ============================================================
   SOS Italia - Ghost Custom Theme Overrides
   File ufficiale di personalizzazione
   Tema base: Source
   ============================================================ */

:root {
  --sos-orange: #ff6a00;
  --sos-bg: #171b1f;
  --sos-dark: #0b0f14;
  --sos-panel: rgba(9, 14, 19, .92);
  --sos-border: rgba(255,255,255,.12);
  --sos-text: #ffffff;
  --sos-muted: rgba(255,255,255,.72);
}

/* ============================================================
   Base / Background
   ============================================================ */

body,
.gh-viewport,
.gh-main,
.site-content,
.sos-blog-inner,
.sos-post-grid {
  background-color: transparent !important;
}

.sos-blog-main::before,
.sos-blog-main::after {
  display: none !important;
  content: none !important;
}

.sos-blog-main {
  position: relative !important;
  padding: 72px 0 88px !important;
  background-image: url("/content/images/2026/04/map-italy-background.webp") !important;
  background-size: cover !important;
  background-position: center center !important;
  background-repeat: no-repeat !important;
  background-attachment: fixed !important;
  box-shadow: inset 0 0 0 9999px rgba(10,14,18,.10) !important;
}

.sos-blog-inner {
  width: min(1120px, calc(100% - 40px)) !important;
  margin: 0 auto !important;
  position: relative !important;
  z-index: 1 !important;
}

/* ============================================================
   Header
   ============================================================ */

.sos-nav {
  min-height: 78px !important;
  background: rgba(11,15,20,.92) !important;
  border-bottom: 1px solid rgba(255,255,255,.10) !important;
}

.sos-nav-inner {
  width: min(1180px, calc(100% - 36px)) !important;
  min-height: 78px !important;
  margin: 0 auto !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 24px !important;
}

.sos-nav-left,
.sos-nav-actions {
  display: flex !important;
  align-items: center !important;
  gap: 18px !important;
}

.sos-nav-logo img {
  width: 48px !important;
  height: auto !important;
  display: block !important;
}

.sos-menu {
  position: relative !important;
}

.sos-menu summary {
  list-style: none !important;
  cursor: pointer !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  color: rgba(255,255,255,.88) !important;
  font-weight: 800 !important;
  font-size: 15px !important;
  padding: 10px 14px !important;
  border-radius: 999px !important;
}

.sos-menu summary::-webkit-details-marker {
  display: none !important;
}

.sos-menu summary:hover,
.sos-menu[open] summary {
  background: rgba(255,106,0,.22) !important;
  color: #fff !important;
}

.sos-menu-panel {
  position: absolute !important;
  top: calc(100% + 10px) !important;
  left: 0 !important;
  z-index: 50 !important;
  min-width: 210px !important;
  padding: 10px !important;
  border-radius: 18px !important;
  background: rgba(8,12,17,.98) !important;
  border: 1px solid rgba(255,255,255,.14) !important;
  box-shadow: 0 22px 60px rgba(0,0,0,.42) !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 4px !important;
}

.sos-menu-panel a {
  display: block !important;
  color: #fff !important;
  opacity: 1 !important;
  font-weight: 700 !important;
  padding: 10px 12px !important;
  border-radius: 12px !important;
}

.sos-menu-panel a:hover {
  color: #fff !important;
  background: rgba(255,106,0,.22) !important;
  opacity: 1 !important;
}

.sos-nav-actions .gh-search,
.sos-nav-actions .gh-icon-button,
.sos-nav-actions button {
  color: #fff !important;
  background: transparent !important;
  border: 0 !important;
}

.sos-nav-actions svg {
  width: 22px !important;
  height: 22px !important;
}

.sos-login-btn {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-height: 38px !important;
  padding: 0 20px !important;
  border-radius: 999px !important;
  background: var(--sos-orange) !important;
  color: #fff !important;
  font-weight: 900 !important;
  font-size: 14px !important;
  line-height: 1 !important;
  box-shadow: 0 10px 28px rgba(255,106,0,.24) !important;
}

.sos-login-btn:hover {
  opacity: 1 !important;
  background: #ff7a18 !important;
  color: #fff !important;
}

/* ============================================================
   Hero
   ============================================================ */

.sos-blog-hero {
  position: relative !important;
  min-height: 420px !important;
  background: #0b1117 !important;
  overflow: hidden !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

.sos-blog-hero-img {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  object-position: center !important;
  background: #0b1117 !important;
}

.sos-blog-hero-overlay {
  position: absolute !important;
  inset: 0 !important;
  background: rgba(5,8,12,.42) !important;
}

.sos-blog-hero-content {
  position: relative !important;
  z-index: 2 !important;
  width: min(760px, calc(100% - 560px)) !important;
  text-align: center !important;
}

.sos-blog-hero-content h1 {
  white-space: nowrap !important;
  margin: 0 0 24px !important;
  color: #fff !important;
  font-size: clamp(30px, 2.45vw, 42px) !important;
  line-height: 1.08 !important;
  text-shadow: 0 4px 22px rgba(0,0,0,.65) !important;
}

.sos-blog-hero-content .gh-form {
  margin: 0 auto !important;
  background: #fff !important;
}

/* ============================================================
   Post cards
   ============================================================ */

.sos-section-label {
  margin-bottom: 28px !important;
  padding-bottom: 14px !important;
  border-bottom: 1px solid rgba(255,255,255,.12) !important;
  color: #fff !important;
  text-transform: uppercase !important;
  font-weight: 800 !important;
  font-size: 13px !important;
  letter-spacing: .04em !important;
}

.sos-post-grid {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 28px !important;
}

.sos-post-card {
  overflow: hidden !important;
  border-radius: 24px !important;
  background: var(--sos-panel) !important;
  border: 1px solid var(--sos-border) !important;
  box-shadow: 0 22px 62px rgba(0,0,0,.30) !important;
}

.sos-post-card-link {
  display: flex !important;
  flex-direction: column !important;
  height: 100% !important;
  color: inherit !important;
}

.sos-post-card-image {
  width: 100% !important;
  aspect-ratio: 16 / 9 !important;
  margin: 0 !important;
  overflow: hidden !important;
  background: rgba(0,0,0,.35) !important;
}

.sos-post-card-image img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  object-position: center !important;
}

.sos-post-card-body {
  display: flex !important;
  flex-direction: column !important;
  flex: 1 !important;
  padding: 22px !important;
}

.sos-post-card-body h2 {
  margin: 0 !important;
  color: #fff !important;
  font-size: 2.4rem !important;
  line-height: 1.15 !important;
}

.sos-post-card-body p {
  margin: 14px 0 0 !important;
  color: var(--sos-muted) !important;
  font-size: 1.5rem !important;
  line-height: 1.55 !important;
}

.sos-post-meta {
  margin-top: auto !important;
  padding-top: 18px !important;
  color: rgba(255,255,255,.52) !important;
  font-size: 1.25rem !important;
}

/* ============================================================
   Footer
   ============================================================ */

.gh-footer {
  margin-top: 0 !important;
  padding: 42px 0 28px !important;
  background: rgba(6,9,13,.96) !important;
  border-top: 1px solid rgba(255,255,255,.10) !important;
}

.sos-footer-inner {
  display: grid !important;
  grid-template-columns: 1.4fr .8fr .8fr !important;
  gap: 28px !important;
  color: rgba(255,255,255,.72) !important;
}

.footer-brand h3 {
  margin: 0 0 8px !important;
  color: #fff !important;
}

.footer-brand p {
  margin: 0 0 6px !important;
  color: rgba(255,255,255,.68) !important;
}

.footer-links {
  display: flex !important;
  flex-direction: column !important;
  gap: 8px !important;
}

.footer-links a,
.gh-footer a {
  color: rgba(255,255,255,.78) !important;
}

.footer-links a:hover,
.gh-footer a:hover {
  color: var(--sos-orange) !important;
}

.footer-copy {
  color: rgba(255,255,255,.48) !important;
}

/* ============================================================
   Responsive
   ============================================================ */

@media (max-width: 980px) {
  .sos-blog-hero {
    min-height: 270px !important;
  }

  .sos-blog-hero-overlay {
    background:
      linear-gradient(
        to right,
        rgba(5,8,12,.70),
        rgba(5,8,12,.48),
        rgba(5,8,12,.70)
      ) !important;
  }

  .sos-blog-hero-content {
    width: min(78%, 520px) !important;
  }

  .sos-blog-hero-content h1 {
    white-space: normal !important;
    font-size: clamp(21px, 5vw, 30px) !important;
    line-height: 1.1 !important;
    margin-bottom: 14px !important;
  }

  .sos-blog-hero-content .gh-form {
    height: 46px !important;
    max-width: 92% !important;
  }

  .sos-post-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 760px) {
  .sos-nav,
  .sos-nav-inner {
    min-height: 72px !important;
  }

  .sos-nav-inner {
    width: calc(100% - 28px) !important;
    justify-content: space-between !important;
    gap: 14px !important;
  }

  .sos-nav-left,
  .sos-nav-actions {
    gap: 10px !important;
  }

  .sos-nav-logo img {
    width: 46px !important;
  }

  .sos-menu summary {
    font-size: 14px !important;
    padding: 9px 12px !important;
  }

  .sos-menu-panel {
    left: 0 !important;
    top: calc(100% + 12px) !important;
    min-width: 180px !important;
  }

  .sos-menu-panel a {
    font-size: 15px !important;
    padding: 12px 14px !important;
  }

  .sos-login-btn {
    display: inline-flex !important;
    min-width: 58px !important;
    min-height: 34px !important;
    padding: 0 12px !important;
    font-size: 13px !important;
  }

  .sos-blog-hero {
    min-height: 230px !important;
  }

  .sos-blog-hero-content {
    width: min(82%, 430px) !important;
  }

  .sos-blog-hero-content h1 {
    font-size: 20px !important;
    line-height: 1.08 !important;
  }

  .sos-blog-hero-content .gh-form {
    max-width: 86% !important;
  }

  .sos-blog-main {
    padding: 58px 0 72px !important;
    background-attachment: scroll !important;
  }

  .sos-post-grid {
    grid-template-columns: 1fr !important;
  }

  .sos-footer-inner {
    grid-template-columns: 1fr !important;
  }
}

/* ============================================================
   SOS Italia - Hero banner responsive definitivo
   ============================================================ */

.sos-blog-hero {
  width: 100% !important;
  min-height: 0 !important;
  height: clamp(210px, 26vw, 430px) !important;
  max-height: none !important;
  aspect-ratio: auto !important;
  overflow: hidden !important;
  background: #0b1117 !important;
}

.sos-blog-hero-img {
  width: 100% !important;
  height: 100% !important;
  object-fit: contain !important;
  object-position: center center !important;
  background: #0b1117 !important;
}

.sos-blog-hero-content {
  width: min(720px, calc(100% - 560px)) !important;
}

.sos-blog-hero-content h1 {
  white-space: nowrap !important;
  font-size: clamp(26px, 2.35vw, 40px) !important;
}

@media (max-width: 1100px) {
  .sos-blog-hero {
    height: clamp(190px, 31vw, 330px) !important;
  }

  .sos-blog-hero-content {
    width: min(680px, calc(100% - 280px)) !important;
  }

  .sos-blog-hero-content h1 {
    font-size: clamp(22px, 3vw, 32px) !important;
  }
}

@media (max-width: 760px) {
  .sos-blog-hero {
    height: clamp(145px, 42vw, 230px) !important;
  }

  .sos-blog-hero-img {
    object-fit: contain !important;
  }

  .sos-blog-hero-overlay {
    background: rgba(5,8,12,.48) !important;
  }

  .sos-blog-hero-content {
    width: min(78%, 420px) !important;
  }

  .sos-blog-hero-content h1 {
    white-space: normal !important;
    font-size: clamp(17px, 4.5vw, 24px) !important;
    line-height: 1.08 !important;
    margin-bottom: 10px !important;
  }

  .sos-blog-hero-content .gh-form {
    height: 42px !important;
    max-width: 86% !important;
  }
}
