/* =========================================================
   Sportway - CSS Refresh (non invasivo)
   ========================================================= */

@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap");

/* Sezione: Variabili brand + base */
:root {
  --sw-blue: #0054c4;
  --sw-red: #e30613;
  --sw-light: #f4f4f4;
  --sw-dark: #212121;
  --sw-muted: #9a9a9a;
  --sw-white: #ffffff;
  --sw-radius-sm: 10px;
  --sw-radius-md: 14px;
  --sw-radius-lg: 20px;
  --sw-shadow-1: 0 8px 24px rgba(0, 0, 0, 0.08);
  --sw-shadow-2: 0 12px 30px rgba(0, 0, 0, 0.14);
  --sw-transition: 220ms ease;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  background: #fafafa;
  color: var(--sw-dark);
  font-family: "Inter", "Roboto", sans-serif;
  line-height: 1.6;
}

h1,
h2,
h3,
h4,
h5 {
  color: var(--sw-dark);
  font-family: "Inter", "Roboto", sans-serif;
  font-weight: 800;
  letter-spacing: -0.01em;
  text-wrap: balance;
}

h1 {
  font-size: clamp(1.9rem, 5vw, 3.2rem);
}

h2 {
  font-size: clamp(1.55rem, 4.4vw, 2.6rem);
}

h3 {
  font-size: clamp(1.2rem, 3.2vw, 1.7rem);
}

p,
li,
label,
input,
textarea,
select,
a {
  font-family: "Inter", "Roboto", sans-serif;
}

a {
  transition: color var(--sw-transition), opacity var(--sw-transition);
}

img {
  border-radius: var(--sw-radius-sm);
}

/* Sezione: Breadcrumbs */
body .breadcrumbs a {
  text-decoration: none !important;
  border: none !important;
}

/* Sezione: Header + navbar */
body #page-header {
  border-bottom: 0;
  position: sticky;
  top: 0;
  z-index: 1200;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(12px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.06);
}

body #site-nav .dropdown-menu,
body #site-nav .nav .dropdown-menu,
body .navbar-nav .dropdown-menu {
  background: #fff;
  border-radius: var(--sw-radius-md) var(--sw-radius-md) var(--sw-radius-md) var(--sw-radius-md);
  overflow: hidden;
}

body #site-nav .dropdown-menu>li>a,
body #site-nav .nav .dropdown-menu>li>a,
body .navbar-nav .dropdown-menu>li>a {
  color: var(--sw-red);
  font-weight: 600;
  padding: 0.65rem 1rem;
}

body #site-nav .dropdown-menu>li>a:hover,
body #site-nav .dropdown-menu>li>a:focus,
body #site-nav .dropdown-menu>.active>a,
body #site-nav .dropdown-menu>.active>a:hover {
  background: rgba(227, 6, 19, 0.08);
  color: var(--sw-red);
}

body #site-nav .dropdown-menu>.disabled>a,
body #site-nav .dropdown-menu>.disabled>a:hover,
body #site-nav .dropdown-menu>.disabled>a:focus {
  color: var(--sw-muted);
}

body #page-header .site-header {
  min-height: 4.4rem;
  padding: 0.8rem 0;
}

body #page-header .site-header .logo img {
  width: clamp(7.2rem, 24vw, 13.5rem);
  transition: transform var(--sw-transition);
}

body #page-header .site-header .logo a:hover img {
  transform: scale(1.03);
}

body #nav-header {
  background: linear-gradient(90deg, var(--sw-blue), var(--sw-red));
}

body #site-nav ul li,
body #site-nav ul li a,
body #site-nav ul li.current-menu-item {
  border: none !important;
  box-shadow: none !important;
  text-decoration: none !important;
}

body #site-nav ul li a {
  color: var(--sw-white);
  border-radius: 999px;
  padding: 0.62rem 0.85rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  transition: background-color var(--sw-transition), transform var(--sw-transition);
}

body #site-nav ul li a:hover,
body #site-nav ul li.current-menu-item>a {
  background-color: rgba(255, 255, 255, 0.18);
  transform: translateY(-1px);
}

body #page-header .site-header .pull span.line,
body #page-header .site-header .pull span.line::before,
body #page-header .site-header .pull span.line::after {
  background: var(--sw-blue);
}

