/*
Theme Name: Alaskan Malamute Del Biagio
Theme URI: https://www.alaskanmalamute.it
Author: Computer System Rimini
Description: Tema custom per Centro Selezione Del Biagio - replica fedele del template Helix3 Flex.
Version: 1.0.0
License: GPL v2 or later
Text Domain: alaskan-malamute
*/

/* ===========================================================
   Tokens
   =========================================================== */
:root {
  --color-bg: #ffffff;
  --color-text: #050505;
  --color-muted: #777777;
  --color-accent: #36a3bf;
  --color-accent-dark: #2a8499;
  --color-border: #e5e5e5;
  --color-dark: #1a1a1a;
  --color-darker: #0f0f0f;
  --font-body: "Montserrat", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --container-max: 1170px;
  --header-height: 90px;
}

/* ===========================================================
   Reset & base
   =========================================================== */
*, *::before, *::after { box-sizing: border-box; }
html { font-size: 16px; -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 1rem;
  line-height: 1.7;
  color: var(--color-text);
  background: var(--color-bg);
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--color-accent); text-decoration: none; transition: color .2s; }
a:hover { color: var(--color-accent-dark); }
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-body);
  font-weight: 800;
  line-height: 1.25;
  margin: 0 0 .8em;
  color: var(--color-text);
}
h1 { font-size: 2.4rem; letter-spacing: -.02em; }
h2 { font-size: 1.9rem; letter-spacing: -.01em; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.2rem; }
p { margin: 0 0 1em; }
hr { border: 0; border-top: 1px solid var(--color-border); margin: 2rem 0; }

/* ===========================================================
   Layout container & grid (Bootstrap-compatible for sppb classes)
   =========================================================== */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 20px;
}
/* Row: by default a constrained inner content; full-bleed when has bg or fullscreen */
.sppb-row {
  width: 100%;
  max-width: 100%;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  overflow: hidden;
}
.sppb-row__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  margin: 0 auto;
  padding: 0 15px;
  max-width: var(--container-max);
  width: 100%;
  box-sizing: border-box;
}
.sppb-row > .sppb-row__inner > [class*="col-"] {
  padding: 0 15px;
  margin-bottom: 1.5rem;
  box-sizing: border-box;
}

/* Rows with a background or marked fullscreen go edge-to-edge */
.sppb-row--has-bg,
.sppb-row--full {
  padding: 60px 0;
}
.sppb-row--has-bg .sppb-row__inner,
.sppb-row--full .sppb-row__inner {
  padding-left: 20px;
  padding-right: 20px;
}

/* Background video */
.sppb-row--has-video {
  position: relative;
  overflow: hidden;
}
.sppb-row__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  pointer-events: none;
}
.sppb-row--has-video > .sppb-row__inner {
  position: relative;
  z-index: 1;
}

/* Light text on dark/accent bg — covers the bg colors used in imported SPPB content */
.sppb-row--is-dark,
.sppb-row[style*="color: #ffffff"],
.sppb-row[style*="color:#ffffff"],
.sppb-row[style*="background-color: #1a1a1a"],
.sppb-row[style*="background-color:#1a1a1a"],
.sppb-row[style*="background-color: #000000"],
.sppb-row[style*="background-color:#000000"],
.sppb-row[style*="background-color: #202020"],
.sppb-row[style*="background-color:#202020"],
.sppb-row[style*="background-color: #5640A6"],
.sppb-row[style*="background-color:#5640A6"],
.sppb-row[style*="background-color: #5640a6"],
.sppb-row[style*="background-color:#5640a6"],
.sppb-row[style*="background-color: #36a3bf"],
.sppb-row[style*="background-color:#36a3bf"],
.sppb-row[style*="background-color: #a49017"],
.sppb-row[style*="background-color:#a49017"],
.sppb-row[style*="background-color: #5aa2e4"],
.sppb-row[style*="background-color:#5aa2e4"] {
  color: #fff;
}
.sppb-row--is-dark *,
.sppb-row[style*="background-color: #1a1a1a"] *,
.sppb-row[style*="background-color:#1a1a1a"] *,
.sppb-row[style*="background-color: #000000"] *,
.sppb-row[style*="background-color:#000000"] *,
.sppb-row[style*="background-color: #202020"] *,
.sppb-row[style*="background-color:#202020"] *,
.sppb-row[style*="background-color: #5640A6"] *,
.sppb-row[style*="background-color:#5640A6"] *,
.sppb-row[style*="background-color: #5640a6"] *,
.sppb-row[style*="background-color:#5640a6"] *,
.sppb-row[style*="background-color: #36a3bf"] *,
.sppb-row[style*="background-color:#36a3bf"] *,
.sppb-row[style*="background-color: #a49017"] *,
.sppb-row[style*="background-color:#a49017"] *,
.sppb-row[style*="background-color: #5aa2e4"] *,
.sppb-row[style*="background-color:#5aa2e4"] * {
  color: inherit;
}

