/* =========================================================
   Specia Racing — tema replica grafica Astro (100%)
   Fonti: src/styles/global.css + componenti scoped Astro
   ========================================================= */

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

:root {
  --primary: #e3000f;
  --oro: #c1a776;
  --bianco: #ffffff;
  --nero: #0b0b0b;
  --grigio-chiaro: #f5f5f5;
  --max-width: 1200px;
  --font-body: "Barlow", "Helvetica Neue", Arial, sans-serif;
  --font-heading: "Orbitron", "Helvetica Neue", Arial, sans-serif;
  --SiteWidth: 1280px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--bianco);
  background: #000;
  overflow-x: hidden;
}

body.admin-bar .site-header {
  top: 32px;
}

@media screen and (max-width: 782px) {
  body.admin-bar .site-header { top: 46px; }
}

h1, h2, h3, h4, h5, h6 {
  font-size: 36px;
  font-family: var(--font-heading);
  line-height: 35px;
  font-weight: 900;
  text-transform: uppercase;
}

p {
  margin: 0 0 1em;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

.screen-reader-text {
  clip: rect(1px, 1px, 1px, 1px);
  position: absolute !important;
  height: 1px;
  width: 1px;
  overflow: hidden;
}

/* =========================================================
   HEADER
   ========================================================= */

.site-header {
    color: var(--bianco);
    display: flex;
    height: 200px;
    position: absolute;
    z-index: 2;
    width: 100%;
    background: linear-gradient(180deg, rgb(0 0 0 / .98) 0%, rgb(0 0 0 / .86) 48%, rgb(0 0 0 / .5) 78%, transparent 100%);
}

.site-topbar {
  width: 100%;
  height: 42px;
  background: var(--primary);
  position: absolute;
  top: 0;
  left: 0;
}

.site-topbar-inner {
  max-width: var(--SiteWidth);
  height: 100%;
  margin: 0 auto;
  padding: 0 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #eaeaea;
  font-size: 12px;
  letter-spacing: .4px;
}

.site-language-switch {
  display: inline-flex;
  gap: 8px;
}

.site-language-switch a {
  background: rgba(255, 255, 255, .12);
  padding: 6px 8px;
  border-radius: 999px;
  font-size: 12px;
  line-height: 1;
}

.site-language-switch a.active {
  background: var(--primary);
  color: #fff;
}

.site-header-fixed {
  background-color:#000;
  position: fixed;
}

.site-header-fixed-animate {
  animation: headerFadeDown 1000ms ease both;
}

@keyframes headerFadeDown {
  from { transform: translateY(-20px); }
  to { transform: translateY(0); }
}

.site-header nav {
  width:100%;
  max-width: 1440px;
  justify-content: space-between;
  margin: 0 auto;
  padding: 16px;
  padding-top: 52px;
  display: flex;
  align-items: center;
  gap: clamp(8px, 1.2vw, 18px);
  flex-wrap: nowrap;
}

.header-brand { flex: 0 0 clamp(110px, 16vw, 205px); width: clamp(110px, 16vw, 205px); }
.header-brand a { display: block; width: 100%; }
.header-brand .MenuLogo { display: block; width: 100%; height: auto; aspect-ratio: 201 / 50.5; object-fit: contain; }
.site-header .cart_toggle_button { flex-shrink: 0; }

.MenuLogo {
  height: 65px;
  width: auto;
}

.MenuItemsContainer {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  min-width: 0;
  gap: clamp(2px, .5vw, 8px);
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scrollbar-width: thin;
  scrollbar-color: #555 transparent;
}

.MenuItemsContainer .menu_item {
  flex: 0 0 auto;
  white-space: nowrap;
  font-size: 13px;
  letter-spacing: .5px;
  padding: 10px 12px;
}

.MenuItemsContainer .menu_item:focus-visible { outline: 2px solid #fff; outline-offset: -2px; }

.MainButton {
    border-radius: 20px;
    padding: 20px 35px;
    border: none;
    font-size: 18px;
    background-color: var(--primary);
    color:#fff;
    font-weight: bold;
    width: fit-content;
    transition: all .3s;
    cursor: pointer;
    display: inline-block;
}

.hamburger_button {
  display: none;
  border: 0;
  background: transparent;
  padding: 8px;
  cursor: pointer;
}

.menu_item {
    display: inline-flex;
    align-items: center;
    padding: 10px 20px;
    border-radius: 999px;
    transition: all .6s ease-in-out;
    letter-spacing: 1px;
    font-size: 15px;
    font-family: var(--font-heading);
    font-weight: 400;
    color:#fff;
    text-transform: uppercase;
    font-weight: bold;
}

.menu_item:hover {
  background: #0000004d;
}

.current_menu_item {
    border-bottom: 4px solid var(--primary);
    border-radius: 0;
}

.site-header .MenuItemsContainer .menu_item_shop {
  background: var(--primary);
  color: #fff;
  border: 0;
  border-radius: 999px;
  padding: 12px 24px;
}

.site-header .MenuItemsContainer .menu_item_shop:hover {
  background: #bc0010;
  color: #fff;
}

.site-header .MenuItemsContainer .menu_item_shop:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 4px;
}

.mburger {
  width: 32px;
  height: 24px;
  position: relative;
}

.mburger b {
  position: absolute;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--bianco);
  border-radius: 2px;
  transition: transform 200ms ease, opacity 200ms ease;
}

.mburger b:nth-child(1) { top: 0; }
.mburger b:nth-child(2) { top: 10px; }
.mburger b:nth-child(3) { top: 20px; }

.mburger.is-active b:nth-child(1) { transform: translateY(10px) rotate(45deg); }
.mburger.is-active b:nth-child(2) { opacity: 0; }
.mburger.is-active b:nth-child(3) { transform: translateY(-10px) rotate(-45deg); }

@media (max-width: 980px) {

  .site-header { z-index: 20; }
  .site-header nav { justify-content: flex-end; }
  .header-brand { margin-right: auto; }

  .MenuItemsContainer {
    display: none;
    position: absolute;
    inset: 100% 0 auto;
    width: 100%;
    max-height: calc(100dvh - 200px);
    overflow-y: auto;
    overflow-x: hidden;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 16px 24px 24px;
    background: #000;
    box-shadow: 0 20px 32px rgb(0 0 0 / .4);
    border-top: 1px solid #252525;
  }

  .MenuItemsContainer.is-open { display: flex; }

  .MenuItemsContainer .menu_item {
    color: #fff;
    font-size: 14px;
    padding: 16px 12px;
    border-radius: 0;
    border-bottom: 1px solid #252525;
  }

  .MenuItemsContainer .current_menu_item { background: #191919; border-left: 3px solid var(--primary); }
  .site-header .cart_toggle_button { order: 2; }
  .hamburger_button { display: inline-flex; flex: 0 0 44px; order: 3; width: 44px; height: 44px; color: #fff; }
  .hamburger_button:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
  .hamburger_button b { left: 10px; width: 24px; height: 2px; }
  .hamburger_button b:nth-child(1) { top: 11px; }
  .hamburger_button b:nth-child(2) { top: 20px; }
  .hamburger_button b:nth-child(3) { top: 29px; }
  .hamburger_button.is-active b:nth-child(1) { transform: translateY(9px) rotate(45deg); }
  .hamburger_button.is-active b:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }
}

@media (max-width: 640px) {
  .site-topbar-extra { display: none; }
  .menu_item { padding: 8px 12px; }
}

/* =========================================================
   CARRELLO LATERALE (SIDECART)
   ========================================================= */

.shop_notice {
  position: fixed;
  left: 50%;
  bottom: 18px;
  width: max-content;
  max-width: calc(100vw - 32px);
  text-align: center;
  z-index: 9999;
  background: #0f5f1e;
  color: #fff;
  font-weight: 700;
  border-radius: 10px;
  padding: 10px 14px;
  transform: translate(-50%, 20px);
  opacity: 0;
  transition: all 200ms ease;
  pointer-events: none;
}

.shop_notice_visible { transform: translate(-50%, 0); opacity: 1; }
.shop_notice_error { background: #8a1e1e; }

.cart_toggle_button {
  width: 52px;
  height: 52px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
  cursor: pointer;
}

.cart_toggle_button svg { width: 22px; height: 22px; fill: currentColor; }

.cart_badge {
  position: absolute;
  top: -5px;
  right: -5px;
  background: var(--primary);
  color: #fff;
  border-radius: 999px;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
}

.cart_badge.is-empty { opacity: .65; }

.sidecart_overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  z-index: 998;
}

.sidecart_panel {
  position: fixed;
  right: 0;
  top: 0;
  width: min(420px, 100vw);
  height: 100dvh;
  background: #fff;
  z-index: 999;
  transform: translateX(calc(100% + 24px));
  transition: transform 280ms ease;
  display: grid;
  grid-template-rows: auto 1fr auto;
  color: #111;
  visibility: hidden;
  pointer-events: none;
}

body.sidecart-open .sidecart_panel {
  transform: translateX(0);
  visibility: visible;
  pointer-events: auto;
}

body.sidecart-open { overflow: hidden; }

.sidecart_head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px;
  border-bottom: 1px solid #ebebeb;
}

.sidecart_head h3 { margin: 0; font-size: 24px; }

.sidecart_head button {
  border: 0;
  background: #efefef;
  width: 36px;
  height: 36px;
  border-radius: 999px;
  cursor: pointer;
  font-size: 24px;
  line-height: 1;
}

.sidecart_body { overflow: auto; padding: 16px; display: grid; gap: 12px; align-content: start; }

.sidecart_line { display: grid; grid-template-columns: 88px 1fr; gap: 10px; }

.sidecart_line img,
.sidecart_thumb_placeholder {
  width: 88px;
  height: 88px;
  border-radius: 12px;
  background: #efefef;
  object-fit: contain;
}

.sidecart_line p { margin: 4px 0; }

.sidecart_qty_controls {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 8px 0;
  flex-wrap: wrap;
}

.sidecart_qty_controls button {
  border: 0;
  border-radius: 8px;
  padding: 6px 10px;
  cursor: pointer;
  background: #efefef;
  font-weight: 700;
}

.sidecart_qty_controls input {
  width: 56px;
  border: 1px solid #d8d8d8;
  border-radius: 8px;
  padding: 6px;
}

.sidecart_remove {
  background: transparent !important;
  text-decoration: underline;
  color: #b52121;
  padding: 0 !important;
}

.sidecart_line_title { font-weight: 700; }

.sidecart_total {
  margin-top: 8px;
  padding-top: 12px;
  border-top: 1px solid #ececec;
}

.sidecart_actions {
  padding: 16px;
  border-top: 1px solid #ececec;
  display: grid;
  gap: 10px;
}

.sidecart_actions a {
  border-radius: 10px;
  padding: 12px;
  text-align: center;
  font-weight: 700;
  border: 1px solid #111;
}

.sidecart_checkout_button {
  background: #21843b;
  color: #fff;
  border-color: #21843b !important;
}

@media (max-width: 640px) {
  .cart_toggle_button { order: 3; }
}