/* Sezione: Hero + slider */
body #hero-slider {
  overflow: hidden;
}

body #hero-slider .item {
  position: relative;
}

body #hero-slider .item::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, rgba(0, 0, 0, 0.52) 0%, rgba(0, 84, 196, 0.28) 55%, rgba(227, 6, 19, 0.22) 100%);
  pointer-events: none;
}

body #hero-slider .caption {
  position: relative;
  z-index: 2;
  padding: 1.2rem;
}

body #hero-slider h2,
body #hero-slider p {
  color: #fff;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.28);
}

body #hero-slider .category {
  border-color: rgba(255, 255, 255, 0.65);
  color: #fff;
  border-radius: 999px;
  backdrop-filter: blur(2px);
}

/* Sezione: Bottoni + CTA */
body .button,
body .woocommerce a.button,
body .woocommerce input.button,
body button[type="submit"],
body input[type="submit"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.8rem 1.8rem;
  line-height: 1;
  border-radius: 999px;
  border: 0;
  font-weight: 800;
  letter-spacing: 0.02em;
  background: linear-gradient(120deg, var(--sw-blue), var(--sw-red));
  color: #fff;
  box-shadow: 0 8px 20px rgba(0, 84, 196, 0.25);
  transition: transform var(--sw-transition), box-shadow var(--sw-transition), filter var(--sw-transition);
}

body .button:hover,
body .woocommerce a.button:hover,
body .woocommerce input.button:hover,
body button[type="submit"]:hover,
body input[type="submit"]:hover {
  transform: translateY(-2px);
  box-shadow: var(--sw-shadow-2);
  filter: saturate(1.06);
}

body .button-red,
body .button-blue,
body .button-call {
  background: linear-gradient(120deg, var(--sw-blue), var(--sw-red));
}

body .link {
  color: var(--sw-blue);
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-weight: 800;
}

body .link:hover {
  color: var(--sw-red);
}

/* Lista Servizi - Style 03 */
body ul.style-03 {
  list-style: none;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin: 1.5rem 0;
}

body ul.style-03 li {
  margin: 0;
}

body ul.style-03 li a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.4rem;
  background-color: var(--sw-blue);
  color: var(--sw-white) !important;
  border-radius: var(--sw-radius-md);
  font-weight: 700;
  font-size: 0.9rem;
  text-decoration: none !important;
  transition: background var(--sw-transition), transform var(--sw-transition), box-shadow var(--sw-transition);
  box-shadow: 0 4px 12px rgba(0, 84, 196, 0.15);
}

body ul.style-03 li a:hover {
  background-color: var(--sw-red);
  transform: translateY(-3px);
  box-shadow: 0 6px 18px rgba(227, 6, 19, 0.2);
}

/* Liste stile 01 (Ancoraggi testuali con freccetta) */
body ul.style-01 {
  list-style: none;
  padding: 0;
}

body ul.style-01 li {
  margin-bottom: 0.6rem;
}

body ul.style-01 li a {
  color: var(--sw-blue) !important;
  text-decoration: none !important;
  font-weight: 700;
  transition: color var(--sw-transition), padding var(--sw-transition);
}

body ul.style-01 li a:hover {
  color: var(--sw-red) !important;
  padding-left: 5px;
}

/* Allineamento colore per le icone/marker del tema */
body ul.style-01 li::before {
  color: inherit !important;
}

@keyframes swPulse {
  0% {
    box-shadow: 0 0 0 0 rgba(227, 6, 19, 0.35);
  }

  70% {
    box-shadow: 0 0 0 12px rgba(227, 6, 19, 0);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(227, 6, 19, 0);
  }
}

body #promo .promo-big .button,
body #newsletter input[type="submit"],
body #newsletter button {
  animation: swPulse 2.8s infinite;
}

body #newsletter input[type="submit"],
body #newsletter button,
body #newsletter .yikes-easy-mc-submit-button {
  background: var(--sw-blue) !important;
  border: 1px solid #003a86 !important;
  color: #fff !important;
  box-shadow: 0 8px 18px rgba(0, 47, 109, 0.35) !important;
}

body #newsletter input[type="submit"]:hover,
body #newsletter button:hover,
body #newsletter .yikes-easy-mc-submit-button:hover {
  background: rgba(0, 47, 109) !important;
  border-color: rgba(0, 47, 109, 0.35) !important;
  color: #fff !important;
}