/* Colonne SPPB legacy senza taglia (class="sppb-", markup Joomla vecchio):
   erano spaziatori per centrare il contenuto; senza larghezza collassano a 0
   e la riga si ammassa a sinistra. Le rendiamo spaziatori flessibili. */
@media (min-width: 768px) {
  .sppb-row > [class="sppb-"] {
    flex: 1 1 0;
    min-width: 0;
  }
}

/* Device hide flags */
@media (max-width: 767px)  { .sppb-hidden-xs { display: none !important; } }
@media (min-width: 768px) and (max-width: 991px)  { .sppb-hidden-sm { display: none !important; } }
@media (min-width: 992px) { .sppb-hidden-md { display: none !important; } }
.sppb-row__inner > [class*="col-"] {
  flex: 0 0 100% !important;
  max-width: 100% !important;
  min-width: 0;
  box-sizing: border-box;
}
@media (min-width: 768px) {
  .sppb-row__inner > .col-sm-1  { flex: 0 0 8.333% !important;  max-width: 8.333% !important; }
  .sppb-row__inner > .col-sm-2  { flex: 0 0 16.666% !important; max-width: 16.666% !important; }
  .sppb-row__inner > .col-sm-3  { flex: 0 0 25% !important;     max-width: 25% !important; }
  .sppb-row__inner > .col-sm-4  { flex: 0 0 33.333% !important; max-width: 33.333% !important; }
  .sppb-row__inner > .col-sm-5  { flex: 0 0 41.666% !important; max-width: 41.666% !important; }
  .sppb-row__inner > .col-sm-6  { flex: 0 0 50% !important;     max-width: 50% !important; }
  .sppb-row__inner > .col-sm-7  { flex: 0 0 58.333% !important; max-width: 58.333% !important; }
  .sppb-row__inner > .col-sm-8  { flex: 0 0 66.666% !important; max-width: 66.666% !important; }
  .sppb-row__inner > .col-sm-9  { flex: 0 0 75% !important;     max-width: 75% !important; }
  .sppb-row__inner > .col-sm-10 { flex: 0 0 83.333% !important; max-width: 83.333% !important; }
  .sppb-row__inner > .col-sm-11 { flex: 0 0 91.666% !important; max-width: 91.666% !important; }
  .sppb-row__inner > .col-sm-12 { flex: 0 0 100% !important;    max-width: 100% !important; }
}
@media (min-width: 992px) {
  .sppb-row__inner > .col-md-1  { flex: 0 0 8.333% !important;  max-width: 8.333% !important; }
  .sppb-row__inner > .col-md-2  { flex: 0 0 16.666% !important; max-width: 16.666% !important; }
  .sppb-row__inner > .col-md-3  { flex: 0 0 25% !important;     max-width: 25% !important; }
  .sppb-row__inner > .col-md-4  { flex: 0 0 33.333% !important; max-width: 33.333% !important; }
  .sppb-row__inner > .col-md-5  { flex: 0 0 41.666% !important; max-width: 41.666% !important; }
  .sppb-row__inner > .col-md-6  { flex: 0 0 50% !important;     max-width: 50% !important; }
  .sppb-row__inner > .col-md-7  { flex: 0 0 58.333% !important; max-width: 58.333% !important; }
  .sppb-row__inner > .col-md-8  { flex: 0 0 66.666% !important; max-width: 66.666% !important; }
  .sppb-row__inner > .col-md-9  { flex: 0 0 75% !important;     max-width: 75% !important; }
  .sppb-row__inner > .col-md-10 { flex: 0 0 83.333% !important; max-width: 83.333% !important; }
  .sppb-row__inner > .col-md-11 { flex: 0 0 91.666% !important; max-width: 91.666% !important; }
  .sppb-row__inner > .col-md-12 { flex: 0 0 100% !important;    max-width: 100% !important; }
}

/* ===========================================================
   Header (replica template Helix3 "flex" - logo centrato)
   =========================================================== */
.site-header {
  position: relative;
  background: #fff;
}