/* =========================================================
   PAGE HEADER
   ========================================================= */

.page_header {
  position: relative;
  isolation: isolate;
  min-height: 440px;
  display: flex;
  background-size: cover;
  background-position: center;
  color: var(--bianco);
  margin-bottom:50px;
}

.page_header::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgb(0 0 0 / .48);
  pointer-events: none;
  z-index: 0;
}

.page_header_inner {
    position: relative;
    z-index: 1;
    min-width: 0;
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 200px 16px 32px;
    display: flex;
    flex-direction: column;
    align-items: start;
    justify-content: center;
}

.page_header_inner h1 {
  max-width: 100%;
  overflow-wrap: anywhere;
  font-size:60px;
  line-height: 1.3;
  margin:0;
  margin-bottom:20px;
  margin-top:30px;
}

.page_header_inner p {
  margin: 0;
  max-width: calc(var(--max-width)/2);
  font-size: 22px;
  line-height: 1.65;
}

@media (max-width: 640px) {
  .page_header_inner { padding: 160px 20px 32px; }
  .page_header_inner h1 { font-size: clamp(32px, 8vw, 44px); margin: 0 0 16px; }
  .page_header_inner p { max-width: 100%; font-size: 18px; line-height: 1.5; }
}

/* =========================================================
   BLOCK: SLIDER (Swiper)
   ========================================================= */

.content_block { position: relative; }
.content_block_slider_block { margin: 0; }

.slider_block {
  margin:0;
  display: grid;
  gap: 16px;
  min-height: max(440px, calc(80vh - 120px));
  height: auto;
}

.slider_block > .swiper-wrapper { height: auto; }

.slider_block .single_slide {
  min-height: max(440px, calc(80vh - 120px));
  height: auto;
  padding: 24px;
  background-size: cover;
  background-position: center;
  color: var(--bianco);
  position: relative;
  overflow: hidden;
}

.single_slide h1 {
  font-size:80px;
  line-height: 80px;
  text-shadow: 12px 6px 15px #000;
  max-width: calc(var(--max-width)/1.4);
  margin:0;
}

.single_slide h2 {
  font-size:25px;
  line-height: 30px;
  max-width: calc(var(--max-width)/2);
}

.slider_block .single_slide > .swiper-slide-container {
  position: relative;
  z-index: 2;
}

.slider_block .single_slide::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(180deg, rgb(0 0 0 / .4), rgb(0 0 0 / .55));
}

.slider_block .single_slide > .single_slide_bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.swiper-slide-container {
  margin-top: 120px;
  width: min(100%, var(--SiteWidth));
  overflow-wrap: anywhere;
}

.single_slide {
  text-align: left;
  padding: 20px;
  background-size: cover;
  background-position: center;
  min-height: 240px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
}

.slide_image_sr { display: none; }

.slider_block .swiper-button-prev,
.slider_block .swiper-button-next { color: #fff; }

.slider_button { border: none; cursor: pointer; }

@media (max-width: 640px) {
  .single_slide h1 { font-size:45px; line-height:50px; }
}

/* =========================================================
   SLIDER — partner tecnici in rotazione (marquee) sotto la slide
   ========================================================= */

/* =========================================================
   BLOCK: HERO
   ========================================================= */

.hero_block {
  color:#fff;
  display: flex;
  border-radius: 8px;
  max-width: 1360px;
  width: calc(100% - 80px);
  gap: 24px;
  margin: auto;
  margin-bottom:64px;
  background: transparent !important;
}

.hero_block .colonna { flex: 1; }

.hero_block_inverted { flex-direction: row-reverse; }

.hero_block .colonna_testo {
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: #1a1a1aa1;
  color: #fff;
  padding: 50px;
  border-radius: 20px;
}

.hero_block .colonna_immagine {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  position: relative;
}

.hero_block_inverted .colonna_immagine { justify-content: flex-end; }

.hero_block .colonna_testo .title {
  font-size: 38px;
  font-family: var(--font-heading);
  line-height: 40px;
  font-weight: 900;
  text-transform: uppercase;
  margin-bottom: 36px;
}

.hero_block .colonna_testo h3 {
  margin: 0 0 16px;
  font-size: 24px;
  line-height: 30px;
}

.hero_text {
  margin: 0 0 30px;
  line-height: 24px;
  font-size: 19px;
}

.hero_text p { margin: 0 0 12px; }
.hero_text p:last-child { margin-bottom: 0; }

.hero_image {
  max-width: 100%;
  width: 100%;
  margin-left: 0;
  height: auto;
  display: block;
  object-fit: cover;
  height: 100%;
  object-position: center;
  border-radius: 8px;
}

.hero_decor {
  position: absolute;
  bottom: -29px;
  left: 50%;
  transform: translateX(-50%) rotate(0deg);
  width: 65%;
  height: 507px;
  background: #e3000f;
  border-radius: 20px;
  z-index: -1;
  animation: decorRotate 0.8s ease-out 0.3s forwards;
}

.hero_block_inverted .hero_decor { animation: decorRotateInverted 0.8s ease-out 0.3s forwards; }

@keyframes decorRotate {
  from { transform: translateX(-50%) rotate(0deg); }
  to { transform: translateX(-50%) rotate(3deg); }
}

@keyframes decorRotateInverted {
  from { transform: translateX(-50%) rotate(0deg); }
  to { transform: translateX(-50%) rotate(-3deg); }
}

@media (max-width: 768px) {
  .hero_block {
    flex-direction: column;
    width: calc(100% - 40px);
    gap: 0;
    border-radius: 24px;
    margin-bottom: 40px;
  }

  .hero_block_inverted { flex-direction: column; }
  .hero_block .colonna_immagine { height: 300px; }

  .hero_image {
    max-width: 100%;
    margin-left: 0;
    height: 100%;
    object-position: center;
    border-radius: 24px 24px 0 0;
  }

  .hero_block .colonna_testo {
    padding: 24px;
    border-radius: 0 0 24px 24px;
  }

  .hero_block .colonna_testo .title { font-size: 28px; line-height: 28px; }
  .hero_text { font-size: 16px; line-height: 22px; }
  .hero_decor { display: none; }
}

/* Override editoriali (come CSS globale Astro) */

#block-hero_block-14 .colonna_immagine img {
    height: 100%;
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
    margin-left:0;
}

#block-hero_block-14 .colonna_testo {
  background-color:transparent;
  color:#fff;
}

#block-hero_block-14 .MainButton {
  padding:0;
  color:#fff;
  margin-top:40px;
}

#block-hero_block-15 .colonna_testo {
  background-color:transparent;
  color:#fff;
}

#block-hero_block-15 .MainButton { margin-top:40px; }

#block-hero_block-15 .colonna_immagine img {
    height: 100%;
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
    margin-right:0;
}

#block-hero_block-15 .hero_block { height:550px; }

#block-cards_block-4 {
  position: relative;
  z-index: 1;
  margin-top: -120px;
}

/* =========================================================
   BLOCK: TITLE
   ========================================================= */

.title_block {
  margin: 32px 0 16px;
  border-left: 6px solid var(--oro);
  padding: 30px 24px;
  text-align: left;
}

.title_block h1 {
  margin: 0;
  color: var(--primary);
}

/* =========================================================
   BLOCK: CARDS
   ========================================================= */

.cards_block {
  padding: 40px 20px 20px;
}

.cards_block_inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

.cards_block_title {
  margin: 0 0 24px;
  color: var(--bianco);
  font-size: clamp(28px, 4vw, 42px);
}

.cards_grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.cards_card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 55px 40px;
  background: var(--bianco);
  border-radius: 18px;
  color: var(--nero);
  min-height: 100%;
  transition: all .4s ease-out;
}

.cards_card:hover { scale:1.03; }

a.cards_card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 30px rgba(0, 0, 0, 0.15);
}

.cards_card_media {
  overflow: hidden;
  border-radius: 12px;
  aspect-ratio: 4 / 3;
  background: #fff;
}

.cards_card_media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.cards_card_title {
  margin: 4px 0 0;
  font-size: 33px;
  line-height: 33px;
  text-align: center;
}

.cards_card_subtitle {
  margin: 0;
  font-size: 16px;
  line-height: 1.45;
  color: rgba(0, 0, 0, 0.75);
}

.cards_card_link {
  margin-top: auto;
  align-self: flex-start;
  font-weight: 600;
  text-underline-offset: 2px;
  width: 100%;
  text-align: center;
  color: var(--primary);
  text-decoration: none;
}

@media (max-width: 1024px) {
  .cards_grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 640px) {
  .cards_grid { grid-template-columns: 1fr; }
}

/* =========================================================
   BLOCK: SERVICES GRID
   ========================================================= */