/* Sezione: Card promo/prodotti/blog/marchi */
body #promo .promo,
body #promo .promo-big,
body #prodotti .prodotto,
body #blog article,
body #punti-vendita .punto-vendita,
body #in-evidenza .notizia-evidenza,
body .marchio,
body .brand [class^="col-"] {
  background: #fff;
  border-radius: var(--sw-radius-md);
  box-shadow: var(--sw-shadow-1);
  transition: transform var(--sw-transition), box-shadow var(--sw-transition);
}

body #promo .promo,
body #blog article,
body #punti-vendita .punto-vendita,
body #in-evidenza .notizia-evidenza,
body .marchio {
  padding: 1rem;
  margin-bottom: 2.2rem;
}

body #promo .promo:hover,
body #promo .promo-big:hover,
body #prodotti .prodotto:hover,
body #blog article:hover,
body #punti-vendita .punto-vendita:hover,
body #in-evidenza .notizia-evidenza:hover,
body .marchio:hover {
  transform: translateY(-6px);
  box-shadow: var(--sw-shadow-2);
}

body #prodotti h2,
body #punti-vendita h2,
body #in-evidenza h2,
body #blog h2 {
  color: var(--sw-blue);
}

body #prodotti .prodotto .border {
  border: 1px solid #e8e8e8;
  border-radius: var(--sw-radius-sm);
}

/* Sezione: Newsletter + form */
body #newsletter {
  background: linear-gradient(125deg, #8f0010 0%, #c30414 52%, #e30613 100%);
  border-radius: var(--sw-radius-lg);
  margin: 1.2rem auto;
  max-width: 95%;
  overflow: hidden;
  box-shadow: var(--sw-shadow-2);
}

body #newsletter h2,
body #newsletter p,
body #newsletter label {
  color: #fff;
}

body #newsletter .red-background {
  opacity: 0.35;
}

body #newsletter input[type="text"],
body #newsletter input[type="email"],
body input[type="text"],
body input[type="email"],
body input[type="tel"],
body input[type="password"],
body textarea,
body select {
  border: 1px solid #d5d8de;
  border-radius: 12px;
  min-height: 2.9rem;
  padding-left: 0.9rem;
  padding-right: 0.9rem;
  transition: border-color var(--sw-transition), box-shadow var(--sw-transition);
}

body #newsletter input[type="text"]:focus,
body #newsletter input[type="email"]:focus,
body input[type="text"]:focus,
body input[type="email"]:focus,
body input[type="tel"]:focus,
body input[type="password"]:focus,
body textarea:focus,
body select:focus {
  border-color: var(--sw-blue);
  box-shadow: 0 0 0 3px rgba(0, 84, 196, 0.15);
  outline: 0;
}

/* Sezione: Footer */
body #page-footer {
  /*background: #111827;
  color: #d2d6de;*/
  border-top: 0;
  margin-top: 2.2rem;
}

body #page-footer h5 {
  /*color: #fff;*/
  letter-spacing: 0.01em;
}

body #page-footer a:hover {
  color: #e30613;
  text-decoration: none;
}

body #page-footer .footer-block {
  border-color: rgba(255, 255, 255, 0.14);
}

body ul.social-follow li a {
  border-radius: 999px;
  height: 1.9rem;
  width: 1.9rem;
  line-height: 1.9rem;
  border-color: rgba(255, 255, 255, 0.4);
  transition: transform var(--sw-transition), background-color var(--sw-transition);
}

body ul.social-follow li a:hover {
  transform: translateY(-2px);
  color: var(--sw-red);
}

body #backtotop {
  background: linear-gradient(120deg, var(--sw-blue), var(--sw-red));
}

/* Sezione: Micro-layout fluidi */
body #promo .row {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

body #promo .row>[class*="col-"] {
  flex: 1 1 280px;
}

/* Sezione: Blog - banner servizi stacked */
body #blog .group-banner {
  margin-top: 0.4rem;
}

body #blog .group-banner>.banner {
  display: block !important;
  float: none !important;
  clear: both !important;
  width: 100% !important;
  margin: 0 !important;
}

body #blog .group-banner>.banner+.banner {
  margin-top: 1.35rem !important;
}