/* Banda chevron nera in cima */
.header-top-band {
  height: 36px;
  background: #1a1a1a url("assets/images/header-bg.png") repeat-x center top;
  background-size: auto 100%;
}

/* Sezione logo centrato */
.header-logo {
  background: #fff;
  padding: 20px 0 15px;
  text-align: center;
}
.header-logo__link { display: inline-block; }
.header-logo img {
  max-height: 95px;
  width: auto;
  display: inline-block;
  margin: 0 auto;
}

/* Barra menu principale */
.header-nav-bar {
  background: #fff;
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}
.header-nav-bar__inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 30px;
  min-height: 54px;
  position: relative;
}

/* Bordo ondulato bianco sotto il menu */
.header-wave {
  height: 16px;
  background: #fff url("assets/images/footer-bg.png") repeat-x center bottom;
  background-size: auto 100%;
  margin-top: -1px;
}

/* Sticky on scroll - simplified */
@media (min-width: 992px) {
  .site-header { position: sticky; top: 0; z-index: 100; box-shadow: 0 1px 4px rgba(0,0,0,.06); }
}

/* Language switcher (simboli IT/EN) */
.lang-switcher {
  display: flex;
  gap: 6px;
  align-items: center;
  position: absolute;
  right: 16px;
}
.lang-switcher a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 20px;
  padding: 0;
  font-size: 0;
  border: 1px solid var(--color-border);
  border-radius: 2px;
  overflow: hidden;
  transition: transform .2s, box-shadow .2s;
  position: relative;
}
.lang-switcher a[hreflang="it"] {
  background: linear-gradient(to right, #008c45 0%, #008c45 33%, #fff 33%, #fff 66%, #cd212a 66%, #cd212a 100%);
}
.lang-switcher a[hreflang="en"] {
  /* Union Jack (SVG inline: croci di S. Giorgio e S. Andrea, non una croce nordica) */
  background-color: #00247d;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 60 30'%3E%3CclipPath id='t'%3E%3Cpath d='M30,15h30v15zM30,15v15H0zM30,15H0V0zM30,15V0h30z'/%3E%3C/clipPath%3E%3Cpath fill='%2300247d' d='M0,0v30h60V0z'/%3E%3Cpath stroke='%23fff' stroke-width='6' d='M0,0 60,30M60,0 0,30'/%3E%3Cpath stroke='%23cf142b' stroke-width='4' clip-path='url(%23t)' d='M0,0 60,30M60,0 0,30'/%3E%3Cpath stroke='%23fff' stroke-width='10' d='M30,0v30M0,15h60'/%3E%3Cpath stroke='%23cf142b' stroke-width='6' d='M30,0v30M0,15h60'/%3E%3C/svg%3E");
  background-size: 100% 100%;
  background-position: center;
}
.lang-switcher a.current,
.lang-switcher a:hover {
  box-shadow: 0 0 0 2px var(--color-accent);
  transform: translateY(-1px);
}

/* Primary nav */
.main-nav { display: flex; align-items: center; }
.main-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 0;
}
.main-nav li { position: relative; }
.main-nav li a {
  display: block;
  padding: 18px 14px;
  color: var(--color-dark);
  text-transform: uppercase;
  letter-spacing: .08em;
  font-size: .78rem;
  font-weight: 600;
  white-space: nowrap;
  position: relative;
}
.main-nav li a:hover,
.main-nav li.current-menu-item > a,
.main-nav li.current-menu-parent > a,
.main-nav li.current-menu-ancestor > a {
  color: var(--color-accent);
}
.main-nav li.current-menu-item > a::after,
.main-nav li.current-menu-parent > a::after,
.main-nav li.current-menu-ancestor > a::after {
  content: "";
  position: absolute;
  left: 14px; right: 14px; bottom: 8px;
  height: 2px;
  background: var(--color-accent);
}

.main-nav .sub-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: rgba(26,26,26,.92);
  min-width: 240px;
  padding: 8px 0;
  flex-direction: column;
  z-index: 110;
  border: 0;
  box-shadow: 0 8px 20px rgba(0,0,0,.15);
}
.main-nav li:hover > .sub-menu,
.main-nav li:focus-within > .sub-menu {
  display: flex;
}
.main-nav .sub-menu li a {
  padding: 10px 18px;
  color: #fff;
  text-transform: none;
  letter-spacing: 0;
  font-size: .85rem;
  font-weight: 400;
}
.main-nav .sub-menu li a:hover {
  background: var(--color-accent);
  color: #fff;
}
.main-nav .sub-menu li a::after { display: none; }