.services-section { padding: clamp(48px, 6vw, 88px) 40px; background: #101010; color: #f5f5f5; }
.services-inner { max-width: 1360px; margin: 0 auto; }
.services-heading { max-width: 670px; margin-bottom: 36px; }
.services-eyebrow { display: block; margin-bottom: 12px; color: #a0a0a0; font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .18em; }
.services-heading h2 { margin: 0 0 14px; font-family: var(--font-body); font-size: clamp(28px, 3vw, 40px); font-weight: 600; text-transform: none; line-height: 1.15; letter-spacing: -.025em; }
.services-heading p { margin: 0; color: #aaa; font-size: 18px; line-height: 1.65; }
.services-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.service-card { display: flex; flex-direction: column; align-items: flex-start; gap: 20px; padding: clamp(26px, 3vw, 36px); border: 0; border-radius: 8px; background: #1a1a1a; box-shadow: 0 12px 32px rgb(0 0 0 / .16); transition: transform .2s ease, background .2s ease, box-shadow .2s ease; }
.service-card:hover { transform: translateY(-3px); background: #202020; box-shadow: 0 18px 40px rgb(0 0 0 / .24); }
.service-icon { display: flex; align-items: center; justify-content: flex-start; color: #fff; background: none; }
.service-icon svg { width: auto; height: 50px; }
.service-card h3 { margin: 0; font-family: var(--font-body); font-size: 23px; line-height: 1.3; text-transform: none; font-weight: 600; letter-spacing: -.015em; }
.service-description { color: #b3b3b3; font-size: 16px; line-height: 1.75; }
.service-description p { margin: 0 0 12px; }
.service-description p:last-child { margin-bottom: 0; }
.service-link { margin-top: auto; padding-top: 6px; font-size: 15px; font-weight: 600; color: #fff; }
.service-link:hover { text-decoration: underline; }
.service-link:focus-visible { outline: 2px solid #fff; outline-offset: 5px; }
@media (max-width: 980px) { .services-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; } }
@media (max-width: 600px) { .services-section { padding: 40px 20px; } .services-grid { grid-template-columns: 1fr; gap: 18px; } .services-heading { margin-bottom: 26px; } }
@media (prefers-reduced-motion: reduce) { .service-card { transition: none; } .service-card:hover { transform: none; } }

/* =========================================================
   BLOCK: PARTNERS (griglia)
   ========================================================= */

.partners_block {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 20px;
  background: #000;
}

.partners_grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}

.partner_card {
  height: 170px;
  background: #000;
  border: 1px solid #222;
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  transition: transform 200ms ease, background-color 200ms ease, border-color 200ms ease;
  overflow: hidden;
}

.partner_card:hover,
.partner_card:focus-visible {
  background: #fff;
  border-color: #fff;
  transform: translateY(-3px);
}

.partner_card img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  object-fit: contain;
  filter: grayscale(1) invert(1);
  mix-blend-mode: screen;
  transition: filter 200ms ease;
}

.partner_card:hover img,
.partner_card:focus-visible img {
  filter: none;
  mix-blend-mode: normal;
}

.partner_card span { color: #fff; font-weight: 700; text-align: center; }
.partner_card:hover span, .partner_card:focus-visible span { color: #000; }

@media (prefers-reduced-motion: reduce) {
  .partner_card, .partner_card img { transition: none; }
  .partner_card:hover, .partner_card:focus-visible { transform: none; }
}

@media (max-width: 1024px) { .partners_grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 768px) { .partners_grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 480px) { .partners_grid { grid-template-columns: 1fr; } }

/* =========================================================
   BLOCK: PARTNERS CAROUSEL (marquee)
   ========================================================= */

.partners_carousel_section { width: 100%; padding: 32px 0 44px; background: #000; }
.partners_carousel_inner { width: 100%; }
.partners-heading { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 30px; margin-bottom: 20px; padding: 0 40px; color: #aaa; font-size: 12px; letter-spacing: .13em; text-transform: uppercase; }
.partners_carousel { position: relative; overflow-x: auto; padding: 6px 0 14px; }
.partners_carousel_section.is-animated .partners_carousel { overflow: hidden; }
.partners_carousel_section.is-focused .partners_carousel { overflow-x: auto; }
.partners-track { display: flex; width: max-content; }
.partners-group { display: flex; flex: 0 0 auto; align-items: center; justify-content: space-around; gap: 24px; padding-right: 24px; }
.partners-group-copy { display: none; }
.partners_carousel_section.is-animated .partners-group-copy { display: flex; }
.partner_slide {
  flex: 0 0 180px;
  width: 180px;
  height: 88px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px 14px;
}
.partner_slide img { width: auto; height: 100%; max-width: 100%; object-fit: contain; filter: grayscale(1) invert(1); mix-blend-mode: screen; }
.partner_slide span { color: #fff; font-weight: 700; text-align: center; }
.partner_slide:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
@media (max-width: 600px) { .partners_carousel_section { padding: 24px 0 32px; } .partners-heading { padding: 0 20px; } .partner_slide { flex-basis: 140px; width: 140px; height: 72px; } .partners-group { gap: 16px; padding-right: 16px; } }

/* =========================================================
   BLOCK: NEWS
   ========================================================= */

.news_block_section {
  padding: 40px 20px 20px;
  margin-bottom:70px;
}

.news_block_inner { max-width: var(--max-width); margin: 0 auto; }

.news_block_title { margin: 0 0 24px; color: var(--bianco); font-size: clamp(28px, 4vw, 42px); }

.news_block { padding-bottom: 36px; }

.news_block_grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }

.news_card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: var(--bianco);
  border-radius: 18px;
  color: var(--nero);
  min-height: 100%;
  transition: transform 200ms ease, box-shadow 200ms ease;
}

a.news_card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 30px rgba(0, 0, 0, 0.15);
}

.news_card_media {
  overflow: hidden;
  border-top-right-radius: 20px;
  border-top-left-radius: 20px;
  aspect-ratio: 4 / 3;
}

.news_card_media img { width: 100%; height: 100%; object-fit: cover; }

.news_card_title { margin: 4px 0 0; font-size: 23px; line-height: 23px; font-weight: bold; margin-bottom:10px; }

.news_card_date { margin: 0; font-size: 13px; font-weight: 600; letter-spacing: 0.4px; text-transform: none; opacity: 0.75; }

.news_card_subtitle { margin: 0; font-size: 16px; line-height: 1.45; color: rgba(0, 0, 0, 0.75); }

.news_card_link {
  margin-top: auto;
  align-self: flex-start;
  font-weight: bold;
  color:var(--primary);
  margin-top:20px;
  display: block;
}

.news_card_container { padding: 50px 20px; height:190px; }

.news_block .swiper-pagination { bottom: 4px; }
.news_block .swiper-pagination-bullet { background: var(--primary); opacity: 0.45; }
.news_block .swiper-pagination-bullet-active { background: var(--primary); opacity: 1; }

@media (max-width: 960px) { .news_block_grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .news_block_grid { grid-template-columns: 1fr; } }

/* =========================================================
   BLOCK: ACCORDION
   ========================================================= */

.accordion_block { max-width: var(--max-width); margin: 0 auto 40px; padding: 0 20px; }
.accordion_block_title { margin: 0 0 24px; color: var(--bianco); font-size: clamp(28px, 4vw, 42px); }
.accordion_item { background: #fff; border-radius: 14px; margin-bottom: 12px; color: var(--nero); overflow: hidden; }
.accordion_item_head { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 24px; background: transparent; border: 0; cursor: pointer; font: inherit; font-weight: 700; font-size: 19px; text-align: left; }
.accordion_item_head .accordion_arrow { transition: transform 200ms ease; font-size: 22px; }
.accordion_item.is-expanded .accordion_arrow { transform: rotate(45deg); }
.accordion_item_body { display: none; padding: 0 24px 20px; font-size: 16px; line-height: 1.6; color: rgba(0,0,0,.8); }
.accordion_item.is-expanded .accordion_item_body { display: block; }

/* =========================================================
   FOOTER
   ========================================================= */

.site-footer { width: 100%; background: #101010; color: #aaa; }
.site-footer a:focus-visible { outline: 3px solid #fff; outline-offset: 5px; }
.footer-tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2px; }
.footer-tile { position: relative; display: flex; align-items: end; min-height: 320px; aspect-ratio: 4 / 3; overflow: hidden; background: #242424; color: #fff; isolation: isolate; }
.footer-tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform .35s ease; }
.footer-tile::before { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 20%, rgb(0 0 0 / .8)); z-index: -1; }
.footer-tile:hover img { transform: scale(1.035); }
.footer-tile:focus-visible { z-index: 1; outline-offset: -6px !important; }
.footer-tile-title { display: block; width: 100%; padding: clamp(24px, 3vw, 48px); text-align: center; font-size: clamp(18px, 1.8vw, 28px); font-weight: 500; line-height: 1.25; letter-spacing: .04em; }
.footer-tile-title > span { font-size: 24px; font-weight: 400; }
.footer-body { max-width: 1440px; margin: 0 auto; padding: 72px 40px 24px; text-align: center; }
.footer-brand { display: inline-flex; flex-direction: column; align-items: center; gap: 16px; color: #fff; max-width: 100%; }
.footer-brand img { width: 280px; max-width: 100%; max-height: 110px; object-fit: contain; }
.footer-wordmark { font-family: var(--font-heading); font-size: clamp(24px, 4vw, 40px); font-weight: 800; line-height: 1.2; text-transform: uppercase; }
.footer-tagline { font-size: 12px; letter-spacing: .22em; text-transform: uppercase; }
.footer-navigation { margin-top: 48px; }
.footer-body ul { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 28px; list-style: none; padding: 0; margin: 0; }
.footer-body li { max-width: 100%; }
.footer-body nav a { display: inline-block; padding: 8px 0; font-size: 12px; line-height: 1.5; letter-spacing: .06em; text-transform: uppercase; }
.footer-body a:hover { color: #fff; }
.footer-legal { margin-top: 16px; }
.footer-data { max-width: 980px; margin: 28px auto 0; font-size: 12px; font-style: normal; line-height: 1.9; overflow-wrap: anywhere; }
.footer-data p { margin: 0 0 8px; }
.footer-data a { text-decoration: underline; text-underline-offset: 3px; }
.footer-data a:focus-visible { outline: 3px solid #fff; outline-offset: 4px; }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 16px; margin-top: 40px; padding-top: 24px; border-top: 1px solid #333; font-size: 12px; letter-spacing: .03em; }
.footer-bottom small { font-size: inherit; }
.footer_footer_text { margin-top: 20px; font-size: 12px; }
.footer_footer_text a { text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 900px) { .footer-tile { min-height: 260px; aspect-ratio: 3 / 4; } .footer-tile-title { padding: 24px 18px; } }
@media (max-width: 600px) {
  .footer-tiles { grid-template-columns: 1fr; }
  .footer-tile { min-height: 240px; aspect-ratio: 16 / 9; }
  .footer-tile-title { padding: 28px 24px; font-size: 22px; }
  .footer-body { padding: 48px 24px 24px; }
  .footer-body ul { gap: 8px 20px; }
  .footer-bottom { justify-content: center; }
}
@media (prefers-reduced-motion: reduce) { .footer-tile img { transition: none; } .footer-tile:hover img { transform: none; } }

/* =========================================================
   SWIPER base
   ========================================================= */

.swiper-wrapper { margin-bottom: 0; }
.slider_block .swiper-wrapper { margin-bottom: 0; }
.swiper-pagination-bullet { background: #fff; opacity: .55; }
.swiper-pagination-bullet-active { background: var(--primary); opacity: 1; }

/* =========================================================
   CONTENUTO PAGINE (WYSIWYG)
   ========================================================= */

.page_content_wrap { padding: 0 20px 40px; }
.single_content { max-width: var(--max-width); margin: 0 auto; font-size: 17px; line-height: 1.7; }
.single_content h2 { font-size: 30px; line-height: 1.25; margin: 1.4em 0 .6em; }
.single_content h3 { font-size: 24px; line-height: 1.3; margin: 0; }
.single_content a { color: var(--primary); }
.single_content a:hover { text-decoration: underline; }
.single_content img { border-radius: 12px; }
.single_content blockquote { margin: 1.5em 0; padding: 12px 24px; border-left: 4px solid var(--primary); background: #131313; border-radius: 0 12px 12px 0; }

/* =========================================================
   CONTATTI
   ========================================================= */

.contatti_layout {
  max-width: var(--max-width);
  margin: 10px auto 80px;
  padding: 0 20px;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  gap: 28px;
  align-items: start;
}

.contatti_column { min-width: 0; }

.contatti_layout_no_header { padding-top: 220px; }

.contatti_content { padding: clamp(24px, 4vw, 48px); background: #141414; border: 1px solid #333; border-top: 3px solid var(--primary); color: #fff; overflow-wrap: anywhere; }
.contatti_eyebrow { margin: 0 0 18px; color: #ccc; font-size: 12px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; }
.contatti_content h2 { margin: 0 0 16px; font-size: clamp(24px, 3vw, 36px); line-height: 1.3; }
.contatti_name { margin: 0 0 32px; color: #ddd; font-size: 18px; line-height: 1.5; }
.contatti_content address { font-style: normal; }
.contatti_details { display: grid; gap: 24px; margin: 0; }
.contatti_details dt { margin-bottom: 6px; color: #bbb; font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
.contatti_details dd { margin: 0; font-size: 18px; line-height: 1.6; }
.contatti_details a { display: inline-block; padding: 4px 0; text-decoration: underline; text-underline-offset: 4px; }
.contatti_details a:hover { color: #ddd; }
.contatti_details a:focus-visible { outline: 3px solid #fff; outline-offset: 5px; }
.contatti_fiscal { margin-top: 32px; padding-top: 28px; border-top: 1px solid #3a3a3a; grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr)); }

@media (max-width: 980px) {
  .contatti_layout { grid-template-columns: 1fr; }
}

/* =========================================================
   FORM DI CONTATTO
   ========================================================= */

.contact_form {
  background: #0b0b0b;
  border: 1px solid #292929;
  border-radius: 24px;
  padding: 28px;
  color: var(--bianco);
  color-scheme: dark;
}

.contact_form_title { margin: 0 0 18px; font-size: 28px; line-height: 1.3; }

.contact_form_note { margin: 0 0 20px; color: #bbb; font-size: 14px; line-height: 1.5; }

.contact_form_form { display: flex; flex-direction: column; gap: 14px; }

.contact_form_field { display: flex; flex-direction: column; gap: 6px; font-size: 14px; }

.contact_form_field input,
.contact_form_field textarea {
  border: 1px solid #444;
  background: #171717;
  color: #fff;
  border-radius: 12px;
  padding: 12px 14px;
  font: inherit;
}

.contact_form_field input:focus-visible,
.contact_form_field textarea:focus-visible,
.contact_form_privacy input:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 3px;
}

.contact_form_field textarea { resize: vertical; min-height: 140px; }

.contact_form_privacy { display: flex; align-items: center; gap: 10px; margin-top: 4px; font-size: 14px; }

.contact_form_privacy input { width: 18px; height: 18px; }

.contact_form_privacy a { color: var(--primary); text-decoration: underline; }

.contact_form_submit {
  margin-top: 6px;
  border: 0;
  border-radius: 999px;
  padding: 12px 18px;
  background: var(--primary);
  color: var(--bianco);
  font-family: var(--font-heading);
  font-size: 16px;
  cursor: pointer;
  transition: transform 180ms ease, opacity 180ms ease;
}

.contact_form_submit:hover { transform: translateY(-2px); opacity: 0.95; }
.contact_form_submit:disabled { opacity: 0.7; cursor: not-allowed; transform: none; }

.contact_form_status { margin: 6px 2px 0; font-size: 14px; min-height: 20px; }
.contact_form_status[data-state='success'] { color: #7cdb93; }
.contact_form_status[data-state='error'] { color: #ff9d95; }
.contact_form_status[data-state='loading'] { color: #ccc; }

/* =========================================================
   LEGAL PAGE
   ========================================================= */

.legal-page { background: var(--grigio-chiaro); padding: 0 24px 80px; color: var(--nero); }
.legal-content { max-width: 880px; margin: 0 auto; line-height: 1.75; overflow-wrap: anywhere; }
.legal-header { min-height: 440px; padding: 200px 0 32px; display: flex; flex-direction: column; justify-content: center; }
.legal-header nav { display: flex; flex-wrap: wrap; gap: 24px; }
.legal-page a { text-decoration: underline; text-underline-offset: 4px; }
.legal-page a:focus-visible { outline: 3px solid var(--primary); outline-offset: 5px; }
.legal-page h1 { font-size: clamp(26px, 5vw, 44px); line-height: 1.25; margin: 32px 0; }
.legal-page h2 { font-size: clamp(18px, 3vw, 24px); line-height: 1.4; margin: 0 0 16px; }
.legal-page section { margin: 40px 0; }
.legal-page address { font-style: normal; }
.legal-page p { margin: 0 0 20px; }
.legal-notice { padding: 24px; border: 2px solid var(--primary); background: #fff; }
.legal-notice p { margin: 12px 0 0; }
.legal-official { display: inline-block; padding: 18px 24px; background: var(--nero); color: var(--bianco); font-weight: 700; }
@media (max-width: 600px) { .legal-page { padding: 0 20px 56px; } }

/* =========================================================
   SHOP — header + layout
   ========================================================= */

.shop_page_header { min-height: 440px; background-color: #111; background-size: cover; background-position: center; position: relative; display: grid; align-items: center; }
.shop_page_header::before { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0, 0, 0, 0.28), rgba(0, 0, 0, 0.65)); }
.shop_page_header_inner { position: relative; z-index: 1; min-width: 0; max-width: 1280px; margin: 0 auto; width: 100%; padding: 200px 20px 40px; color: #fff; overflow-wrap: anywhere; }
.shop_page { padding: 30px 20px 80px; max-width: 1600px; margin: 0 auto; }
.shop_eyebrow { text-transform: uppercase; letter-spacing: 1.3px; color: var(--primary); margin: 0 0 10px; }
.shop_page_header_inner h1 { margin: 0 0 18px; font-size: clamp(36px, 5vw, 64px); line-height: 1.3; }
.shop_page_header_inner p { margin: 0; max-width: 700px; font-size: 18px; line-height: 1.65; }
.shop_layout { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 28px; }
.shop_sidebar_slot { min-width: 0; }
.shop_filters_heading { display: flex; align-items: center; justify-content: space-between; }
.shop_sidebar_slot [data-shop-filters-close] { display: none; }
.shop_filter_drawer { position: fixed; inset: 0 0 0 auto; width: min(380px, 92vw); height: 100%; height: 100dvh; max-height: 100%; max-width: none; margin: 0; padding: 0; border: 0; background: #101010; color: #eee; }
.shop_filter_drawer::backdrop { background: rgb(0 0 0 / .7); }
.shop_filter_drawer:not([open]) { display: none; }
html.shop-filters-open { overflow: hidden; }
.shop_filter_drawer .shop_sidebar { display: block; position: static; min-height: 100%; border-radius: 0; padding-bottom: max(32px, env(safe-area-inset-bottom)); }
.shop_filter_drawer .shop_filters_heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 28px; }
.shop_filters_heading h2 { margin: 0; }
.shop_filters_heading button { width: 40px; height: 40px; border: 1px solid #444; border-radius: 8px; background: #202020; color: #fff; font-size: 26px; cursor: pointer; }
.shop_sidebar { background: #101010; color: #eee; color-scheme: dark; border-radius: 8px; padding: 24px; height: fit-content; position: sticky; top: 220px; }
.shop_sidebar h2 { margin: 0 0 14px; font-size: 20px; }
.shop_sidebar a { display: block; padding: 10px 12px; border-radius: 12px; font-weight: 600; }
.shop_sidebar a.active { background: #292929; color: #fff; }
.shop_sidebar a:hover { background: #202020; }
.shop_sidebar a:focus-visible, .shop_sidebar input:focus-visible { outline: 2px solid #eee; outline-offset: 3px; }
.shop_filter_group { display: grid; gap: 8px; margin: 24px 0 0; padding: 20px 0 0; border: 0; border-top: 1px solid #303030; }
.shop_filter_group legend { margin: 0 0 4px; padding: 0; font-size: 20px; font-weight: 700; }
.shop_filter_option { display: flex; align-items: center; gap: 9px; cursor: pointer; font-size: 14px; font-weight: 600; }
.shop_filter_option input { width: 16px; height: 16px; accent-color: var(--primary); }
.shop_filter_option.is-disabled { color: #737373; cursor: not-allowed; }
.shop_filter_option.is-disabled input { accent-color: #555; cursor: not-allowed; }
.shop_price_filter { gap: 14px; }
.shop_price_slider { position: relative; height: 22px; }
.shop_price_slider_track, .shop_price_slider_range { position: absolute; top: 50%; height: 5px; transform: translateY(-50%); border-radius: 999px; }
.shop_price_slider_track { right: 0; left: 0; background: #454545; }
.shop_price_slider_range { left: var(--price-start); right: calc(100% - var(--price-end)); background: var(--primary); }
.shop_price_range_input { position: absolute; z-index: 2; top: 0; left: 0; width: 100%; height: 22px; margin: 0; appearance: none; -webkit-appearance: none; pointer-events: none; background: transparent; }
.shop_price_range_input::-webkit-slider-thumb { width: 18px; height: 18px; appearance: none; -webkit-appearance: none; pointer-events: auto; border: 3px solid var(--primary); border-radius: 50%; background: #fff; cursor: grab; }
.shop_price_range_input::-moz-range-thumb { width: 13px; height: 13px; pointer-events: auto; border: 3px solid var(--primary); border-radius: 50%; background: #fff; cursor: grab; }
.shop_price_values { display: flex; justify-content: space-between; gap: 12px; color: #bbb; font-size: 13px; font-weight: 700; }
.shop_grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-auto-rows: 1fr; gap: 20px; }
.shop_toolbar { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 2px 0 4px; }
.shop_breadcrumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; color: #aaa; font-size: 14px; font-weight: 600; }
.shop_breadcrumbs a { color: #eee; }
.shop_breadcrumbs a:hover { color: var(--primary); }
.shop_sort { display: flex; align-items: center; gap: 10px; color: #bbb; font-size: 13px; font-weight: 700; white-space: nowrap; }
.shop_sort select { min-width: 190px; border: 1px solid #3b3b3b; border-radius: 8px; padding: 10px 36px 10px 12px; background: #191919; color: #eee; color-scheme: dark; font: inherit; font-weight: 600; cursor: pointer; }
.shop_card { background: #fff; color: #191919; border-radius: 22px; overflow: hidden; display: flex; flex-direction: column; height: 100%; }
.shop_card[hidden] { display: none; }
.shop_card_media { height: clamp(160px, 20vw, 300px); background: #fff; display: block; padding: 10px; }
.shop_card_media img { width: 100%; height: 100%; object-fit: contain; }
.shop_card_content { padding: 16px; display: grid; gap: 8px; align-content: start; flex: 1; }
.shop_card_category { margin: 0; font-size: 12px; text-transform: uppercase; letter-spacing: 1px; color: #666; }
.shop_card_brand { margin: 0; color: var(--primary); font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; }
.shop_card h3 { margin: 0; font-size: 17px; line-height: 1.4; }
.shop_card h3 a { color: inherit; }
.shop_card_price { margin: 0; font-weight: 700; }
.shop_card_link { color: var(--primary); font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; }
.shop_card_link:hover { text-decoration: underline; }
.shop_empty { padding: 50px 30px; background: #171717; color: #ccc; border-radius: 8px; }
.shop_filter_empty { grid-column: 1 / -1; }
.shop_mobile_controls { display: flex; align-items: center; gap: 12px; margin-bottom: 24px; }
.shop_category_badges { display: flex; flex: 1; justify-content: safe center; gap: 12px; min-width: 0; overflow-x: auto; padding: 8px 2px; scrollbar-width: thin; scrollbar-color: #555 transparent; }
.shop_category_badges a { flex-shrink: 0; padding: 12px 24px; border: 1px solid #363636; border-radius: 999px; background: #171717; color: #ccc; font-size: 20px; font-weight: 600; white-space: nowrap; }
.shop_category_badges a.active { border-color: var(--primary); background: var(--primary); color: #fff; }
.shop_filter_toggle { display: none; flex-shrink: 0; align-items: center; justify-content: center; gap: 7px; min-height: 42px; padding: 9px 14px; border: 1px solid #444; border-radius: 8px; background: #202020; color: #fff; font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; }
.shop_filter_toggle:focus-visible, .shop_category_badges a:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
@media (max-width: 980px) {
  .shop_layout { grid-template-columns: minmax(0, 1fr); }
  .shop_sidebar_slot { display: none; }
  .shop_filter_toggle { display: inline-flex; }
  .shop_grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) { .shop_page { padding-right: 14px; padding-left: 14px; } .shop_grid { gap: 12px; } .shop_card { border-radius: 12px; } .shop_card_content { padding: 12px; } .shop_card h3 { font-size: 13px; line-height: 1.4; overflow-wrap: anywhere; } .shop_card_category, .shop_card_brand { font-size: 10px; letter-spacing: .5px; } .shop_card_link { font-size: 11px; } .shop_toolbar { align-items: flex-start; flex-direction: column; } .shop_sort { width: 100%; justify-content: space-between; } .shop_sort select { min-width: 0; width: min(100%, 235px); } }

/* =========================================================
   SHOP — pagina prodotto
   ========================================================= */

.shop_product_page { max-width: 1280px; margin: 0 auto; padding: 150px 20px 90px; }
.shop_back { display: inline-flex; margin-bottom: 16px; font-weight: 700; color: #fff; }
.shop_back::before { content: '<'; margin-right: 8px; }
.shop_product_layout { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.shop_product_media { display: grid; gap: 12px; min-width: 0; }
.shop_product_main_media { position: relative; width: 100%; min-width: 0; aspect-ratio: 1; border-radius: 24px; overflow: hidden; background: #fff; }
.shop_product_main_media .swiper-wrapper { height: 100%; margin-bottom: 0; }
.shop_product_main_media .swiper-slide { height: 100%; display: flex; align-items: center; justify-content: center; }
.shop_product_main_media img { width: 100%; height: 100%; object-fit: contain; display: block; }
.shop_gallery_control { position: absolute; top: 50%; z-index: 1; width: 44px; height: 44px; transform: translateY(-50%); border: 0; border-radius: 999px; background: rgba(0, 0, 0, .58); color: #fff; font-size: 32px; line-height: 1; cursor: pointer; }
.shop_gallery_control:hover, .shop_gallery_control:focus-visible { background: var(--primary); }
.shop_gallery_previous { left: 16px; }
.shop_gallery_next { right: 16px; }
.shop_product_thumbnails { display: flex; gap: 10px; overflow-x: auto; padding: 2px; scrollbar-width: thin; }
.shop_gallery_thumbnail { flex: 0 0 76px; width: 76px; height: 64px; padding: 0; overflow: hidden; border: 2px solid transparent; border-radius: 10px; background: #ececec; cursor: pointer; }
.shop_gallery_thumbnail.is-active { border-color: var(--primary); }
.shop_gallery_thumbnail:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
.shop_gallery_thumbnail img { width: 100%; height: 100%; object-fit: cover; display: block; }
.shop_media_placeholder { min-height: 420px; }
.shop_product_content { background: #131313; border-radius: 24px; padding: 28px; display: grid; gap: 16px; color: #fff; }
.shop_product_category { margin: 0; text-transform: uppercase; letter-spacing: 1.1px; color: #666; font-size: 12px; }
.shop_product_brand { margin: -8px 0 0; color: var(--primary); font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: 1.1px; }
.shop_product_content h1 { margin: 0; font-size: clamp(28px, 4vw, 52px); line-height: 50px; }
.shop_product_price { margin: 0; font-size: 28px; font-weight: 700; }
.shop_product_description { font-size: 16px; line-height: 1.7; }
.shop_product_description * { max-width: 65ch; }
.shop_variant_panel { display: grid; gap: 12px; }
.shop_variant_panel label { font-weight: 700; }
.shop_variant_panel select { padding: 12px; border-radius: 10px; border: 1px solid #d8d8d8; font: inherit; }
.shop_button { background: var(--primary); color: #fff; border: 0; border-radius: 12px; padding: 14px; font-weight: 700; cursor: pointer; font-size: 16px; }
.shop_button:hover { background: #bc0010; }
.shop_secondary_link { display: inline-flex; font-weight: 700; color: #191919; }
.shop_related_products { margin-top: 72px; padding-top: 48px; border-top: 1px solid #e2e2e2; }
.shop_related_heading { margin-bottom: 24px; }
.shop_related_heading p { margin: 0 0 6px; color: var(--primary); font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 1.1px; }
.shop_related_heading h2 { margin: 0; font-size: clamp(28px, 3vw, 42px); }
.shop_related_grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: 1fr; gap: 18px; }
.shop_related_card { overflow: hidden; border-radius: 18px; background: #fff; color: #191919; display: flex; flex-direction: column; height: 100%; }
.shop_related_image { display: block; height: clamp(140px, 13vw, 200px); background: #ececec; padding: 10px; }
.shop_related_image img { display: block; width: 100%; height: 100%; object-fit: contain; }
.shop_related_card > div { display: grid; gap: 8px; padding: 14px; align-content: start; flex: 1; }
.shop_related_card h3, .shop_related_card p { margin: 0; }
.shop_related_card h3 { font-size: 17px; line-height: 1.25; }
.shop_related_card p { font-weight: 700; }
@media (max-width: 920px) {
  .shop_product_layout { grid-template-columns: 1fr; }
  .shop_related_grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 520px) { .shop_related_grid { gap: 12px; } .shop_related_card > div { padding: 12px; } .shop_related_card h3 { font-size: 13px; overflow-wrap: anywhere; } }

/* =========================================================
   SHOP — carrello
   ========================================================= */

.shop_cart_page { max-width: 1280px; margin: 0 auto; padding: 0 20px 90px; }
.shop_cart_head { min-height: 440px; padding: 200px 0 32px; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 16px; overflow-wrap: anywhere; }
.shop_cart_head h1 { min-width: 0; margin: 0; font-size: clamp(34px, 5vw, 58px); line-height: 1.3; }
.shop_cart_head a { font-weight: 700; }
.shop_cart_content { display: grid; grid-template-columns: 1fr 320px; gap: 18px; }
.cart_rows { display: grid; gap: 12px; }
.cart_row { display: grid; grid-template-columns: 130px 1fr auto; gap: 14px; background: #fff; border-radius: 18px; padding: 14px; align-items: center; color: #191919; }
.cart_row_media img { width: 100%; height: 100px; object-fit: contain; border-radius: 12px; }
.cart_row_title { font-weight: 700; font-size: 20px; }
.cart_row_title a { color: inherit; }
.cart_row_variant { margin: 4px 0 10px; color: #666; }
.cart_row_qty { display: inline-flex; gap: 8px; align-items: center; }
.cart_row_qty button { width: 32px; height: 32px; border: 0; border-radius: 8px; background: #efefef; font-weight: 700; cursor: pointer; }
.cart_row_qty input { width: 64px; padding: 8px; border-radius: 8px; border: 1px solid #d3d3d3; }
.cart_remove { margin-top: 8px; border: 0; background: transparent; color: #b82121; text-decoration: underline; cursor: pointer; padding: 0; }
.cart_row_total { font-weight: 700; white-space: nowrap; }
.cart_summary { background: #fff; border-radius: 18px; padding: 18px; height: fit-content; color: #191919; }
.cart_summary h2 { font-size: 24px; margin: 0 0 12px; }
.cart_summary_total { display: flex; justify-content: space-between; font-size: 20px; font-weight: 700; margin: 12px 0; }
.shop_action_link { display: inline-flex; margin-top: 12px; background: var(--primary); color: #fff; padding: 12px 14px; border-radius: 10px; font-weight: 700; }
.shop_empty_state { background: #fff; border-radius: 18px; padding: 26px; color: #191919; }
@media (max-width: 900px) {
  .shop_cart_content { grid-template-columns: 1fr; }
  .cart_row { grid-template-columns: 1fr; }
}

/* =========================================================
   SHOP — checkout
   ========================================================= */

.shop_checkout_page { max-width: 1280px; margin: 0 auto; padding: 30px 20px 90px; }
.checkout_form { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 18px; align-items: start; }
.checkout_main { background: #fff; border-radius: 20px; padding: 18px; display: grid; gap: 16px; color: #191919; }
.checkout_sidebar { background: #fff; border-radius: 20px; padding: 18px; display: grid; gap: 16px; height: fit-content; color: #191919; }
.checkout_main fieldset, .checkout_form fieldset { border: 1px solid #ececec; border-radius: 14px; padding: 14px; display: grid; gap: 10px; margin: 0; }
.checkout_form legend { font-weight: 700; font-size: 28px; padding: 0 6px; }
.checkout_form label { display: grid; gap: 5px; font-size: 14px; line-height: 1.45; }
.checkout_form input,
.checkout_form select { padding: 10px; border: 1px solid #dadada; border-radius: 8px; font: inherit; }
.checkout_shipping_fields { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 12px; }
.checkout_shipping_fields > legend { grid-column: 1 / -1; }
.checkout_contact_fields { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 12px; }
.checkout_contact_fields > legend { grid-column: 1 / -1; }
.checkout_payment_group p { margin: 0; font-size: 14px; }
.payment_gateway_list { display: grid; gap: 8px; }
.payment_gateway_option {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid #dadada;
  border-radius: 10px;
  padding: 10px;
  background: #fff;
}
.payment_gateway_option input { margin: 0; width: 16px; height: 16px; }
.promo_row { display: grid; grid-template-columns: 1fr auto auto; gap: 8px; }
.promo_row button { border: 0; border-radius: 9px; background: #efefef; padding: 10px 12px; font-weight: 700; cursor: pointer; }
.checkout_form .checkbox_row { display: flex; align-items: flex-start; gap: 8px; font-size: 13px; line-height: 1.5; }
.checkbox_row input { flex-shrink: 0; margin-top: 3px; }
.checkout_consent_list a { color: var(--primary); text-decoration: underline; text-underline-offset: 3px; }
.checkout_consent_list a:focus-visible { outline: 2px solid var(--primary); outline-offset: 3px; }
.checkout_consent_list { display: grid; gap: 10px; }
.checkout_submit { background: var(--primary); color: #fff; border: 0; border-radius: 12px; padding: 14px; font-weight: 700; cursor: pointer; font-size: 16px; }
.checkout_summary { border: 1px solid #ececec; border-radius: 14px; padding: 15px; }
.checkout_summary ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 12px; }
@media (max-width: 980px) {
  .checkout_form { grid-template-columns: 1fr; }
}

/* =========================================================
   SHOP — conferma ordine
   ========================================================= */

.order_confirmation { max-width: 900px; margin: 0 auto; padding: 0 20px 80px; }
.order_confirmation_header { min-height: 440px; padding: 200px 0 32px; display: grid; align-items: center; }
.order_confirmation h1 { min-width: 0; margin: 0; line-height: 1.1; overflow-wrap: anywhere; }
.order_confirmation .bank_details { background: #fff; border-radius: 18px; padding: 24px; margin: 24px 0; color: #191919; }
.order_confirmation .bank_details dt { font-weight: 700; margin-top: 16px; }
.order_confirmation .bank_details dd { margin: 4px 0 0; }
.order_confirmation .iban { overflow-wrap: anywhere; font-family: monospace; font-size: 20px; }
.order_confirmation a { color: var(--primary); font-weight: 700; }
.woocommerce-order-overview, .woocommerce-thankyou-order-received { color: #fff; }
.woocommerce-order-overview { list-style: none; padding: 0; display: grid; gap: 6px; }

/* =========================================================
   WOOCOMMERCE — adattamenti generali
   ========================================================= */

.woocommerce-message, .woocommerce-info, .woocommerce-error {
  background: #171717;
  color: #eee;
  border-top: 3px solid var(--primary);
  border-radius: 12px;
  padding: 14px 18px;
  list-style: none;
  margin: 0 0 20px;
}
.woocommerce-message { border-top-color: #21843b; }
.woocommerce-message a.button, .woocommerce-error a.button, .woocommerce-info a.button { background: var(--primary); color: #fff; border-radius: 999px; padding: 8px 16px; font-weight: 700; }
.woocommerce-notices-wrapper { max-width: 1280px; margin: 0 auto; padding: 120px 20px 0; }

.woocommerce-result-count { color: #bbb; }
.woocommerce-pagination { grid-column: 1 / -1; }
.woocommerce-pagination ul, .woocommerce-pagination ul.page-numbers { display: flex; gap: 8px; list-style: none; margin: 24px 0 0; padding: 0; justify-content: center; }
.woocommerce-pagination a, .woocommerce-pagination span { display: inline-block; padding: 10px 16px; border-radius: 10px; background: #171717; color: #eee; font-weight: 700; }
.woocommerce-pagination .current { background: var(--primary); color: #fff; }

.onsale { display: none; }

.star-rating { display: none; }

.woocommerce .quantity .qty { width: 64px; padding: 8px; border-radius: 8px; border: 1px solid #d3d3d3; }

.variations_form .variations { border: 0; }
.variations_form .variations td.label { font-weight: 700; }

.shop_button.single_add_to_cart_button { width: 100%; }
.variation_form_field select { padding: 12px; border-radius: 10px; border: 1px solid #d8d8d8; font: inherit; width: 100%; }

/* Checkout WooCommerce mapping */
.woocommerce-checkout .checkout_form { max-width: 1280px; margin: 0 auto; padding: 0 20px 90px; }
.woocommerce-checkout .checkout_form .woocommerce-billing-fields h3,
.woocommerce-checkout .checkout_form .woocommerce-additional-fields h3,
#order_review_heading { font-size: 24px; margin: 0 0 12px; color: #191919; }
.woocommerce-checkout #customer_details { background: #fff; border-radius: 20px; padding: 18px; color: #191919; }
.woocommerce-checkout #customer_details .col-1, .woocommerce-checkout #customer_details .col-2 { width: 100%; float: none; }
.woocommerce-checkout #order_review { background: #fff; border-radius: 20px; padding: 18px; color: #191919; }
.woocommerce-checkout .form-row input.input-text, .woocommerce-checkout .form-row textarea, .woocommerce-checkout .select2-container .select2-selection--single, .woocommerce-checkout .form-row .select2-selection { border: 1px solid #dadada; border-radius: 8px; padding: 10px; min-height: 42px; height: auto; }
.woocommerce-checkout .select2-container .select2-selection--single .select2-selection__rendered { padding: 0; line-height: 22px; color: #191919; }
.woocommerce-checkout .select2-dropdown { border-radius: 8px; }
.select2-container--default .select2-results__option--highlighted[aria-selected] { background: var(--primary); }
.woocommerce-checkout #payment { background: transparent; border-radius: 14px; }
.woocommerce-checkout #payment ul.payment_methods { border-bottom: 1px solid #ececec; }
.woocommerce-checkout #payment ul.payment_methods li { border: 1px solid #dadada; border-radius: 10px; padding: 10px; margin-bottom: 8px; background: #fff; }
.woocommerce-checkout #payment div.payment_box { background: #f6f6f6; border-radius: 10px; }
.woocommerce-checkout #place_order { background: var(--primary); color: #fff; border: 0; border-radius: 12px; padding: 14px; font-weight: 700; cursor: pointer; width: 100%; font-size: 16px; }
.checkout_login_info, .checkout_coupon_info { background: #171717; border-radius: 12px; padding: 12px 16px; margin-bottom: 14px; }
.checkout_login_info a { color: var(--primary); text-decoration: underline; }

/* My account */
.woocommerce-account .woocommerce-MyAccount-navigation ul { list-style: none; display: grid; gap: 8px; padding: 0; margin: 0 0 24px; }
.woocommerce-account .woocommerce-MyAccount-navigation a { display: block; padding: 12px 16px; border-radius: 12px; background: #171717; color: #eee; font-weight: 600; }
.woocommerce-account .woocommerce-MyAccount-navigation .is-active a { background: var(--primary); color: #fff; }
.woocommerce-account .woocommerce-MyAccount-content { background: #fff; border-radius: 18px; padding: 24px; color: #191919; }
.woocommerce-account .woocommerce-MyAccount-content table { width: 100%; border-collapse: collapse; }
.woocommerce-account .woocommerce-MyAccount-content th, .woocommerce-account .woocommerce-MyAccount-content td { padding: 10px; border-bottom: 1px solid #ececec; text-align: left; }
.woocommerce-account .woocommerce-form-login { background: #fff; border-radius: 18px; padding: 24px; color: #191919; max-width: 480px; margin: 200px auto 80px; }
.woocommerce-account .woocommerce-form-login input[type="text"], .woocommerce-account .woocommerce-form-login input[type="password"] { width: 100%; padding: 10px; border: 1px solid #dadada; border-radius: 8px; }
.woocommerce-account .woocommerce-button { background: var(--primary); color: #fff; border: 0; border-radius: 10px; padding: 12px 18px; font-weight: 700; cursor: pointer; }

/* Tabelle carrello Woo nascoste (usiamo markup custom) */
.woocommerce-cart-form__contents { display: none; }
.shop_cart_page .woocommerce-cart-form { display: contents; }

/* Minor: nascosto link coupon legacy */
.shop_cart_page .woocommerce-info { margin: 0 0 14px; }

/* =========================================================
   SLIDER: immagine a tutta larghezza, testo al centro
   ========================================================= */
.content_block_slider_block {
  width: 100vw;
  max-width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
}

.slider_block .single_slide {
  align-items: center;
  justify-content: center;
  text-align: center;
  background-size: cover;
  background-position: center center;
}

.slider_block .single_slide > .single_slide_bg {
  object-fit: cover;
  object-position: center center;
}

.slider_block .swiper-slide-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.slider_block .single_slide h1,
.slider_block .single_slide h2 {
  margin-left: auto;
  margin-right: auto;
}

/* =========================================================
   PARTNER E SPONSOR: titolo e larghezza
   ========================================================= */
.partners_block .partners-heading { padding: 0; }

.content_block_partners_block.is-width-full,
.content_block_partners_carousel.is-width-full {
  width: 100vw;
  max-width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
}

.content_block_partners_block.is-width-full .partners_block { max-width: none; padding-left: 40px; padding-right: 40px; }

.content_block_partners_carousel.is-width-site .partners_carousel_section {
  max-width: var(--max-width);
  margin-left: auto;
  margin-right: auto;
  overflow: hidden;
}

.content_block_partners_carousel.is-width-site .partners-heading { padding-left: 20px; padding-right: 20px; }

/* Griglia shop: la toolbar è alta quanto il contenuto, le righe di card restano uguali tra loro. */
.shop_grid { grid-template-rows: auto; align-content: start; }

/* Pagine legali sotto l'header standard. */
.page_header + .legal-page { padding-top: 40px; }
.page_header + .legal-page .legal-header { min-height: 0; padding: 0 0 24px; }

/* =========================================================
   PRODOTTO: descrizione, condivisione, quantità
   ========================================================= */
.shop_product_content { align-content: start; }
.shop_product_content h1 { line-height: 1.1; overflow-wrap: anywhere; }
.shop_product_description { padding-top: 18px; border-top: 1px solid #222; color: #ccc; }
.shop_product_description h2 { margin: 0 0 8px; font-family: var(--font-body); font-size: 15px; line-height: 1.4; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: #fff; }
.shop_product_description p { margin: 0 0 12px; }
.shop_product_description p:last-child { margin-bottom: 0; }
.shop_share { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 0; border-top: 1px solid #e4e4e4; border-bottom: 1px solid #e4e4e4; }
.shop_share_label { font-size: 13px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.shop_share_links { display: flex; flex-wrap: wrap; gap: 8px; }
.shop_share_links a,
.shop_share_links button { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; padding: 0; border: 1px solid #d8d8d8; border-radius: 50%; background: #fff; color: #191919; cursor: pointer; transition: background-color 150ms ease, border-color 150ms ease, color 150ms ease; }
.shop_share_links a:hover,
.shop_share_links button:hover { background: var(--primary); border-color: var(--primary); color: #fff; }
.shop_share_links a:focus-visible,
.shop_share_links button:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
.shop_share_links svg { width: 16px; height: 16px; }
.shop_variant_panel form.cart { display: grid; gap: 14px; }
.shop_qty_row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.shop_qty { display: inline-flex; align-items: stretch; height: 46px; border: 1px solid #d8d8d8; border-radius: 12px; overflow: hidden; background: #fff; }
.shop_qty button { width: 46px; padding: 0; border: 0; background: #f4f4f4; color: #191919; font-size: 20px; font-weight: 700; cursor: pointer; }
.shop_qty button:hover { background: #e7e7e7; }
.shop_qty input { width: 56px; padding: 0; border: 0; background: #fff; color: #191919; font: inherit; font-weight: 700; text-align: center; appearance: textfield; -moz-appearance: textfield; }
.shop_qty input::-webkit-outer-spin-button,
.shop_qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.shop_variant_panel .shop_button { width: 100%; }

/* Condivisione sopra il titolo prodotto. */
.shop_share { justify-content: flex-start; padding: 0; border: 0; }

/* Pannello prodotto scuro. */
.shop_product_category { color: #aaa; }
.shop_variant_panel select { background: #fff; color: #191919; }

/* =========================================================
   CHECKOUT: due colonne e campi allineati
   ========================================================= */
.shop_checkout_page { padding-top: 150px; }
.shop_checkout_page .checkout_form { display: block; padding: 0; }
.shop_checkout_page .woocommerce-notices-wrapper { padding: 0; }
.woocommerce-checkout form.checkout {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
  grid-template-areas: "notice notice" "details heading" "details review";
  grid-template-rows: auto auto 1fr;
  column-gap: 28px;
  align-items: start;
}
.woocommerce-checkout form.checkout > .woocommerce-NoticeGroup { grid-area: notice; margin-bottom: 16px; }
.woocommerce-checkout #customer_details { grid-area: details; padding: 28px; }
.woocommerce-checkout #order_review_heading { grid-area: heading; margin: 0 0 14px; color: #fff; }
.woocommerce-checkout #order_review { grid-area: review; padding: 24px; position: sticky; top: 110px; }
.woocommerce-checkout .woocommerce-billing-fields__field-wrapper,
.woocommerce-checkout .woocommerce-shipping-fields__field-wrapper,
.woocommerce-checkout .woocommerce-additional-fields__field-wrapper {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.woocommerce-checkout .form-row { float: none; width: 100%; min-width: 0; margin: 0; padding: 0; }
.woocommerce-checkout #billing_email_field,
.woocommerce-checkout #billing_country_field,
.woocommerce-checkout #billing_address_1_field,
.woocommerce-checkout #billing_address_2_field,
.woocommerce-checkout #shipping_country_field,
.woocommerce-checkout #shipping_address_1_field,
.woocommerce-checkout #shipping_address_2_field,
.woocommerce-checkout #order_comments_field { grid-column: 1 / -1; }
.woocommerce-checkout .form-row label:not(.checkbox):not(.screen-reader-text) { display: block; margin-bottom: 6px; font-size: 14px; font-weight: 600; line-height: 1.4; }
.woocommerce-checkout .form-row .optional { font-weight: 400; color: #666; }
.woocommerce-checkout .form-row .required { text-decoration: none; color: var(--primary); }
.woocommerce-checkout .woocommerce-input-wrapper { display: block; width: 100%; }
.woocommerce-checkout .form-row input.input-text,
.woocommerce-checkout .form-row textarea,
.woocommerce-checkout .form-row select { display: block; width: 100%; box-sizing: border-box; background: #fff; color: #191919; }
.woocommerce-checkout .form-row input.input-text,
.woocommerce-checkout .form-row select { height: 46px; padding: 0 12px; }
.woocommerce-checkout .form-row textarea { min-height: 110px; padding: 12px; resize: vertical; }
.woocommerce-checkout .form-row .select2-container { display: block; width: 100% !important; }
.woocommerce-checkout .form-row .select2-container .select2-selection--single { display: flex; align-items: center; height: 46px; padding: 0 12px; box-sizing: border-box; }
.woocommerce-checkout .select2-container .select2-selection--single .select2-selection__arrow { top: 10px; right: 8px; }
.woocommerce-checkout .woocommerce-additional-fields { margin-top: 28px; }
.woocommerce-checkout #payment ul.payment_methods { margin: 16px 0; padding: 0; list-style: none; }
.woocommerce-checkout #payment ul.payment_methods li { list-style: none; }
.woocommerce-checkout #place_order { width: 100%; }
@media (max-width: 900px) {
  .woocommerce-checkout form.checkout { grid-template-columns: minmax(0, 1fr); grid-template-areas: "notice" "details" "heading" "review"; grid-template-rows: none; }
  .woocommerce-checkout #order_review_heading { margin-top: 28px; }
  .woocommerce-checkout #order_review { position: static; }
  .woocommerce-checkout #customer_details { padding: 20px; }
}
@media (max-width: 560px) {
  .woocommerce-checkout .woocommerce-billing-fields__field-wrapper,
  .woocommerce-checkout .woocommerce-shipping-fields__field-wrapper,
  .woocommerce-checkout .woocommerce-additional-fields__field-wrapper { grid-template-columns: minmax(0, 1fr); }
}


/* Checkout: codice sconto e miniature nel riepilogo. */
.woocommerce-checkout .woocommerce-form-coupon-toggle { display: none; }
.sr_checkout_coupon { margin: 16px 0; padding: 16px 0; border-top: 1px solid #ececec; border-bottom: 1px solid #ececec; }
.sr_checkout_coupon label { display: block; margin-bottom: 6px; font-size: 14px; font-weight: 600; }
.sr_checkout_coupon_row { display: flex; gap: 8px; }
.sr_checkout_coupon_row input { flex: 1 1 auto; min-width: 0; height: 46px; padding: 0 12px; box-sizing: border-box; border: 1px solid #dadada; border-radius: 8px; background: #fff; color: #191919; font: inherit; }
.sr_checkout_coupon_row button { flex: 0 0 auto; height: 46px; padding: 0 18px; border: 0; border-radius: 12px; background: #191919; color: #fff; font: inherit; font-weight: 700; cursor: pointer; }
.sr_checkout_coupon_row button:hover { background: var(--primary); }
.sr_checkout_coupon_row button:disabled { opacity: .6; cursor: wait; }
.sr_checkout_coupon_message:not(:empty) { margin-top: 10px; font-size: 14px; }
.sr_checkout_coupon_message .woocommerce-error,
.sr_checkout_coupon_message .woocommerce-message,
.sr_checkout_coupon_message .woocommerce-info { margin: 0; padding: 10px 12px; border-radius: 8px; list-style: none; max-width: none; }
.woocommerce-checkout-review-order-table td.product-name { position: relative; height: 72px; padding-left: 72px; vertical-align: middle; }
.sr_review_thumb { position: absolute; left: 6px; top: 50%; width: 56px; height: 56px; transform: translateY(-50%); }
.sr_review_thumb img { display: block; width: 100%; height: 100%; object-fit: contain; border-radius: 8px; background: #fff; }
.woocommerce-checkout .woocommerce-checkout-review-order-table td.product-name { padding-left: 72px; }
.shop_checkout_page { padding-top: 190px; }

/* Checkout: consensi e indirizzo di spedizione. */
.woocommerce-checkout .woocommerce-terms-and-conditions-wrapper { display: grid; gap: 10px; margin: 16px 0; font-size: 14px; }
.woocommerce-checkout .woocommerce-terms-and-conditions-wrapper .form-row { margin: 0; }
.woocommerce-checkout .woocommerce-terms-and-conditions-wrapper label.checkbox,
.woocommerce-checkout #ship-to-different-address label { display: flex; align-items: flex-start; gap: 10px; font-size: 14px; font-weight: 600; line-height: 1.45; cursor: pointer; }
.woocommerce-checkout .woocommerce-terms-and-conditions-wrapper label.checkbox span,
.woocommerce-checkout #ship-to-different-address label span { display: inline; }
.woocommerce-checkout .woocommerce-terms-and-conditions-wrapper label.checkbox { font-weight: 400; }
.woocommerce-checkout .woocommerce-terms-and-conditions-wrapper input[type="checkbox"],
.woocommerce-checkout #ship-to-different-address input[type="checkbox"] { flex: 0 0 auto; width: 18px; height: 18px; margin: 2px 0 0; padding: 0; accent-color: var(--primary); }
.woocommerce-checkout .woocommerce-terms-and-conditions-wrapper a { color: var(--primary); text-decoration: underline; text-underline-offset: 3px; }
.woocommerce-checkout #ship-to-different-address { margin: 24px 0 16px; font-family: var(--font-body); font-size: 15px; line-height: 1.4; text-transform: none; }
.woocommerce-checkout .woocommerce-shipping-fields__field-wrapper { margin-bottom: 8px; }

/* Checkout: metodo di pagamento su una riga, logo a destra. */
.woocommerce-checkout #payment ul.payment_methods { border-bottom: 0; }
.woocommerce-checkout #payment ul.payment_methods li { position: relative; margin: 0 0 8px; padding: 16px 72px 16px 16px; border: 1px solid #191919; border-radius: 12px; background: #fff; }
.woocommerce-checkout #payment ul.payment_methods li > label { display: flex; align-items: center; margin: 0; font-size: 15px; font-weight: 700; line-height: 1.3; color: #191919; }
.woocommerce-checkout #payment ul.payment_methods li > label img { position: absolute; top: 50%; right: 16px; width: auto; height: 36px; max-width: 44px; margin: 0; transform: translateY(-50%); object-fit: contain; }
.woocommerce-checkout #payment div.payment_box { margin: 2px 0 0; padding: 0; border-radius: 0; background: transparent; font-size: 13px; line-height: 1.4; color: #666; }
.woocommerce-checkout #payment div.payment_box::before { display: none; }
.woocommerce-checkout #payment div.payment_box p { margin: 0; }
.woocommerce-checkout .woocommerce-terms-and-conditions-wrapper label.checkbox { gap: 10px; flex-wrap: nowrap; }
.woocommerce-checkout .woocommerce-terms-and-conditions-wrapper label.checkbox abbr.required { margin-left: -6px; }

/* Carrello laterale fuori dal layout quando è chiuso: su mobile allargava la pagina. */
.sidecart_panel { display: none; }
body.sidecart-open .sidecart_panel { display: grid; }
@starting-style {
  body.sidecart-open .sidecart_panel { transform: translateX(100%); }
}

/* Tessere footer: mai più larghe dello schermo. */
.footer-tiles > * { min-width: 0; max-width: 100%; }
.footer-tile { box-sizing: border-box; max-width: 100%; }

/* Slide: testi nascosti fino all'entrata GSAP, senza lampi. Se il JS non parte, compaiono dopo 3 secondi. */
@media (prefers-reduced-motion: no-preference) {
  .slider_block.swiper:not(.hero-motion-ready) [data-hero-entrance] { opacity: 0; animation: srHeroFallback 0s linear 3s forwards; }
}
@keyframes srHeroFallback { to { opacity: 1; } }

.footer-credit a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }

/* Carrello: header dello shop a tutta larghezza e pulsante pagamento. */
.shop_cart_header { width: 100vw; max-width: 100vw; margin-left: calc(50% - 50vw); margin-right: calc(50% - 50vw); }
.shop_cart_header + .shop_cart_page { padding-top: 0; }
.shop_cart_head { min-height: 0; padding: 28px 0 16px; justify-content: flex-end; margin-bottom: 0; }
.shop_cart_page a.shop_action_link { color: #fff; }
.shop_cart_page a.shop_action_link:hover { background: #bc0010; color: #fff; text-decoration: none; }
.cart_summary a.shop_action_link { display: flex; width: fit-content; margin-left: auto; padding: 14px 22px; border-radius: 12px; }

/* Prodotto: vantaggi sotto Aggiungi al carrello. */
.shop_benefits { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 4px 0 0; padding: 18px 0 0; border-top: 1px solid #222; list-style: none; }
.shop_benefits li,
.shop_benefits a { display: flex; flex-direction: column; align-items: center; gap: 8px; min-width: 0; text-align: center; font-size: 13px; font-weight: 600; line-height: 1.3; color: #fff; }
.shop_benefits a:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.shop_benefits svg { width: auto; height: 26px; color: #fff; }

/* Condivisione: solo icona bianca con bordo. */
.shop_share_links a,
.shop_share_links button { background: transparent; border-color: #f2f2f2; color: #fff; }

/* Shop: griglia alta quanto il suo contenuto, anche con pochi prodotti filtrati. */
.shop_layout { align-items: start; }

/* Checkout: messaggio e campo in rosso quando c'è un errore. */
.woocommerce-checkout .form-row .checkout-inline-error-message { margin: 6px 0 0; color: var(--primary); font-size: 13px; font-weight: 600; line-height: 1.35; }
.woocommerce-checkout .form-row.woocommerce-invalid input.input-text,
.woocommerce-checkout .form-row.woocommerce-invalid textarea,
.woocommerce-checkout .form-row.woocommerce-invalid select,
.woocommerce-checkout .form-row.woocommerce-invalid .select2-container .select2-selection--single { border-color: var(--primary); box-shadow: 0 0 0 1px var(--primary); }

/* Reparto corse: allineamenti */
.single_content a.MainButton { color: #fff; }
.page-id-10 .content_block_services_grid { margin-bottom: 64px; }
.page-id-10 .page_header { background-position: center 25%; }

/* Team */
.content_block_team { margin: 48px 0 64px; }
.team_grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.team_card { display: flex; flex-direction: column; overflow: hidden; border-radius: 20px; background: #1a1a1aa1; color: #fff; }
.team_card_media { aspect-ratio: 4 / 5; overflow: hidden; }
.team_card_media img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center top; border-radius: 0; }
.team_card_body { padding: 28px; }
.single_content .team_card_name, .team_card_name { margin: 0 0 6px; font-family: var(--font-heading); font-size: 26px; line-height: 1.15; font-weight: 900; text-transform: uppercase; }
.team_card_role { margin: 0 0 14px; color: var(--primary); font-size: 16px; font-weight: 600; line-height: 1.3; }
.team_card_text { margin: 0; font-size: 17px; line-height: 1.5; }
@media (max-width: 980px) { .team_grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .team_grid { grid-template-columns: 1fr; } }

/* Segnaposto prodotto */
.shop_media_placeholder img { display: block; width: 100%; height: auto; border-radius: 12px; }

/* Breadcrumb scheda prodotto */
.shop_breadcrumbs_product { margin-bottom: 16px; }

/* Nota spedizione carrello */
.cart_summary_shipping_note { margin: 0 0 16px; color: #aaa; font-size: 14px; line-height: 1.4; }

/* Variabili: pulsante unico, form WooCommerce nascosto */
.shop_variant_panel form.variations_form.cart { display: none; }

/* Avviso e gestione cookie */
.sr_cookie_banner { position: fixed; right: 20px; bottom: 20px; left: 20px; z-index: 9999; display: flex; align-items: center; justify-content: space-between; gap: 24px; max-width: 980px; margin: 0 auto; padding: 18px 22px; border: 1px solid #333; border-radius: 12px; background: #161616; color: #fff; box-shadow: 0 12px 40px rgb(0 0 0 / .5); }
.sr_cookie_banner[hidden] { display: none; }
.sr_cookie_banner p { margin: 0; font-size: 15px; line-height: 1.45; }
.sr_cookie_banner a, .sr_cookie_note a { color: #fff; text-decoration: underline; }
.sr_cookie_actions { display: flex; flex: none; gap: 10px; }
.sr_cookie_primary, .sr_cookie_secondary { padding: 10px 18px; border-radius: 8px; font: 700 15px var(--font-body); cursor: pointer; }
.sr_cookie_primary { border: 1px solid var(--primary); background: var(--primary); color: #fff; }
.sr_cookie_secondary { border: 1px solid #777; background: transparent; color: #fff; }
.sr_cookie_dialog { width: min(560px, calc(100% - 32px)); padding: 28px; border: 1px solid #333; border-radius: 14px; background: #161616; color: #fff; }
.sr_cookie_dialog::backdrop { background: rgb(0 0 0 / .65); }
.sr_cookie_dialog h2 { margin: 0 0 16px; font-size: 24px; }
.sr_cookie_row { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; padding: 14px 0; border-top: 1px solid #333; }
.sr_cookie_row p { margin: 6px 0 0; color: #bbb; font-size: 15px; line-height: 1.45; }
.sr_cookie_state { flex: none; color: #fff; font-size: 14px; font-weight: 700; }
.sr_cookie_state.is-off { color: #aaa; }
.sr_cookie_note { margin: 8px 0 18px; padding-top: 14px; border-top: 1px solid #333; color: #bbb; font-size: 14px; }
@media (max-width: 700px) { .sr_cookie_banner { right: 12px; bottom: 12px; left: 12px; flex-direction: column; align-items: stretch; gap: 14px; } .sr_cookie_actions > button { flex: 1; } }

/* Logo piu grande da mobile */
@media (max-width: 980px) { .header-brand { flex-basis: 170px; width: 170px; } }
@media (max-width: 400px) { .header-brand { flex-basis: 150px; width: 150px; } }

/* Slide: secondo pulsante nero e zoom-out dello sfondo al caricamento */
.slider_block .slider_button + .slider_button { margin-top: 12px; }
.slider_block .MainButton.slider_button_dark { background: #000; color: #fff; }
.slider_block .MainButton.slider_button_dark:hover, .slider_block .MainButton.slider_button_dark:focus-visible { background: #1f1f1f; color: #fff; }
.slider_block .single_slide > .single_slide_bg { animation: srSlideZoomOut 5s ease-out both; transform-origin: center; }
@keyframes srSlideZoomOut { from { transform: scale(1.1); } to { transform: scale(1); } }
@media (prefers-reduced-motion: reduce) { .slider_block .single_slide > .single_slide_bg { animation: none; } }

/* Slide da mobile: titolo piu piccolo su due righe, 40px sotto la testata */
@media (max-width: 640px) {
  .slider_block .single_slide { justify-content: flex-start; padding-top: 145px; }
  .slider_block .single_slide > .swiper-slide-container { margin-top: 40px; }
  .slider_block .single_slide h1 { font-size: min(8.6vw, 40px); line-height: 1.15; text-shadow: 6px 3px 10px #000; }
}

/* Slide: gerarchia titolo, sottotitolo e spazi */
.slider_block .single_slide h1 { font-size: clamp(44px, 5vw, 68px); line-height: 1.1; margin-bottom: 16px; }
.slider_block .single_slide h2 { font-size: clamp(18px, 1.7vw, 24px); line-height: 1.3; font-weight: 600; letter-spacing: .01em; margin-top: 0; margin-bottom: 24px; max-width: 760px; }
@media (max-width: 640px) {
  .slider_block .single_slide h1 { font-size: min(8.6vw, 40px); line-height: 1.15; margin-bottom: 12px; }
  .slider_block .single_slide h2 { font-size: min(4.2vw, 19px); line-height: 1.35; margin-bottom: 20px; }
}

/* Mobile: card dei blocchi a 30px dai bordi */
@media (max-width: 640px) {
  .page_content_wrap { padding-left: 30px; padding-right: 30px; }
  .hero_block { width: 100%; }
  .cards_block { padding-left: 0; padding-right: 0; }
  .single_content .services-section { margin-left: -30px; margin-right: -30px; padding-left: 30px; padding-right: 30px; }
}

/* Slide: pulsanti affiancati e piu piccoli */
.slider_buttons { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 12px; }
.slider_block .slider_buttons .slider_button { margin: 0; padding: 10px 20px; font-size: 15px; line-height: 1.2; border-radius: 10px; }

/* Menu mobile: sidebar laterale destra a tutta altezza */
.sidebar_top, .sidebar_cart { display: none; }
@media (max-width: 980px) {
  .site-header-fixed-animate { animation: none; }
  .site-header:has(.MenuItemsContainer.is-open) { z-index: 10000; }
  html:has(.MenuItemsContainer.is-open) { overflow: hidden; }
  .MenuItemsContainer {
    display: flex;
    position: fixed;
    inset: 0 0 0 auto;
    z-index: 30;
    width: min(340px, 86vw);
    height: 100dvh;
    max-height: none;
    padding: 20px 24px 28px;
    border-top: 0;
    align-items: stretch;
    background: #000;
    box-shadow: none;
    visibility: hidden;
    transform: translateX(100%);
    transition: transform .3s ease, visibility .3s;
  }
  .MenuItemsContainer.is-open { visibility: visible; transform: translateX(0); box-shadow: 0 0 0 100vmax rgb(0 0 0 / .6); }
  .MenuItemsContainer .menu_item { flex: none; width: 100%; padding: 16px 0; text-align: right; font-size: 15px; }
  .MenuItemsContainer .current_menu_item { background: transparent; border-left: 0; color: var(--primary); }
  .sidebar_top { display: flex; flex: none; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 28px; }
  .sidebar_logo { display: block; width: 170px; }
  .sidebar_logo img { display: block; width: 100%; height: auto; }
  .sidebar_close { width: 44px; height: 44px; padding: 0; border: 0; background: transparent; color: #fff; font-size: 36px; line-height: 1; cursor: pointer; }
  .sidebar_cart { display: inline-flex; flex: none; align-items: center; justify-content: center; gap: 10px; margin-top: auto; padding: 14px 18px; border: 0; border-radius: 10px; background: var(--primary); color: #fff; font: 700 16px var(--font-body); cursor: pointer; }
  .MenuItemsContainer .menu_item:last-of-type { margin-bottom: 24px; }
}
@media (prefers-reduced-motion: reduce) { .MenuItemsContainer { transition: none; } }

/* Sidebar: voci allineate a destra */
@media (max-width: 980px) {
  .MenuItemsContainer .menu_item { display: flex; justify-content: flex-end; text-align: right; }
  .MenuItemsContainer .menu_item:last-of-type { align-self: flex-end; width: auto; margin-top: 16px; padding: 10px 22px; border-bottom: 0; }
}

/* Slide alta quasi tutto lo schermo: sotto restano visibili gli sponsor */
.slider_block .single_slide { min-height: max(440px, calc(100svh - 170px)); }

/* Slide piu alta con i testi nella parte bassa della foto */
.slider_block .single_slide { min-height: max(480px, calc(100svh - 130px)); justify-content: flex-end; padding-top: 160px; padding-bottom: 48px; }
.slider_block .single_slide > .swiper-slide-container { margin-top: 0; }
@media (max-width: 640px) {
  .slider_block .single_slide { padding-bottom: 32px; }
}

/* Shop mobile: categorie a scorrimento, sotto il pulsante Filtri */
@media (max-width: 980px) {
  .shop_mobile_controls { display: block; margin-bottom: 16px; }
  .shop_category_badges { justify-content: flex-start; flex-wrap: nowrap; scrollbar-width: none; }
  .shop_category_badges::-webkit-scrollbar { display: none; }
  .shop_category_badges a { padding: 9px 18px; font-size: 16px; }
  .shop_toolbar { flex-direction: column; align-items: stretch; gap: 14px; }
  .shop_toolbar .shop_filter_toggle { width: 100%; }
  .shop_sidebar .shop_sort { justify-content: space-between; margin-bottom: 20px; white-space: normal; }
  .shop_sidebar .shop_sort select { min-width: 0; flex: 1; }
}

/* Desktop: testo della slide centrato e slide piu bassa per mostrare gli sponsor */
@media (min-width: 981px) {
  .slider_block .single_slide { min-height: max(440px, calc(100svh - 300px)); justify-content: center; padding-top: 120px; padding-bottom: 40px; }
}