body #blog .group-banner>.banner a,
body #blog .group-banner>.banner img {
  display: block;
  width: 100%;
  height: auto;
}

/* Sezione: Tablet */
@media only screen and (min-width: 768px) {
  body #hero-slider .caption {
    padding: 1.8rem;
  }

  body #newsletter {
    max-width: 92%;
    margin: 2rem auto;
  }

  body #promo .promo,
  body #blog article {
    padding: 1.2rem;
  }
}

@media only screen and (max-width: 767px) {
  body #promo .row {
    display: block;
    gap: 0;
  }

  body #promo .row>[class*="col-"] {
    flex: none;
    width: auto;
  }

  body #promo,
  body #promo-slider,
  body #promo-slider .owl-stage-outer {
    overflow-x: hidden;
  }

  body #promo-slider .promo img {
    display: block;
    max-width: 100%;
    height: auto;
  }

  body #hero-slider {
    overflow-x: hidden;
  }
}

/* Sezione: Desktop */
@media only screen and (min-width: 1024px) {
  body #page-header .site-header {
    min-height: 5.3rem;
  }

  body #site-nav {
    font-size: 0.88rem;
  }

  body #hero-slider .item {
    background-attachment: fixed;
  }

  body #promo {
    padding-top: 2.4rem;
  }

  body #page-footer {
    padding-top: 2rem;
  }
}

/* Sezione: Utility (Nascondere elementi vuoti/non usati) */
body .alert {
  display: none !important;
}

/* Sezione: Marchi - Categorie espandibili (CSS-only con checkbox) */
/* Checkbox nascosto */
body .brand .brand-toggle {
  display: none;
}

/* Nasconde i marchi di default preservando il layout Bootstrap 3 */
body .brand .marchi.row {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, opacity 0.3s ease;
  margin: 0;
  padding-top: 0;
  padding-bottom: 0;
}

/* Mostra i marchi quando il checkbox è checked */
body .brand .brand-toggle:checked ~ .marchi.row {
  max-height: 5000px;
  opacity: 1;
  overflow: visible;
  margin-top: initial;
  margin-bottom: initial;
  padding-top: initial;
  padding-bottom: initial;
}

/* Mantiene il display originale di Bootstrap 3 per .row */
body .brand .brand-toggle:checked ~ .marchi.row {
  display: block !important;
}

/* Stili per i titoli cliccabili (label) */
body .brand h2 label {
  color: inherit;
  text-decoration: none;
  cursor: pointer;
  display: block;
  position: relative;
  padding: 0.8rem 2.5rem 0.8rem 0;
  border-bottom: 2px solid #e8e8e8;
  transition: color 0.2s ease, border-color 0.2s ease;
  font-weight: inherit;
  margin: 0;
}

body .brand h2 label:hover {
  color: var(--sw-blue);
  border-color: var(--sw-blue);
}

body .brand h2 label::after {
  content: "+";
  position: absolute;
  right: 0.8rem;
  font-size: 1.2em;
  font-weight: 700;
  transition: content 0.3s ease;
}

body .brand .brand-toggle:checked ~ h2 label {
  color: var(--sw-blue);
  border-color: var(--sw-blue);
}

body .brand .brand-toggle:checked ~ h2 label::after {
  content: "\2212";
}

/* Sezione: Desktop - Titoli categorie più leggibili */
@media only screen and (min-width: 1024px) {
  body .brand h2 label {
    font-size: 2.2rem;
    font-weight: 800;
    padding: 1.2rem 3rem 1.2rem 0;
    line-height: 1.3;
  }

  body .brand h2 label::after {
    right: 1rem;
    font-size: 1.5rem;
  }
}

/* Sezione: Punti Vendita - Frecce carosello senza quadrato */
body #punti-vendita-slider.owl-theme .owl-nav [class*="owl-"] {
  border: none;
  background: transparent;
  color: #ababab;
  font-size: 1.5rem;
  width: auto;
  height: auto;
  padding: 0.5rem 1rem;
}

body #punti-vendita-slider.owl-theme .owl-nav [class*="owl-"]:hover {
  border: none;
  background: transparent;
  color: var(--sw-blue);
}

/* Sezione: Riduzione motion per accessibilita */
@media (prefers-reduced-motion: reduce) {

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}