/* Mobile toggle */
.menu-toggle {
  display: none;
  background: transparent;
  border: 0;
  cursor: pointer;
  padding: 8px;
  color: var(--color-dark);
  position: absolute;
  left: 16px;
}
.menu-toggle svg { width: 28px; height: 28px; }

@media (max-width: 991px) {
  .header-logo { padding: 15px 0 10px; }
  .header-logo img { max-height: 70px; }
  .menu-toggle { display: block; }
  .main-nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    max-width: 80vw;
    height: 100vh;
    background: #fff;
    border-left: 1px solid var(--color-border);
    box-shadow: -4px 0 12px rgba(0,0,0,.1);
    overflow-y: auto;
    padding: 60px 0 16px;
    transition: right .25s ease;
    z-index: 200;
  }
  .main-nav.is-open { right: 0; }
  .main-nav ul { flex-direction: column; gap: 0; }
  .main-nav li a { padding: 12px 24px; }
  .main-nav .sub-menu {
    position: static;
    display: flex;
    background: transparent;
    box-shadow: none;
    padding-left: 16px;
  }
  .main-nav .sub-menu li a { color: var(--color-dark); }
  .main-nav .sub-menu li a:hover { background: transparent; color: var(--color-accent); }
  .lang-switcher { right: 60px; }
}

/* ===========================================================
   Page hero
   =========================================================== */
.page-hero {
  padding: 60px 0 30px;
  text-align: center;
  background: linear-gradient(180deg, #fafafa 0%, #ffffff 100%);
  border-bottom: 1px solid var(--color-border);
  margin-bottom: 30px;
}
.page-hero h1 {
  margin: 0;
  text-transform: uppercase;
  letter-spacing: .04em;
  font-size: 2rem;
}

/* ===========================================================
   Content (sppb addons)
   =========================================================== */
.site-main { padding: 20px 0 60px; }

.sppb-image {
  margin: 0 0 1.5rem;
}
.sppb-image img {
  width: 100%;
  height: auto;
  border-radius: 4px;
}

.sppb-button,
.wp-block-button__link {
  display: inline-block;
  padding: 12px 28px;
  background: var(--color-accent);
  color: #fff;
  border: 0;
  border-radius: 2px;
  font-weight: 600;
  font-size: .85rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  transition: background .2s, transform .2s;
  cursor: pointer;
}
.sppb-button:hover,
.wp-block-button__link:hover {
  background: var(--color-accent-dark);
  color: #fff;
  transform: translateY(-1px);
}

.sppb-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 12px;
  margin: 1.5rem 0;
}
.sppb-gallery a {
  display: block;
  overflow: hidden;
  border-radius: 4px;
}
.sppb-gallery img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  transition: transform .35s;
}
.sppb-gallery a:hover img { transform: scale(1.04); }

.sppb-accordion details {
  border: 1px solid var(--color-border);
  border-radius: 3px;
  margin-bottom: 8px;
  padding: 0;
  overflow: hidden;
}
.sppb-accordion summary {
  padding: 14px 18px;
  cursor: pointer;
  font-weight: 600;
  background: #fafafa;
  list-style: none;
}
.sppb-accordion summary::-webkit-details-marker { display: none; }
.sppb-accordion summary::after { content: "+"; float: right; color: var(--color-accent); font-size: 1.4rem; line-height: 1; }
.sppb-accordion details[open] summary::after { content: "−"; }
.sppb-accordion details > *:not(summary) { padding: 16px 18px; }

/* Timeline (replica addon Joomla SP Page Builder) */
.alm-timeline {
  position: relative;
  padding: 20px 0;
  max-width: 1100px;
  margin: 0 auto;
}
.alm-timeline::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 2px;
  background: var(--color-accent);
  transform: translateX(-50%);
}
.alm-timeline__item {
  position: relative;
  width: 50%;
  padding: 30px 50px;
  box-sizing: border-box;
}
.alm-timeline__item--left  { left: 0;   text-align: right; }
.alm-timeline__item--right { left: 50%; text-align: left;  }
.alm-timeline__date {
  position: absolute;
  top: 30px;
  font-family: var(--font-body);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--color-accent);
  background: #fff;
  padding: 0 10px;
  line-height: 1;
  z-index: 1;
}
.alm-timeline__item--left  .alm-timeline__date { right: -45px; }
.alm-timeline__item--right .alm-timeline__date { left:  -45px; }
.alm-timeline__date::before {
  content: "";
  position: absolute;
  top: 50%;
  width: 14px;
  height: 14px;
  background: var(--color-accent);
  border-radius: 50%;
  transform: translateY(-50%);
}
.alm-timeline__item--left  .alm-timeline__date::before { right: -22px; }
.alm-timeline__item--right .alm-timeline__date::before { left:  -22px; }
.alm-timeline__card {
  background: #fafafa;
  border: 1px solid var(--color-border);
  border-radius: 4px;
  padding: 20px;
  box-shadow: 0 1px 4px rgba(0,0,0,.04);
}
.alm-timeline__title {
  margin: 0 0 12px;
  font-size: 1.1rem;
  text-transform: uppercase;
  letter-spacing: .03em;
  line-height: 1.35;
}
.alm-timeline__body img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 0 10px;
}
.alm-timeline__body p { margin: 0 0 8px; }

@media (max-width: 767px) {
  .alm-timeline::before { left: 20px; }
  .alm-timeline__item,
  .alm-timeline__item--left,
  .alm-timeline__item--right {
    width: 100%;
    left: 0;
    padding: 50px 0 20px 50px;
    text-align: left;
  }
  .alm-timeline__item--left  .alm-timeline__date,
  .alm-timeline__item--right .alm-timeline__date {
    top: 12px;
    left: 40px;
    right: auto;
  }
  .alm-timeline__item--left  .alm-timeline__date::before,
  .alm-timeline__item--right .alm-timeline__date::before {
    left: -28px;
    right: auto;
  }
}

.sppb-progress {
  margin: 12px 0;
}
.sppb-progress label { display: block; font-weight: 600; margin-bottom: 4px; }
.sppb-progress progress {
  width: 100%;
  height: 8px;
  border: 0;
  border-radius: 4px;
  background: #eee;
}
.sppb-progress progress::-webkit-progress-bar { background: #eee; border-radius: 4px; }
.sppb-progress progress::-webkit-progress-value { background: var(--color-accent); border-radius: 4px; }
.sppb-progress progress::-moz-progress-bar { background: var(--color-accent); border-radius: 4px; }

/* Icons group / single icon */
.sppb-icons-group {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: center;
  align-items: center;
  margin: 16px 0;
}
.sppb-icons-group__item {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(0,0,0,.04);
  font-size: 20px;
  color: var(--color-dark);
  transition: background .2s, transform .2s, color .2s;
}
.sppb-icons-group__item:hover {
  background: var(--color-accent);
  color: #fff;
  transform: translateY(-2px);
}
.sppb-icon-wrap { text-align: center; margin: 16px 0; }
.sppb-icon { display: inline-block; }

/* SPPB text alignment helpers */
.sppb-text-center { text-align: center; }
.sppb-text-left   { text-align: left; }
.sppb-text-right  { text-align: right; }

/* Video embed (YouTube responsive 16:9) */
.sppb-video {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  margin: 0 0 1.5rem;
  background: #000;
}
.sppb-video iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* Animated number */
.sppb-anum { text-align: center; margin: 12px 0; }
.sppb-anum__value {
  font-size: 3rem;
  font-weight: 800;
  line-height: 1;
  color: var(--color-accent);
}
.sppb-anum__label {
  margin-top: 8px;
  font-size: .8rem;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--color-muted);
}

/* Pie progress (CSS-only ring) */
.sppb-pie {
  --pie-color: var(--color-accent);
  --pie-size: 80px;
  --pie-val: 100;
  text-align: center;
  margin: 12px auto;
}
.sppb-pie__inner {
  width: var(--pie-size);
  height: var(--pie-size);
  border-radius: 50%;
  background: conic-gradient(var(--pie-color) calc(var(--pie-val) * 1%), #eaeaea 0);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
.sppb-pie__inner::before {
  content: "";
  position: absolute;
  inset: 6px;
  background: #fff;
  border-radius: 50%;
}
.sppb-pie__inner i {
  position: relative;
  font-size: calc(var(--pie-size) * .4);
  color: #666;
}
.sppb-pie__title {
  margin-top: 8px;
  font-size: .85rem;
  text-transform: uppercase;
  letter-spacing: .1em;
}

/* On dark/accent rows, swap pie + anum to white */
.sppb-row--is-dark .sppb-anum__value,
.sppb-row--is-dark .sppb-anum__label { color: #fff; }
.sppb-row--is-dark .sppb-pie { --pie-color: #fff; }
.sppb-row--is-dark .sppb-pie__inner::before { background: transparent; }
.sppb-row--is-dark .sppb-pie__inner i { color: #fff; }

/* Animated headlines (no JS — show all words separated) */
.sppb-headlines {
  text-align: center;
  font-size: 2rem;
  font-weight: 100;
  letter-spacing: .04em;
  margin: 30px 0;
  color: inherit;
}
.sppb-cycle {
  font-weight: 700;
  color: var(--color-accent);
}

/* Carousel / slick — render as static grid */
.sppb-carousel {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 20px;
  align-items: center;
  margin: 20px 0;
}
.sppb-carousel__item img {
  width: 100%;
  height: auto;
  border-radius: 4px;
  filter: grayscale(.2);
  transition: filter .25s, transform .25s;
}
.sppb-carousel__item:hover img {
  filter: grayscale(0);
  transform: scale(1.03);
}

/* Lightbox grid */
.sppb-lightbox-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 8px;
  margin: 20px 0;
}
.sppb-lightbox-grid img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 4px;
  transition: transform .25s, opacity .25s;
}
.sppb-lightbox-grid a:hover img { transform: scale(1.04); opacity: .9; }

/* Modal (collapsible) */
.sppb-modal { margin: 16px 0; }
.sppb-modal > summary {
  list-style: none;
  cursor: pointer;
  display: inline-block;
}
.sppb-modal > summary::-webkit-details-marker { display: none; }
.sppb-modal__body {
  margin-top: 16px;
  padding: 24px;
  background: #fafafa;
  border-radius: 4px;
}

/* Feature box */
.sppb-feature { margin: 16px 0; }
.sppb-feature__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  margin-bottom: 8px;
  background: rgba(54,163,191,.1);
  border-radius: 50%;
}
.sppb-feature--pos-left .sppb-feature__icon { float: left; margin-right: 12px; margin-bottom: 0; }
.sppb-feature--pos-left::after { content: ""; display: block; clear: both; }
.sppb-feature__title { margin: 0 0 4px; }
.sppb-feature__img { width: 100%; height: auto; margin-bottom: 12px; }

/* Google Map */
.sppb-gmap {
  position: relative;
  margin: 16px 0;
  border-radius: 4px;
  overflow: hidden;
}
.sppb-gmap__info {
  position: absolute;
  bottom: 12px;
  left: 12px;
  background: rgba(255,255,255,.95);
  padding: 8px 12px;
  border-radius: 3px;
  font-size: .85rem;
  font-weight: 600;
}

/* Contact form */
.sppb-contact {
  max-width: 500px;
  margin: 20px auto;
}
.sppb-contact input,
.sppb-contact textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--color-border);
  border-radius: 3px;
  font-family: inherit;
  font-size: .95rem;
  background: #fff;
}
.sppb-contact input:focus,
.sppb-contact textarea:focus {
  outline: none;
  border-color: var(--color-accent);
}
.sppb-contact button { width: 100%; padding: 14px; font-size: 1rem; }

/* ===========================================================
   Footer — slim copyright row with chevron pattern on top
   =========================================================== */
.site-footer {
  background-color: #1a1a1a;
  color: #9c9c9c;
  font-size: .85rem;
  text-align: center;
  margin-top: 0;
}
.site-footer::before {
  content: "";
  display: block;
  height: 50px;
  background: url("assets/images/footer-bg.png") repeat-x center top;
  background-size: auto 50px;
}
.site-footer .container { padding: 18px 16px; }
.site-footer a { color: #ffffff; }
.site-footer a:hover { color: var(--color-accent); }

/* ===========================================================
   404 / Search / Misc
   =========================================================== */
.error-404, .no-results {
  padding: 80px 0;
  text-align: center;
}
.search-form {
  display: flex;
  max-width: 400px;
  margin: 0 auto;
}
.search-form input[type="search"] {
  flex: 1;
  padding: 10px 14px;
  border: 1px solid var(--color-border);
  border-right: 0;
  font-family: inherit;
}
.search-form button {
  padding: 10px 18px;
  background: var(--color-accent);
  color: #fff;
  border: 0;
  font-weight: 600;
  cursor: pointer;
}

/* Livello 3 del menu (Alaskan Malamute → Carattere → Essenza) */
.main-nav .sub-menu .sub-menu {
  top: 0;
  left: 100%;
  display: none;
}
.main-nav .sub-menu li {
  position: relative;
}
.main-nav .sub-menu li:hover > .sub-menu,
.main-nav .sub-menu li:focus-within > .sub-menu {
  display: flex;
  flex-direction: column;
}
