/*!
Theme Name: Hejdustarter
Theme URI: https://hejd.it/
Author: Matteo Aiale
Description: Custom Theme sviluppato per Sail La Dolce Vita
Version: 1.0.0
*/

/* ==========================================================================
   ROOT VARIABLES
   - Colori
   - Tipografia
   - Spacing
   - Breakpoints
========================================================================== */
:root {
  /* Colori */
  --color-primary: #212121;
  --color-secondary: #000;
  --color-accent: #3498db;
  --color-text: #212121;
  --color-text-hover: #000;
  --color-text-white: #ffffff;
  --color-text-light: #686868;
  --color-background: #ffffff;
  --color-bg-hover: #000;
  --color-background-light: #f8f9fa;
  --color-border: #e9ecef;
  --color-shadow: rgba(0, 0, 0, 0.1);

  /* Tipografia */
  --font-family-primary: "Helvetica Now Text", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-family-heading: "Helvetica Now Display", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-size-base: 1rem;
  --font-size-sm: 0.875rem;
  --font-size-lg: 1.125rem;
  --font-size-xl: 1.25rem;
  --font-size-2xl: 1.5rem;
  --font-size-3xl: 1.875rem;
  --font-size-4xl: 2.25rem;
  --font-size-5xl: 3rem;
  --font-size-6xl: 3.75rem;

  /* Line Height */
  --line-height-tight: 1.1;
  --line-height-normal: 1.5;
  --line-height-relaxed: 1.7;

  /* Spacing */
  --spacing-xs: 0.25rem;
  --spacing-sm: 0.5rem;
  --spacing-md: 1rem;
  --spacing-lg: 1.5rem;
  --spacing-xl: 2rem;
  --spacing-2xl: 3rem;
  --spacing-3xl: 4rem;
  --spacing-4xl: 6rem;
  --spacing-5xl: 8rem;

  /* Border Radius */
  --border-radius-sm: 0.25rem;
  --border-radius-md: 0.5rem;
  --border-radius-lg: 1rem;
  --border-radius-xl: 1.5rem;

  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);
  --shadow-xl: 0 20px 25px rgba(0, 0, 0, 0.1);

  /* Transitions */
  --transition-fast: 0.15s ease;
  --transition-normal: 0.3s ease;
  --transition-slow: 0.5s ease;
}

/* ==========================================================================
   SCREEN READER TEXT
   - Nasconde contenuti agli utenti normali
   - Rende il testo visibile solo ai lettori di schermo
========================================================================== */
.screen-reader-text {
  border: 0;
  clip: rect(1px, 1px, 1px, 1px);
  clip-path: inset(50%);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute !important;
  width: 1px;
  word-wrap: normal !important;
}

.screen-reader-text:focus {
  background-color: #f1f1f1;
  box-shadow: 0 0 2px 2px rgba(0, 0, 0, 0.6);
  clip: auto !important;
  clip-path: none;
  color: #21759b;
  display: block;
  font-size: 0.875rem;
  font-weight: 400;
  height: auto;
  left: 5px;
  line-height: normal;
  padding: 15px 23px 14px;
  text-decoration: none;
  top: 5px;
  width: auto;
  z-index: 100000;
}

/* ==========================================================================
   BASE STYLES
========================================================================== */

/* Migliora la resa dei font */
* {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

html {
  height: 100%;
  -webkit-text-size-adjust: none;
  -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
  font-feature-settings: normal;
  font-variation-settings: normal;
}

html,
body {
  margin: 0;
  font-family: var(--font-family-primary);
  font-size: var(--font-size-base);
  line-height: var(--line-height-normal);
  color: var(--color-text);
  background-color: var(--color-background);
}

body {
  position: relative;
  width: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

/* Reset margini sui titoli */
h1,
h2,
h3,
h4,
h5,
h6 {
  margin: 0;
  font-family: var(--font-family-heading);
  font-weight: 600;
  line-height: var(--line-height-tight);
  color: var(--color-text);
}

/* Paragrafi base */
p {
  font-family: var(--font-family-heading);
  margin: 0 0 var(--spacing-md) 0;
  color: var(--color-text);
}

/* Link */
a {
  color: var(--color-primary);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--color-text-hover);
  text-decoration: underline;
}

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

/* Lista */
ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

/* ==========================================================================
   BOOTSTRAP OVERRIDES
   ========================================================================== */

/* Override delle variabili Bootstrap per padding personalizzato */
@media(min-width: 1200px) {

  .container,
  .container-lg,
  .container-md,
  .container-sm,
  .container-xl,
  .container-xxl {
    max-width: 1550px;
  }
}


/* ==========================================================================
   BUTTON TYPES
   ========================================================================== */
/* Pulsante con sfondo (per immagini) */
.btn-filled {
  display: -webkit-inline-box;
  display: -ms-inline-flexbox;
  display: inline-flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  justify-content: center;
  width: 15rem;
  height: 2.75rem;
  font-size: .875rem;
  font-weight: 500;
  line-height: 100%;
  text-transform: uppercase;
  text-align: center;
  border: none;
  border-radius: 0;
  background-color: var(--color-text-white);
  color: var(--color-text);
  text-decoration: none;
  cursor: pointer;
  -webkit-transition: color .3s ease-in-out, background-color .3s ease-in-out, text-underline-offset .3s ease-in-out;
  transition: color .3s ease-in-out, background-color .3s ease-in-out, text-underline-offset .3s ease-in-out;
}

.btn-filled:hover {
  background-color: var(--color-bg-hover);
  color: var(--color-text-white);
  text-decoration: none;
}

/* Pulsante sottolineato (per sfondi chiari) */
.btn-outline {
  font-size: 0.8125rem;
  font-weight: 500;
  line-height: normal;
  letter-spacing: 1px;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: horizontal;
  -webkit-box-direction: normal;
  -ms-flex-direction: row;
  flex-direction: row;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  justify-content: center;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  -ms-flex-line-pack: center;
  background-color: transparent;
  color: var(--color-text);
  text-decoration: none;
  border: none;
  border-bottom: 2px solid var(--color-text);
  border-radius: 0;
  position: relative;
  transition: all 0.3s ease;
  width: max-content;
}

.btn-outline:hover {
  color: var(--color-text-hover);
  ;
  text-decoration: none;
  border-bottom-color: var(--color-text-hover);
}




/* Sezione duplicata rimossa - ora in posizione corretta */

/* ==========================================================================
   Z-INDEX LAYERS
   ========================================================================== */
.z-fallback {
  position: absolute;
  z-index: 1;
}

.z-background-image {
  position: absolute;
  z-index: 1;
  object-fit: cover;
  object-position: center;
  width: 100%;
  height: 100%;
}

.z-video {
  position: absolute;
  z-index: 2;
  object-fit: cover;
  object-position: center;
  width: 100%;
  height: 100%;
}

.z-overlay {
  position: absolute;
  z-index: 2;
}

.z-content {
  position: relative;
  z-index: 10;
}

/* ==========================================================================
   HERO SECTION
   - Video/immagine di sfondo
   - Contenuto testuale
   - Pulsante CTA
   - Indicatore di scroll
========================================================================== */

.hero-section {
  position: relative;
  height: 75vh;
  min-height: 37.5rem;
  display: flex;
  align-items: center;
  overflow: hidden;
}

@media(min-width: 768px) {
  .hero-section {
    height: calc(100vh - 66px);
  }
}

.hero-section__fallback {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--color-background-light);
}

.hero-section__background-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.hero-section__background-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero-section__video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: 2;
}

.hero-section__overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: -webkit-gradient(linear, left top, left bottom, color-stop(35.4%, rgba(0, 0, 0, 0)), color-stop(89.05%, rgba(0, 0, 0, 0.6)));
  background: linear-gradient(180deg, rgba(0, 0, 0, 0) 35.4%, rgba(0, 0, 0, 0.6) 89.05%);
  pointer-events: none;
  z-index: 2;
}

.hero-section__content {
  position: relative;
  width: 100%;
  text-align: center;
  color: var(--color-text);
  height: 100%;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.hero-section__text-content {
  margin-bottom: var(--spacing-xl);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-section__apice {
  font-size: 0.75rem;
  font-weight: 500;
  line-height: 1.142;
  letter-spacing: 1px;
  margin-bottom: 0;
  text-transform: uppercase;
  color: var(--color-text-white);
  text-align: center;
}

.hero-section__title {
  font-size: 1.5rem;
  font-weight: 500;
  line-height: 1.142;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin-top: var(--spacing-sm);
  color: var(--color-text-white);
  text-align: center;
}

@media (min-width: 768px) {
  .hero-section__title {
    font-size: 2rem;
  }
}

.hero-section__text-area p {
  margin-bottom: 0;
  font-size: 14px;
  letter-spacing: .5px;
  line-height: 24px;
  max-width: 500px;
  text-align: center;
  margin-top: var(--spacing-sm);
  color: var(--color-background);
}

.hero-section__cta {
  margin-top: var(--spacing-sm);
}

@media(min-width: 768px) {
  .hero-section__text-area p {
    font-size: 1rem;
  }
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .hero-section {
    min-height: 500px;
  }
}

/* ==========================================================================
   SECTION FOUR - HERO STYLE
   - Video/immagine di sfondo
   - Contenuto testuale
   - Pulsante CTA
   - Overlay per leggibilità
========================================================================== */

.section-four {
  position: relative;
  height: 80vh;
  min-height: 37.5rem;
  display: flex;
  align-items: center;
  overflow: hidden;
}

@media(min-width: 768px) {
  .section-four {
    height: 100vh;
  }
}

.section-four__fallback {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--color-background-light);
}

.section-four__background-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.section-four__background-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.section-four__video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: 2;
}

.section-four__overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: -webkit-gradient(linear, left top, left bottom, color-stop(35.4%, rgba(0, 0, 0, 0)), color-stop(89.05%, rgba(0, 0, 0, 0.6)));
  background: linear-gradient(180deg, rgba(0, 0, 0, 0) 35.4%, rgba(0, 0, 0, 0.6) 89.05%);
  pointer-events: none;
  z-index: 2;
}

.section-four__content {
  position: relative;
  width: 100%;
  text-align: center;
  color: var(--color-background);
  height: 100%;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.section-four__text-content {
  margin-bottom: var(--spacing-xl);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.section-four__apice {
  font-size: 0.75rem;
  font-weight: 500;
  line-height: 1.142;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: var(--spacing-sm);
  color: var(--color-text-white);
  text-align: center;
}

.section-four__title {
  font-size: 1.5rem;
  font-weight: 500;
  line-height: 1.142;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin-bottom: var(--spacing-lg);
  color: var(--color-text-white);
  text-align: center;
  max-width: 700px;
}

.section-four__cta {
  margin-top: var(--spacing-md);
}

.section-four__text-area {
  margin-bottom: var(--spacing-xs);
  text-align: center;
}

.section-four__text-area p {
  margin-bottom: 0;
  font-size: 1rem;
  letter-spacing: .5px;
  line-height: 24px;
  max-width: 500px;
  text-align: center;
  color: var(--color-background);
}

.lang-ar .section-four__text-area p {
  max-width: 100%;
  text-align: right;
}

@media(min-width: 992px) {
  .lang-ar .section-four__text-area p {
    max-width: 100%;
    text-align: center;
  }

}

/* Responsive adjustments */
@media (max-width: 768px) {
  .section-four {
    min-height: 500px;
  }
}

/* ==========================================================================
   SECTION TWO
   ========================================================================== */
.section-two {
  padding-top: var(--spacing-2xl);
}

@media(min-width: 576px) {
  .section-two {
    padding-top: var(--spacing-2xl);
  }
}

.section-two__media {
  position: relative;
  min-height: 200px;
  overflow: hidden;
  aspect-ratio: 1;
}

@media(min-width: 576px) {
  .section-two__media {
    min-height: 400px;
  }
}

.section-two__media .z-fallback {
  background-color: var(--color-background-light);
}

.section-two__video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: 2;
}

.section-two__content {
  padding-bottom: var(--spacing-2xl);
  display: flex;
  align-items: center;
  flex-direction: column;
}

@media(min-width: 992px) {
  .section-two__content {
    padding: 0;
  }
}

.section-two__row {
  flex-direction: column-reverse;
}

/* Desktop: row normale */
@media(min-width: 992px) {
  .section-two__row {
    flex-direction: row;
  }
}

.section-two__apice {
  font-size: 0.75rem;
  font-weight: 500;
  line-height: 1.142;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--color-text-light);
  text-align: center;
  margin-bottom: var(--spacing-md);

}

.section-two__title {
  font-size: 1.5rem;
  font-weight: 500;
  line-height: 1.142;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--color-text);
  text-align: center;
  max-width: 420px;
}

.section-two__text p {
  margin-bottom: 0;
  font-size: 1rem;
  letter-spacing: .5px;
  line-height: 24px;
  max-width: 500px;
  text-align: center;
  margin-top: var(--spacing-md);
}

@media(min-width: 992px) {
  .section-two__text p {
    margin-top: var(--spacing-lg);
  }
}

.section-two__cta {
  margin-top: var(--spacing-lg);
}

/* ==========================================================================
   SECTION THREE - NEW COLLECTION (Swiper)
   ========================================================================== */
.section-three {
  padding: var(--spacing-4xl) 0;
  overflow: hidden;
}

/* Duplicazione rimossa - già definito sopra */

.section-three__header {
  display: flex;
  margin-bottom: var(--spacing-xl);
  flex-direction: column;
  align-items: center;
}

/* RTL per Section Three Header - allineamento a destra prima dei 992px */
.lang-ar .section-three__header {
  align-items: flex-start;
  text-align: right;
}

.lang-ar .section-three__header h2,
.lang-ar .section-three__header p {
  text-align: right;
}

/* Da 992px in su - centrato */
@media(min-width: 992px) {
  .lang-ar .section-three__header {
    align-items: center;
    text-align: center;
  }

  .lang-ar .section-three__header h2,
  .lang-ar .section-three__header p {
    text-align: center;
  }
}

h4.section-three__apice {
  font-size: 0.75rem;
  font-weight: 500;
  line-height: 1.142;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: var(--spacing-md);
  color: var(--color-text-light);
  text-align: center;
}

.section-three__title {
  font-size: 1.5rem;
  font-weight: 500;
  line-height: 1.142;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--color-text);
  text-align: center;
}

.section-three__subtitle {
  margin-bottom: 0;
  font-size: 1rem;
  letter-spacing: .5px;
  line-height: 24px;
  max-width: 500px;
  text-align: center;
  margin-top: var(--spacing-md);
}

.section-three__swiper {
  overflow: visible;
  margin-left: 0;
  margin-right: 0;
  position: relative;
}

@media(min-width: 768px) {
  .section-three__swiper-container {
    padding-left: calc(var(--bs-gutter-x) * .5);
    padding-right: 0;
    overflow: hidden;
  }

  .lang-ar .section-three__swiper-container {
    padding-right: calc(var(--bs-gutter-x) * .5);
    padding-left: 0;
  }
}

/* Rimosso il gradiente per permettere il peek effect completo */

.section-three__swiper .swiper-wrapper {
  margin: 0;
  padding: 0;
}

/* Swiper slide dimensions with peek effect */
.section-three__swiper .swiper-slide {
  width: 100%;
  flex-shrink: 0;
  height: auto;
}

.product-link {
  cursor: pointer;
}

.product-link:hover {
  text-decoration: none;
}

/* Bootstrap breakpoints for peek effect */
/* xs: 0-575px - Mobile */
@media (min-width: 0px) {
  .section-three__swiper .swiper-slide {
    width: 95%;
  }
}

/* sm: 576px+ - Small tablets */
@media (min-width: 576px) {
  .section-three__swiper .swiper-slide {
    width: 95%;
  }
}

/* md: 768px+ - Tablets */
@media (min-width: 768px) {
  .section-three__swiper .swiper-slide {
    width: 48%;
  }
}

/* lg: 992px+ - Desktop */
@media (min-width: 992px) {
  .section-three__swiper .swiper-slide {
    width: 48%;
  }
}

/* xl: 1200px+ - Large desktop */
@media (min-width: 1200px) {
  .section-three__swiper .swiper-slide {
    width: 32%;
  }
}

.section-three__product {
  /*background-color: var(--color-background);*/
  border-radius: 0;
  overflow: hidden;
  height: 100%;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.section-three__product-image {
  position: relative;
  overflow: hidden;
  aspect-ratio: 1/1;
  border:1px solid #f9f4ec;
}

.section-three__product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

/* Immagine Hover */
.section-three__product-image-main {
  transition: opacity var(--transition-fast);
}

.section-three__product-image-hover {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity var(--transition-fast);
}

.section-three__product-image-hover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.section-three__product:hover .section-three__product-image-main {
  opacity: 0;
}

.section-three__product:hover .section-three__product-image-hover {
  opacity: 1;
}

/* Hover effects rimossi - da gestire successivamente */

.section-three__product-content {
  display: flex;
  flex-direction: column;
  padding: var(--spacing-md) var(--spacing-xs) 0 var(--spacing-xs);
  justify-content: flex-start;
  text-align: start;
  cursor: pointer;
}

/* Tassonomia prodotti */
.section-three__product-categories {
  display: flex;
  flex-wrap: wrap;
  margin-bottom: 0.15rem;
  gap: var(--spacing-sm);
}

.section-three__product-category {
  display: inline-block;
  font-size: 10px;
  font-style: normal;
  font-weight: 400;
  line-height: 12px;
  letter-spacing: 1px;
  margin-bottom: 0;
  text-transform: uppercase;
  color: var(--color-text-light);
  cursor: pointer;
}

/* Impedisce alla foto di essere cliccabile */
.section-three__product-image {
  pointer-events: none;
}


/* Testo breve prodotto */
.section-three__product-short {
  font-size: 14px;
  color: var(--color-text);
  line-height: 15px;
  margin-bottom: 0;
  cursor: pointer;
}

/* Prezzo prodotto */
.section-three__product-price {
  font-size: 16px;
  font-weight: 600;
  color: var(--color-text);
  line-height: 1.2;
  margin-top: var(--spacing-sm);
  margin-bottom: 0;
  cursor: pointer;
}

.section-three__product-title {
  text-overflow: ellipsis;
  font-size: .875rem;
  font-style: normal;
  font-weight: 500;
  line-height: 24px;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  margin-bottom: var(--spacing-md);
  color: var(--color-text);
  cursor: pointer;
}

.section-three__product-excerpt {
  font-size: 0.875rem;
  line-height: 1.5;
  color: var(--color-text-light);
  margin-bottom: var(--spacing-lg);
  flex-grow: 1;
}

/* ==========================================================================
   SECTION FIVE - REPEATER CAROUSEL
   ========================================================================== */

.section-five {
  padding: var(--spacing-4xl) 0;
  overflow: hidden;
}

.section-five__header {
  text-align: center;
  margin-bottom: var(--spacing-xl);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.section-five__apice {
  font-size: 0.75rem;
  font-weight: 500;
  line-height: 1.142;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--color-primary);
  margin-bottom: var(--spacing-sm);
}

.section-five__title {
  font-size: 2rem;
  font-weight: 500;
  line-height: 1.142;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--color-text);
}

.section-five__subtitle {
  margin-bottom: 0;
  font-size: 1rem;
  letter-spacing: .5px;
  line-height: 24px;
  max-width: 500px;
  text-align: center;
  margin-top: var(--spacing-md);
}

.lang-ar .section-five__subtitle {
  max-width: 100%;
}

.lang-ar .section-six__content {
  max-width: 100%;
  direction: rtl;
  text-align: right;
  align-items: flex-start;
  padding-right: 0;
}

@media(min-width: 992px) {
  .lang-ar .section-six__content {
    padding-right: 3rem;
  }
}

/* Container per il titolo (padding normale) - RIMOSSO */

/* Container per lo Swiper (senza padding destro per peek effect) */
@media(min-width: 768px) {
  .section-five__swiper-container {
    padding-left: calc(var(--bs-gutter-x) * .5);
    padding-right: 0;
  }

  .lang-ar .section-five__swiper-container {
    padding-right: calc(var(--bs-gutter-x) * .5);
    padding-left: 0;
  }
}

/* Swiper container */
.section-five__swiper {
  width: 100%;
  height: auto;
  overflow: visible;
}

.section-five__swiper .swiper-wrapper {
  display: flex;
  align-items: stretch;
}

.section-five__swiper .swiper-slide {
  width: 100%;
  flex-shrink: 0;
  height: auto;
}

/* Bootstrap breakpoints for peek effect */
/* xs: 0-575px - Mobile */
@media (min-width: 0px) {
  .section-five__swiper .swiper-slide {
    width: 95%;
  }
}

/* sm: 576px+ - Small tablets */
@media (min-width: 576px) {
  .section-five__swiper .swiper-slide {
    width: 95%;
  }
}

/* md: 768px+ - Tablets */
@media (min-width: 768px) {
  .section-five__swiper .swiper-slide {
    width: 48%;
  }
}

/* lg: 992px+ - Desktop */
@media (min-width: 992px) {
  .section-five__swiper .swiper-slide {
    width: 48%;
  }
}

/* xl: 1200px+ - Large desktop */
@media (min-width: 1200px) {
  .section-five__swiper .swiper-slide {
    width: 32%;
  }
}

/* Item styling */
.section-five__item {
  position: relative;
  overflow: hidden;
  height: 70vh;
}

@media(min-width: 768px) {
  .section-five__item {
    height: 90vh;
  }
}

/* Media container rimosso - ora tutto è in position absolute */

.section-five__item-fallback {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--color-background-light);
  z-index: 1;
}

.section-five__item-background-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.section-five__item-background-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.section-five__item-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: 2;
}

.section-five__item-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  display: block;
  width: 100%;
  height: 100%;
  background: -webkit-gradient(linear, left top, left bottom, color-stop(35.4%, rgba(0, 0, 0, 0)), color-stop(89.05%, rgba(0, 0, 0, 0.6)));
  background: linear-gradient(180deg, rgba(0, 0, 0, 0) 35.4%, rgba(0, 0, 0, 0.6) 89.05%);
  z-index: 2;
}

.section-five__item-content {
  position: absolute;
  left: 50%;
  -webkit-transform: translate(-50%, 0);
  transform: translate(-50%, 0);
  bottom: var(--spacing-lg);
  text-align: center;
  color: var(--color-text-white);
  z-index: 10;
  max-width: 90%;
}

.section-five__item-title {
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1.3;
  color: var(--color-text-white);
  margin-bottom: var(--spacing-sm);
}

.section-five__item-text {
  font-size: 0.875rem;
  line-height: 1.5;
  color: var(--color-text-white);
  margin-bottom: var(--spacing-md);
  opacity: 0.9;
}

.section-five__no-items {
  text-align: center;
  padding: var(--spacing-xl);
  color: var(--color-text-light);
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .section-five__item-content {
    bottom: var(--spacing-md);
    max-width: 95%;
  }

  .section-five__title {
    font-size: 1.5rem;
  }
}

/* ==========================================================================
   SECTION SIX - TWO COLUMN LAYOUT (Copia di Section Two)
   ========================================================================== */
.section-six__row {
  flex-direction: column-reverse;
}

/* Desktop: row normale */
@media(min-width: 992px) {
  .section-six__row {
    flex-direction: row;
  }
}

.section-six__media {
  position: relative;
  min-height: 200px;
  overflow: hidden;
  aspect-ratio: 1;
}

@media(min-width: 576px) {
  .section-six__media {
    min-height: 400px;
  }
}

.section-six__media .z-fallback {
  background-color: var(--color-background-light);
}

.section-six__content {
  padding-bottom: var(--spacing-2xl);
  display: flex;
  align-items: center;
  flex-direction: column;
}

@media(min-width: 992px) {
  .section-six__content {
    padding: 0;
  }
}

.section-six__apice {
  font-size: 0.75rem;
  font-weight: 500;
  line-height: 1.142;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: var(--spacing-md);
  color: var(--color-text-light);
  text-align: center;
}

.section-six__title {
  font-size: 1.5rem;
  font-weight: 500;
  line-height: 1.142;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin-bottom: var(--spacing-lg);
  color: var(--color-text);
  text-align: center;
}

.section-six__text p {
  margin-bottom: 0;
  font-size: 1rem;
  letter-spacing: .5px;
  line-height: 24px;
  max-width: 500px;
  text-align: center;
}

.lang-ar .section-six__apice{
	text-align: right;
}

.lang-ar .section-six__title{
	 text-align: right;
}
.lang-ar .section-six__text p{
	 text-align: right;
}

.section-six__cta {
  margin-top: var(--spacing-lg);
}

/* ==========================================================================
   SECTION SEVEN - SIMPLE TEXT
   ========================================================================== */
.section-seven {
  padding: calc(var(--spacing-4xl) + var(--spacing-lg)) 0;
  background-color: var(--color-background);
}

.section-seven__content {
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

.section-seven__apice {
  font-size: 0.75rem;
  font-weight: 500;
  line-height: 1.142;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: var(--spacing-lg);
  color: var(--color-text-light);
}

.section-seven__title {
  font-size: 2.25rem;
  font-weight: 500;
  line-height: 1.142;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin-bottom: var(--spacing-xl);
  color: var(--color-text);
}

.section-seven__text p {
  margin-bottom: var(--spacing-md);
  font-size: 1.125rem;
  letter-spacing: .5px;
  line-height: 1.4;
  max-width: 650px;
  margin-left: auto;
  margin-right: auto;
  color: var(--color-text);
}

.section-seven__text p:last-child {
  margin-bottom: 0;
}

.section-seven__cta {
  margin-top: var(--spacing-xl);
}

.section-seven__cta .btn-filled {
  background-color: var(--color-text);
  color: var(--color-background);
  border: 2px solid var(--color-text);
}

.section-seven__cta .btn-filled:hover {
  background-color: var(--color-bg-hover);
  border-color: var(--color-bg-hover);
  color: var(--color-text-white);
}

/* Responsive adjustments */
@media (max-width: 767.98px) {
  .section-seven {
    padding: var(--spacing-4xl) 0;
  }

  .section-seven__title {
    font-size: 1.75rem;
  }

  .section-seven__text p {
    font-size: 1rem;
  }
}

/* ===============================
   CONTENT WRAPPER
   =============================== */

.content-wrapper {
  position: relative;
  min-height: 100vh;
}

/* Assicuriamo che il body sia normale */
body {
  overflow-x: auto;
  overflow-y: auto;
}

/* Assicuriamo che html sia normale */
html {
  overflow-x: auto;
  overflow-y: auto;
}

/* ===============================
   ARCHIVE & TAXONOMY STYLES
   =============================== */

/* Products Archive Header */

.products-archive-header {
  padding-top: var(--spacing-4xl);
}

@media (max-width: 767px) {
  .products-archive-header {
    padding-top: var(--spacing-lg);
  }
}

.products-archive-title {
  font-size: var(--font-size-3xl);
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: var(--spacing-md);
}

.products-archive-description {
  font-size: var(--font-size-lg);
  color: var(--color-text-muted);
  max-width: 600px;
  margin: 0 auto;
}

/* Category Header */

.category-title {
  font-size: var(--font-size-3xl);
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: var(--spacing-md);
}

.category-description {
  font-size: var(--font-size-lg);
  color: var(--color-text-muted);
  max-width: 600px;
  margin: 0 auto var(--spacing-lg);
}

/* Filters */

.products-filters-content,
.category-filters-content {
  text-align: center;
}

.products-filters-content h3,
.category-filters-content h3 {
  font-size: var(--font-size-lg);
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: var(--spacing-md);
}

.category-filters,
.subcategory-filters {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--spacing-md);
}

.filter-link {
  display: inline-block;
  padding: var(--spacing-sm) var(--spacing-md);
  background: var(--color-background-light);
  color: var(--color-text);
  text-decoration: none;
  border-radius: var(--border-radius);
  border: 1px solid var(--color-border);
  font-size: var(--font-size-sm);
  font-weight: 500;
  transition: all var(--transition-fast);
}

.filter-link:hover,
.filter-link.active {
  background: var(--color-bg-hover);
  color: var(--color-text-white);
  border-color: var(--color-bg-hover);
  text-decoration: none;
}

/* Product Cards */
.product-card {
  background: var(--color-background-white);
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
  height: 100%;
  display: flex;
  flex-direction: column;
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.product-card-image {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4/3;
}

.product-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-fast);
}

.product-card:hover .product-card-image img {
  transform: scale(1.05);
}

.product-card-content {
  padding: var(--spacing-lg);
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.product-card-title {
  font-size: var(--font-size-lg);
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: var(--spacing-sm);
}

.product-card-title a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-fast);
}

.product-card-title a:hover {
  color: var(--color-text-hover);
}

.product-card-excerpt {
  font-size: var(--font-size-sm);
  color: var(--color-text-muted);
  line-height: 1.4;
  margin-bottom: var(--spacing-md);
  flex-grow: 1;
}

.product-card-meta {
  margin-bottom: var(--spacing-md);
}

.product-categories {
  display: flex;
  flex-wrap: wrap;
  gap: var(--spacing-xs);
}

.product-card-actions {
  margin-top: auto;
}

/* No Products Message */
.no-products-message {
  padding: var(--spacing-2xl) 0;
}

.no-products-message h3 {
  font-size: var(--font-size-xl);
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: var(--spacing-md);
}

.no-products-message p {
  font-size: var(--font-size-base);
  color: var(--color-text-muted);
  margin-bottom: var(--spacing-lg);
}

/* Pagination */
.products-pagination,
.category-pagination {
  display: flex;
  justify-content: center;
  margin-top: var(--spacing-2xl);
}

.products-pagination .page-numbers,
.category-pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 var(--spacing-sm);
  margin: 0 var(--spacing-xs);
  background: var(--color-background-light);
  color: var(--color-text);
  text-decoration: none;
  border-radius: var(--border-radius);
  border: 1px solid var(--color-border);
  font-size: var(--font-size-sm);
  font-weight: 500;
  transition: all var(--transition-fast);
}

.products-pagination .page-numbers:hover,
.products-pagination .page-numbers.current,
.category-pagination .page-numbers:hover,
.category-pagination .page-numbers.current {
  background: var(--color-primary);
  color: var(--color-text-white);
  border-color: var(--color-primary);
}

.products-pagination .page-numbers.prev,
.products-pagination .page-numbers.next,
.category-pagination .page-numbers.prev,
.category-pagination .page-numbers.next {
  padding: 0 var(--spacing-md);
}

/* Responsive */
@media (max-width: 768px) {

  .products-archive-title,
  .category-title {
    font-size: var(--font-size-2xl);
  }

  .category-filters,
  .subcategory-filters {
    flex-direction: column;
    align-items: center;
  }

  .filter-link {
    width: 100%;
    max-width: 300px;
    text-align: center;
  }

  .product-card-content {
    padding: var(--spacing-md);
  }

  .product-card-title {
    font-size: var(--font-size-base);
  }
}

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

.footer-section {
  background-color: #000000;
  color: #ffffff;
}

/* Sezione Marchi di Sicurezza */
.footer-security {
  padding: var(--spacing-4xl) 0 var(--spacing-2xl) 0;
  border-bottom: 1px solid #fff;
}

.footer-security__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--spacing-xl);
  max-width: 800px;
  margin: 0 auto;
}

.footer-security__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: var(--spacing-sm);
}

.footer-security__item svg {
  transition: transform 0.3s ease;
}

.footer-security__item:hover svg {
  transform: scale(1.05);
}

.footer-security__item span {
  font-size: 0.875rem;
  font-weight: 500;
  color: #ffffff;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Sezione Navigazione */
.footer-navigation {
  padding: var(--spacing-2xl) 0;
  border-bottom: 1px solid #fff;
}

.footer-nav {
  display: flex;
  justify-content: center;
  gap: var(--spacing-2xl);
  flex-wrap: wrap;
}

.footer-nav__link {
  color: #ffffff;
  text-decoration: none;
  font-size: 1rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: color 0.3s ease;
  position: relative;
}

.footer-nav__link:hover {
  color: #9CA3AF;
}

.footer-nav__link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: #ffffff;
  transition: width 0.3s ease;
}

.footer-nav__link:hover::after {
  width: 100%;
}

/* Sezione Social */
.footer-social {
  padding: var(--spacing-2xl) 0;
  border-bottom: 1px solid #374151;
}

.footer-social__content {
  text-align: center;
}

.footer-social__title {
  font-size: 1.25rem;
  font-weight: 500;
  color: #ffffff;
  margin-bottom: var(--spacing-lg);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.footer-social__icons {
  display: flex;
  justify-content: center;
  gap: var(--spacing-lg);
}

.footer-social__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  background-color: #1F2937;
  border-radius: 50%;
  color: #ffffff;
  text-decoration: none;
  transition: all 0.3s ease;
}

.footer-social__icon:hover {
  background-color: #374151;
  transform: translateY(-2px);
  color: #ffffff;
}

.footer-social__icon svg {
  width: 24px;
  height: 24px;
}

/* Footer Bottom */
.footer-bottom {
  padding: var(--spacing-xl) 0;
}

.footer-bottom__content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--spacing-md);
}

.footer-bottom__link {
  color: #ffffff;
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  transition: color 0.3s ease;
}

.footer-bottom__link:hover {
  color: #9CA3AF;
}

.footer-bottom__credit {
  color: #9CA3AF;
  font-size: 0.875rem;
  margin: 0;
}

.footer-bottom__credit a {
  color: #ffffff;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
}

.footer-bottom__credit a:hover {
  color: #9CA3AF;
}

/* Responsive Footer */
@media (max-width: 991.98px) {
  .footer-security__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--spacing-lg);
  }

  .footer-nav {
    gap: var(--spacing-lg);
  }
}

@media (max-width: 767.98px) {
  .footer-security {
    padding: var(--spacing-2xl) 0 var(--spacing-xl) 0;
  }

  .footer-security__grid {
    grid-template-columns: 1fr;
    gap: var(--spacing-md);
  }

  .footer-navigation {
    padding: var(--spacing-xl) 0;
  }

  .footer-nav {
    flex-direction: column;
    gap: var(--spacing-md);
  }

  .footer-social {
    padding: var(--spacing-xl) 0;
  }

  .footer-bottom__content {
    flex-direction: column;
    text-align: center;
  }
}

/* ==========================================================================
   NAVIGATION MENUS
   - Main navigation
   - Footer navigation
   - Mobile navigation
========================================================================== */

/* Header Layout */
.header-content {
  position: relative;
  z-index: 1000;
  padding-top: var(--spacing-sm);
  padding-bottom: var(--spacing-sm);
  background-color: var(--color-background);
}

/* Logo centrato */
.logo {
  display: flex;
  justify-content: center;
  align-items: center;
}

img.custom-logo {
  height: 50px;
  width: auto;
  max-width: 100%;
}

/*Pulsante Contatti desktop*/
a.btn-filled.btn-nav-desktop {
  background: var(--color-text);
  color: #fff;
  width: fit-content;
  padding-left: 24px;
  padding-right: 24px;
  height: fit-content;
  padding-top: 12px;
  padding-bottom: 12px;
  font-size: 0.75rem;
}

a.btn-filled.btn-nav-desktop:hover {
  background: var(--color-bg-hover);
  color: #fff;
}

/* SVG Icone Header */
.navb-svg {
  width: 16px;
  height: 16px;
  margin-right: 4px;
  display: inline-block;
  vertical-align: middle;
}

a.lang-switch-text span {
  display: inline-flex;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 4px;
  z-index: 10001;
  position: relative;
}

/* Show mobile menu toggle on mobile */
@media (max-width: 991.98px) {
  .mobile-menu-toggle {
    display: flex;
  }
}

/* Hide mobile menu toggle on desktop */
@media (min-width: 992px) {
  .mobile-menu-toggle {
    display: none;
  }
}


.main-menu {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: var(--spacing-lg);
}

.main-menu li {
  position: relative;
}

.main-menu a {
  color: var(--color-text);
  text-decoration: none;
  font-weight: 400;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: color var(--transition-fast);
}

.main-menu a:hover {
  color: var(--color-secondary);
}

/* Header CTA */
.header-cta {
  display: flex;
  align-items: center;
}

/* Hide header CTA on mobile */
@media (max-width: 991.98px) {
  .header-cta {
    display: none;
  }
}

/* Language Switch Text */
.lang-switch-text {
  color: var(--color-text);
  text-decoration: none;
  font-weight: 400;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: var(--spacing-sm) var(--spacing-md);
  border: 1px solid #111111;
  border-radius: 0;
  transition: all var(--transition-fast);
  background-color: transparent;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-right: 8px;
}

.lang-switch-text:hover {
  color: var(--color-secondary);
  border-color: var(--color-secondary);
  background-color: var(--color-background-light);
  text-decoration: none;
}


.hamburger-line {
  width: 24px;
  height: 2px;
  background-color: var(--color-text);
  transition: all 0.3s ease;
  transform-origin: center;
}
.mobile-menu-toggle.active .hamburger-line {
  background-color: var(--color-background);

}

.mobile-menu-toggle.active .hamburger-line:nth-child(1) {
  transform: rotate(45deg) translate(3px, 5px);
}

.mobile-menu-toggle.active .hamburger-line:nth-child(2) {
  opacity: 0;
}

.mobile-menu-toggle.active .hamburger-line:nth-child(3) {
  transform: rotate(-45deg) translate(4px, -6px);
}

/* Mobile Menu Overlay */
.mobile-menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.9);
  z-index: 9999;
  display: none;
  opacity: 0;
  transition: opacity 0.3s ease;
}


.mobile-menu-overlay.active {
  display: block;
  opacity: 1;
}

.mobile-menu-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  height: 100%;
  padding: var(--spacing-xl);
  text-align: center;
}

.mobile-navigation {
  margin-bottom: var(--spacing-2xl);
}

.mobile-menu {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: var(--spacing-lg);
}

.mobile-menu li {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.mobile-menu a {
  color: var(--color-text-white);
  text-decoration: none;
  font-size: var(--font-size-xl);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 2px;
  transition: color var(--transition-fast);
  display: block;
  padding: var(--spacing-md) 0;
}

.mobile-menu a:hover {
  color: var(--color-accent);
}

.mobile-menu-cta {
  opacity: 0;
  transform: translateY(30px);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--spacing-lg);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.mobile-menu-cta .btn-filled {
  background-color: var(--color-text-white);
  color: var(--color-text);
  padding: var(--spacing-md) var(--spacing-xl);
  font-size: var(--font-size-lg);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.mobile-lang-switch {
  color: var(--color-background);
  text-decoration: none;
  font-weight: 400;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  width: 15rem;
  height: 2.75rem;
  padding: var(--spacing-sm) var(--spacing-md);
  border: 1px solid var(--color-background);
  border-radius: 0;
  transition: all var(--transition-fast);
  display: flex;
  align-items: center;
  justify-content: center;
}

.mobile-lang-switch:hover {
  color: var(--color-bg-hover);
  border-color: var(--color-background);
  background-color: var(--color-background);
  text-decoration: none;
}

/* Footer Navigation */
.footer-menu {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: var(--spacing-2xl);
  flex-wrap: wrap;
  justify-content: center;
}

.footer-menu li {
  position: relative;
}

.footer-menu a {
  color: #ffffff;
  text-decoration: none;
  font-size: 1rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: color 0.3s ease;
  position: relative;
}

.footer-menu a:hover {
  color: #9CA3AF;
}

.footer-menu a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: #ffffff;
  transition: width 0.3s ease;
}

.footer-menu a:hover::after {
  width: 100%;
}

/* Mobile Navigation */
@media (max-width: 991.98px) {
  .footer-menu {
    flex-direction: column;
    gap: var(--spacing-md);
    text-align: center;
  }
}

/* ==========================================================================
   RTL SUPPORT FOR ARABIC
   - Using Bootstrap 5 RTL classes
   - Font loading for Arabic
   - Structure ready for RTL support
========================================================================== */

/* RTL Font loading - ora gestito in functions.php */

/* ========================================
   SINGLE PRODUCT STYLES
   ======================================== */
@media(max-width: 991px) {
  .single-product_en #primary {
    padding-bottom: var(--spacing-xl);
    background-color: rgb(242 242 242 / 30%);
  }
  .single-product #primary {
    padding-bottom: var(--spacing-xl);
    background-color: rgb(242 242 242 / 30%);
  }
}

/* Product Hero Section */
.product-hero {
  padding-top: var(--spacing-4xl);
}

@media (max-width: 767px) {
  .product-hero {
    padding-top: var(--spacing-lg);
  }
}

/* Product Gallery */
.product-gallery {
  position: relative;
}

.product-gallery__main {
  margin-bottom: 4px;
  border-radius: 0;
  overflow: hidden;
}

.product-gallery__slide {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
}

.product-gallery__slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.product-gallery__thumbs {
  height: auto;
}

.product-gallery__thumb {
  position: relative;
  aspect-ratio: 1;
  border-radius: 0;
  overflow: hidden;
  cursor: pointer;
  transition: opacity var(--transition-fast);
  opacity: 0.8;
}

.swiper-slide.swiper-slide-visible.swiper-slide-fully-visible.swiper-slide-thumb-active .product-gallery__thumb {
  border: 1px solid #f1f1f1;
  opacity: 1;
}

.product-gallery__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.product-gallery__fallback {
  aspect-ratio: 1;
  border-radius: var(--border-radius);
  overflow: hidden;
  border: 1px solid #f9f4ec;
}

/* Product Info */
@media(min-width: 992px) {
  .product-info {
    padding-left: var(--spacing-4xl);
    padding-top: var(--spacing-xl);
  }
}


.product-categories {
  margin-bottom: var(--spacing-sm);
}

.product-category {
  display: inline-block;
  font-size: 10px;
  font-style: normal;
  font-weight: 400;
  line-height: 12px;
  letter-spacing: 1px;
  margin-bottom: 0;
  text-transform: uppercase;
  color: var(--color-text-light);
}

.product-category:hover {
  color: var(--color-text-hover);
  text-decoration: none;
}

.product-title {
  font-size: 2.5rem;
  font-weight: 400;
  color: var(--color-text);
  margin-bottom: var(--spacing-md);
  line-height: 1.2;
  padding-right: 1rem;
}
.lang-ar .product-title {
  padding-right: 0;
  padding-left: 1rem;
}

.product-description-title {
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid #e5e5e5;
}

.product-short {
  margin-bottom: var(--spacing-lg);
}

.product-description-title p {
  font-size: var(--font-size-xl);
  font-weight: 500;
  letter-spacing: 0.5px;
  margin-bottom: 0;
}

.product-short p {
  font-size: 1rem;
  color: var(--color-text);
  line-height: 1.4;
  margin-bottom: 0;
  max-width: 400px;
}

.product-format {
  margin-bottom: var(--spacing-md);
}

.product-format__value {
  color: var(--color-text);
  border: 1px solid var(--color-text);
  padding: 8px 12px;
  font-size: 14px;
  line-height: 1;
  font-weight: 400;
  letter-spacing: 0.5px;
  display: inline-block
}

.product-price {
  margin-bottom: var(--spacing-xl);
}

.product-price__value {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-primary);
}

.product-cta {
  margin-bottom: var(--spacing-lg);
}

.product-cta .btn-filled {
  background: var(--color-text);
  color: var(--color-text-white);
  width: 100%;
  height: 54px;
  border-radius: 0;
}

/* Product Tabs */
.product-accordion {
  margin-top: var(--spacing-lg);
}

.product-single-tab {
  margin-top: var(--spacing-lg);
  padding: var(--spacing-lg);
  background-color: transparent;
  border-radius: var(--border-radius);
}

.product-tab-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: var(--spacing-md);
}

.product-tab-content {
  font-size: 0.875rem;
  line-height: 1.4;
  color: var(--color-text-light);
}

.product-tab-content p {
  margin-bottom: var(--spacing-sm);
}

.product-tab-content p:last-child {
  margin-bottom: 0;
}

/* Bootstrap Accordion Customization */
.product-accordion .accordion {
  border-radius: var(--border-radius);
  overflow: hidden;
}

@media(min-width: 992px) {
  .product-accordion .accordion {
    border: 1px solid var(--color-text);
  }
}

.accordion-item {
  background-color: transparent;
}

.product-accordion .accordion-item {
  border: none;
  border-bottom: 1px solid var(--color-text);
}

.product-accordion .accordion-item:last-child {
  border-bottom: none;
}

.product-accordion .accordion-button {
  background-color: transparent;
  color: var(--color-text);
  font-weight: 500;
  font-size: var(--font-size-base);
  padding: var(--spacing-md) var(--spacing-md);
  border: none;
  box-shadow: none;
  transition: all var(--transition-fast);
}

.product-accordion .accordion-button:not(.collapsed) {
  background-color: transparent;
  color: var(--color-primary);
  box-shadow: none;
  background-color: rgb(242 242 242 / 32%);
}

.product-accordion .accordion-button:focus {
  box-shadow: 0 0 0 0.2rem rgba(var(--color-primary-rgb), 0.25);
  border-color: var(--color-primary);
}

.product-accordion .accordion-button::after {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23212529'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
  transition: transform var(--transition-fast);
}

.product-accordion .accordion-button:not(.collapsed)::after {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23052c65'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
  transform: rotate(-180deg);
}

.product-accordion .accordion-body {
  padding: var(--spacing-lg) var(--spacing-lg);
  background-color: transparent;
}

/* Responsive */
@media (max-width: 767px) {

  .product-accordion .accordion-body {
    padding: var(--spacing-xl) var(--spacing-md)
  }

  .product-single-tab {
    padding: var(--spacing-md);
  }
}

/* Product Extra Sections */
.product-extra-section {
  padding-top: var(--spacing-5xl);
  background-color: var(--color-background);
}

.product-extra-title {
  display: flex;
  align-items: center;
  justify-content: center;
}

.lang-ar .product-extra-title {
  justify-content: flex-start;
}

@media(min-width: 992px) {
  .lang-ar .product-extra-title {
    justify-content: center;
  }
}

.product-extra-title h2 {
  font-size: 1.5rem;
  font-weight: 500;
  line-height: 1.142;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--color-text);
  text-align: center;
  max-width: 900px;
}

.lang-ar .product-extra-title h2 {
  text-align: right;
}

@media(min-width: 992px) {
  .lang-ar .product-extra-title h2 {
    text-align: center;
  }
}

.lang-ar .product-extra-twoleft .product-extra-content,
.lang-ar .product-extra-tworight .product-extra-content {
  flex-direction: row-reverse;
}

.product-extra-twoleft .product-extra-content,
.product-extra-tworight .product-extra-content {
  flex-direction: row;
}

/* Layout Due Colonne - Differenziato per varianti */
.product-extra__row {
  flex-direction: column-reverse;
  /* Mobile/Tablet: column-reverse (come Section Two) */
}

/* Variante TwoLeft: Media a sinistra, Testo a destra */
.product-extra-twoleft .product-extra__row {
  flex-direction: column-reverse;
  /* Mobile: media sopra, testo sotto */
}

/* Variante TwoRight: Testo a sinistra, Media a destra */
.product-extra-tworight .product-extra__row {
  flex-direction: column;
  /* Mobile: testo sopra, media sotto (NO column-reverse) */
}

/* Desktop: row differenziato per varianti */
@media(min-width: 992px) {
  .product-extra__row {
    flex-direction: row;
    /* Desktop: row normale */
  }

  /* Variante TwoLeft: Media a sinistra, Testo a destra */
  .product-extra-twoleft .product-extra__row {
    flex-direction: row;
    /* Desktop: media sinistra, testo destra (row normale) */
  }

  /* Variante TwoRight: Testo a sinistra, Media a destra */
  .product-extra-tworight .product-extra__row {
    flex-direction: row;
    /* Desktop: testo sinistra, media destra (row-reverse) */
  }
}

.product-extra__media {
  position: relative;
  min-height: 200px;
  overflow: hidden;
  aspect-ratio: 1;
}

@media(min-width: 768px) {
  .product-extra__media {
    min-height: 400px;
  }
}

.product-extra__media .z-fallback {
  background-color: var(--color-background-light);
}

.product-extra__media .z-background-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
}

.product-extra__media .z-background-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-extra__video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 3;
}

.product-extra__content {
  padding-bottom: var(--spacing-2xl);
  display: flex;
  align-items: center;
  flex-direction: column;
}

@media(min-width: 992px) {
  .product-extra__content {
    padding: 0rem;
  }
}

.product-extra__content {
  display: flex;
  align-items: center;
  justify-content: center;
}

.lang-ar .product-extra__content {
  align-items: flex-start;
}

.product-extra__title {
  font-size: 1.5rem;
  font-weight: 500;
  line-height: 1.142;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--color-text);
  text-align: center;
  max-width: 500px;
}

.lang-ar .product-extra__title {
  text-align: right;
}

@media (min-width: 992px) {
  .product-extra__text p {
    margin-top: var(--spacing-lg);
  }
}

.product-extra__text p {
  margin-bottom: 0;
  font-size: 1rem;
  letter-spacing: .5px;
  line-height: 24px;
  max-width: 500px;
  text-align: center;
  margin-top: var(--spacing-md);
}

.lang-ar .product-extra__text p {
  text-align: right;
}

.product-extra-description {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: var(--spacing-md);
}

.lang-ar .product-extra-description {
  justify-content: flex-start;
}

.product-extra-description p {
  margin-bottom: var(--spacing-md);
  font-size: 1rem;
  color: var(--color-text);
  line-height: 1.4;
  margin-bottom: 0;
  max-width: 800px;
  text-align: center;
}

.lang-ar .product-extra-description p {
  text-align: center;
}

@media (min-width: 992px) {
  .product-extra-description {
    margin-top: var(--spacing-lg);
  }

  lang-ar .product-extra-description p {
    text-align: right;
  }

  .lang-ar .product-extra-description {
    justify-content: center;
  }
}

.product-extra-media {
  position: relative;
  margin-top: var(--spacing-2xl);
}

.product-extra-video {
  position: relative;
  width: 100%;
  height: 400px;
  border-radius: var(--border-radius);
  overflow: hidden;
}

.product-extra-video__element {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--border-radius);
}

.product-extra-video__fallback {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--border-radius);
}

.product-extra-image {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: var(--border-radius);
  overflow: hidden;
}

.product-extra-image__element {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--border-radius);
}

/* Responsive */
@media (max-width: 991px) {

  .product-extra-twoleft .product-extra-content,
  .product-extra-tworight .product-extra-content {
    flex-direction: column;
  }

  .product-extra__media {
    min-height: 300px;
    margin-top: var(--spacing-lg);
  }

  .product-extra__content {
    padding: var(--spacing-xs);
  }
}

@media (max-width: 767px) {
  .product-extra-section {
    padding-top: var(--spacing-3xl);
  }

  .product-extra__media {
    min-height: 250px;
  }
}

/* Modal Styles */
.modal-content {
  border-radius: var(--border-radius);
  border: none;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.modal-header {
  border-bottom: 1px solid var(--color-border);
  padding: var(--spacing-lg);
}

.modal-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--color-text);
}

.modal-body {
  padding: var(--spacing-lg);
}

.contact-info {
  padding: var(--spacing-md);
  background-color: var(--color-background-light);
}

.contact-form .btn-filled {
  background: #000;
  color: #fff;
  width: 100%;
}

.contact-form .btn-filled:hover {
  background: var(--color-bg-hover);
  color: var(--color-text-white);
}

.contact-phone,
.contact-email {
  margin-bottom: var(--spacing-sm);
  font-size: 0.875rem;
}

.contact-phone:last-child,
.contact-email:last-child {
  margin-bottom: 0;
}

.contact-phone a,
.contact-email a {
  color: var(--color-primary);
  text-decoration: none;
  font-weight: 500;
}

.contact-phone a:hover,
.contact-email a:hover {
  text-decoration: underline;
}

.contact-form h6 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: var(--spacing-md);
}

.product-contact-form .form-label {
  font-weight: 500;
  color: var(--color-text);
  margin-bottom: var(--spacing-xs);
}

.product-contact-form .form-control {
  border: 1px solid var(--color-border);
  border-radius: var(--border-radius-sm);
  padding: var(--spacing-sm);
  font-size: 0.875rem;
  transition: border-color var(--transition-fast);
}

.product-contact-form .form-control:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 0.2rem rgba(var(--color-primary-rgb), 0.25);
}

/* Responsive */
@media (max-width: 991px) {
  .product-info {
    padding-left: 0;
    padding-top: var(--spacing-2xl);
  }

  .product-title {
    font-size: 1.75rem;
  }

  .product-short {
    font-size: 1rem;
  }
}

@media (max-width: 767px) {
  .product-title {
    font-size: 2rem;
  }

  .product-gallery__thumbs {
    height: auto;
  }

  .product-gallery__thumb {
    aspect-ratio: 1;
  }
}

/* ========================================
   RELATED PRODUCTS SECTION
   ======================================== */

/* Related Products Section - Usa le stesse classi della homepage */
.related-products-section {
  padding-top: var(--spacing-4xl);
  padding-bottom: var(--spacing-2xl);
  background-color: var(--color-background);
}

.related-products-header {
  margin-bottom: var(--spacing-2xl);
  display: flex;
  align-items: center;
  justify-content: center;
}

.related-products-title {
  font-size: 1.5rem;
  font-weight: 500;
  line-height: 1.142;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--color-text);
  text-align: center;
  max-width: 900px;
}

/* Related Products Swiper - Copia esatta di section-three */
.related-products__swiper-container {
  overflow: hidden;
}

@media(min-width: 768px) {
  .related-products__swiper-container {
    padding-left: 1.5rem;
    padding-right: 0;
    overflow: hidden;
    /* Nessun padding destro per peek effect */
  }
}

.related-products__swiper {
  overflow: visible;
  margin-left: 0;
  margin-right: 0;
}

.related-products__swiper .swiper-wrapper {
  margin: 0;
  padding: 0;
}

.related-products__swiper .swiper-slide {
  width: 100%;
  flex-shrink: 0;
  height: auto;
}

/* Bootstrap breakpoints for peek effect - Identici a section-three */
@media (min-width: 0px) {
  .related-products__swiper .swiper-slide {
    width: 95%;
  }
}

@media (min-width: 576px) {
  .related-products__swiper .swiper-slide {
    width: 95%;
  }
}

@media (min-width: 768px) {
  .related-products__swiper .swiper-slide {
    width: 48%;
  }
}

@media (min-width: 992px) {
  .related-products__swiper .swiper-slide {
    width: 48%;
  }
}

@media (min-width: 1200px) {
  .related-products__swiper .swiper-slide {
    width: 32%;
  }
}

/* Responsive */
@media (max-width: 767px) {
  .related-products-section {
    padding-top: var(--spacing-4xl);
    padding-bottom: var(--spacing-2xl);
  }
}

/* ========================================
   PRODUCT CERTIFICATIONS INLINE
   ======================================== */

/* Product Certifications Inline - Sotto il tab */
.product-certifications-inline {
  display: flex;
  flex-wrap: wrap;
  gap: var(--spacing-md);
  align-items: center;
  margin-top: var(--spacing-lg);
}

.product-certification-inline-item {
  display: flex;
  align-items: center;
  justify-content: center;
}

.product-certification-inline-img {
  height: 80px;
  width: auto;
  object-fit: contain;
}

/* Responsive */
@media (max-width: 767px) {
  .product-certifications-inline {
    gap: var(--spacing-sm);
    margin-top: var(--spacing-md);
  }

  .product-certifications-inline {
    align-items: center;
    justify-content: center;
  }

}

/* ========================================
   CONTACT PAGE STYLES
   ======================================== */

/* Contact Hero Section */
.contact-hero {
  padding: var(--spacing-4xl) 0 var(--spacing-2xl) 0;
  background-color: var(--color-background);
}

.contact-hero__content {
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

.contact-hero__title {
  font-size: 2.5rem;
  font-weight: 500;
  line-height: 1.142;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--color-text);
  margin-bottom: var(--spacing-lg);
}

.contact-hero__text {
  font-size: 1.125rem;
  line-height: 1.6;
  color: var(--color-text-light);
  max-width: 600px;
  margin: 0 auto;
  text-align: center;
}

.contact-hero__text p {
  margin-bottom: var(--spacing-md);
}

.contact-hero__text p:last-child {
  margin-bottom: 0;
}

/* Contact Form Section */
.contact-form-section {
  padding: var(--spacing-2xl) 0 var(--spacing-4xl) 0;
}

.contact-form-wrapper {
  padding: var(--spacing-2xl);
  border: 1px solid var(--color-text);
}

/* Contact Info */
.contact-info {
  margin-bottom: var(--spacing-xl);
  border-bottom: 1px solid var(--color-border);
}

.contact-info__item {
  text-align: center;
}

@media (max-width: 767px) {
  .contact-info__item {
    margin-bottom: var(--spacing-lg);
  }
}

.contact-info__item h3 {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: var(--spacing-sm);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.contact-phone,
.contact-email {
  margin-bottom: 0;
  font-size: 1.125rem;
}

.contact-phone a,
.contact-email a {
  color: var(--color-primary);
  text-decoration: none;
  font-weight: 500;
  transition: color var(--transition-fast);
}

.contact-phone a:hover,
.contact-email a:hover {
  color: var(--color-text-hover);
  text-decoration: underline;
}

/* Contact Form */
.contact-form h3 {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: var(--spacing-lg);
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Contact Form 7 Styling */
.contact-form .wpcf7-form {
  max-width: 100%;
}

.contact-form .wpcf7-form-control-wrap {
  margin-bottom: var(--spacing-lg);
}

.contact-form .wpcf7-form-control {
  width: 100%;
  padding: var(--spacing-md);
  border: 1px solid var(--color-border);
  border-radius: var(--border-radius-sm);
  font-size: 1rem;
  transition: border-color var(--transition-fast);
}

.contact-form .wpcf7-form-control:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 0.2rem rgba(33, 33, 33, 0.25);
  outline: none;
}

.contact-form .wpcf7-textarea {
  min-height: 120px;
  resize: vertical;
}

.contact-form .wpcf7-submit {
  background-color: var(--color-text);
  color: var(--color-text-white);
  border: none;
  padding: var(--spacing-md) var(--spacing-xl);
  font-size: 1rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-radius: 0;
  cursor: pointer;
  transition: background-color var(--transition-fast);
  width: 100%;
}

.contact-form .wpcf7-submit:hover {
  background-color: var(--color-bg-hover);
}

.contact-form .wpcf7-response-output {
  margin-top: var(--spacing-lg);
  padding: var(--spacing-md);
  border-radius: var(--border-radius-sm);
  font-weight: 500;
}

.contact-form .wpcf7-mail-sent-ok {
  background-color: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}

.contact-form .wpcf7-validation-errors {
  background-color: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}

/* RTL Support for Contact Page */
.lang-ar .contact-hero__content {
  direction: rtl;
}

.lang-ar .contact-info__item {
  text-align: right;
}

.lang-ar .contact-form h3 {
  text-align: right;
}

/* Responsive */
@media (max-width: 767px) {
  .contact-hero {
    padding: var(--spacing-2xl) 0 var(--spacing-lg) 0;
  }

  .contact-hero__title {
    font-size: 2rem;
  }

  .contact-hero__text {
    font-size: 1rem;
  }

  .contact-form-section {
    padding: var(--spacing-xl) 0 var(--spacing-2xl) 0;
  }

  .contact-form-wrapper {
    padding: var(--spacing-lg);
  }

  .contact-info__item {
    margin-bottom: var(--spacing-md);
  }

  .contact-info__item h3 {
    font-size: 1.125rem;
  }

  .contact-phone,
  .contact-email {
    font-size: 1rem;
  }

  .contact-form h3 {
    font-size: 1.25rem;
  }
}

/* ========================================
   FOOTER STYLES - NUOVO DESIGN
   ======================================== */

/* Logo Centrale */
.footer-logo {
  padding: var(--spacing-4xl) 0 var(--spacing-2xl) 0;
  text-align: center;
}

.footer-logo__content {
  display: flex;
  justify-content: center;
  align-items: center;
}

.footer-logo__content img {
  height: 100px;
  width: auto;
  filter: brightness(0) invert(1);
}

/* Certificazioni */
.footer-certifications {
  padding: var(--spacing-2xl) 0;
}

.footer-certifications__grid {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: var(--spacing-xl);
  flex-wrap: wrap;
}

.footer-certification__item {
  display: flex;
  align-items: center;
  justify-content: center;
}

.footer-certification__item svg {
  color: #fff;
  transition: opacity var(--transition-fast);
}

.footer-certification__item:hover svg {
  opacity: 0.7;
}

/* Spazio */
.footer-spacer {
  height: var(--spacing-2xl);
}

/* Social Links */
.footer-social {
  padding: var(--spacing-2xl) 0;
}

.footer-social__grid {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: var(--spacing-lg);
  flex-wrap: wrap;
}

.footer-social__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  color: #fff;
  text-decoration: none;
  transition: all var(--transition-fast);
}

.footer-social__icon:hover {
  color: #ccc;
  text-decoration: none;
  transform: translateY(-2px);
}

/* Menu Footer e Language Switch */
.footer-navigation {
  padding: var(--spacing-2xl) 0;
  border-top: 1px solid #333;
  border-bottom: 1px solid #333;
}

.footer-nav__content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--spacing-lg);
}

.footer-nav__left {
  flex: 1;
}

.footer-nav {
  display: flex;
  justify-content: flex-start;
  flex-wrap: wrap;
  gap: var(--spacing-lg);
}

.footer-menu {
  display: flex;
  justify-content: flex-start;
  flex-wrap: wrap;
  gap: var(--spacing-lg);
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-menu li {
  margin: 0;
}

.footer-nav__link {
  color: #fff;
  text-decoration: none;
  font-weight: 500;
  font-size: var(--font-size-sm);
  transition: color var(--transition-fast);
}

.footer-nav__link:hover {
  color: #ccc;
  text-decoration: none;
}

.footer-nav__right {
  flex-shrink: 0;
}

.footer-lang-switch {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
  color: #fff;
  text-decoration: none;
  font-size: var(--font-size-sm);
  font-weight: 500;
  transition: color var(--transition-fast);
  position: relative;
}

.footer-lang-switch::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: #fff;
  transition: width 0.3s ease;
}

.footer-lang-switch:hover {
  color: #ccc;
  text-decoration: none;
}

.footer-lang-switch:hover::after {
  width: 100%;
}

a.footer-lang-switch span {
  display: inline-flex;
}

.footer-lang-svg {
  width: 16px;
  height: 16px;
  color: #fff;
}

/* Footer Bottom */
.footer-bottom {
  padding: var(--spacing-lg) 0;
  background-color: rgba(0, 0, 0, 0.3);
}

.footer-bottom__content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--spacing-md);
}

.footer-bottom__link {
  color: #fff;
  text-decoration: none;
  font-size: var(--font-size-sm);
  transition: color var(--transition-fast);
}

.footer-bottom__link:hover {
  color: #ccc;
  text-decoration: none;
}

.footer-bottom__credit {
  color: #fff;
  font-size: var(--font-size-sm);
  margin: 0;
}

.footer-bottom__credit a {
  color: #ccc;
  text-decoration: none;
  transition: color var(--transition-fast);
}

.footer-bottom__credit a:hover {
  color: #fff;
  text-decoration: none;
}

/* Responsive */
@media (max-width: 767px) {
  .footer-logo {
    padding: var(--spacing-2xl) 0 var(--spacing-lg) 0;
  }

  .footer-logo__content img {
    max-height: 50px;
  }

  .footer-certifications__grid {
    gap: var(--spacing-lg);
  }

  .footer-social__grid {
    gap: var(--spacing-md);
  }

  .footer-nav__content {
    flex-direction: column;
    align-items: center;
    gap: var(--spacing-md);
  }

  .footer-nav {
    justify-content: center;
    align-items: center;
  }

  .footer-menu {
    justify-content: center;
  }

  .footer-bottom__content {
    flex-direction: column;
    text-align: center;
  }
}

/* ===============================
   RTL SUPPORT
   =============================== */

/* RTL per Arabo */
.lang-ar {
  direction: rtl;
  text-align: right;
}

.lang-ar .container,
.lang-ar .container-fluid {
  direction: rtl;
}

.lang-ar .row {
  direction: rtl;
}

/* RTL per Inglese */
.lang-en {
  direction: ltr;
  text-align: left;
}

/* RTL Navigation */
.lang-ar .main-menu {
  direction: rtl;
}

.lang-ar .main-menu li {
  margin-right: 0;
  margin-left: 2rem;
}

.lang-ar .main-menu li:first-child {
  margin-left: 0;
}

/* RTL Header */
.lang-ar .header-content {
  direction: rtl;
}

.lang-ar .header-cta {
  direction: rtl;
}

/* RTL Language Switch */
.lang-ar .lang-switch-text {
  margin-left: 8px;
  margin-right: 0;
}

.lang-ar .mobile-lang-switch {
  margin-left: 0;
  margin-right: 8px;
}
@media(max-width: 992px){
	.lang-ar .mobile-lang-switch {
  	margin-right: 0px;
	}
}

/* RTL Footer */
.lang-ar .footer-content {
  direction: rtl;
}

.lang-ar .footer-nav {
  direction: rtl;
}

/* RTL Section Two Content */
.lang-ar .section-two__content {
  direction: rtl;
  text-align: right;
  align-items: flex-start;
  padding-right: 0;
}

@media(min-width: 992px) {
  .lang-ar .section-two__content {
    padding-right: 3rem;
  }
}

.lang-ar .section-two__content h2,
.lang-ar .section-two__content p {
  text-align: right;
}

/* RTL Section Three Subtitle */
.lang-ar .section-three__subtitle {
  max-width: none;
  width: 100%;
}

/* RTL Mobile Text Alignment */
@media (max-width: 991.98px) {
  .lang-ar .section-three__subtitle {
    text-align: right;
  }

  .lang-ar .section-three__title {
    text-align: right;
  }

  .lang-ar .section-two__content h2,
  .lang-ar .section-two__content p {
    text-align: right;
  }

  .lang-ar .section-four__text-content {
    direction: rtl;
    text-align: right;
    align-items: flex-start;
    padding-right: 0;
  }

  .lang-ar .section-four__text-content h2,
  .lang-ar .section-four__text-content p {
    text-align: right;
  }

  .lang-ar .section-five__header {
    direction: rtl;
    text-align: right;
    align-items: flex-start;
    padding-right: 0;
  }

  .lang-ar .section-five__header h2,
  .lang-ar .section-five__header p {
    text-align: right;
    max-width: 100%;
  }

  .lang-ar .hero-section__content h1,
  .lang-ar .hero-section__content p {
    text-align: right;
  }

  .lang-ar .section-seven__content {
    max-width: 100%;
    direction: rtl;
    text-align: right;
    align-items: flex-start;
    padding-right: 0;
  }

  .lang-ar .section-seven__content h2,
  .lang-ar .section-seven__content p {
    text-align: right;
    max-width: 100%;
  }

  .lang-ar .product-extra-single-container {
    max-width: 100%;
    direction: rtl;
    text-align: right;
    align-items: flex-start;
    padding-right: 0;
  }

  .lang-ar .product-extra-single-container h2,
  .lang-ar .product-extra-single-container p {
    text-align: right;
  }

  .lang-ar .product-extra__content {
    max-width: 100%;
    direction: rtl;
    text-align: right;
    align-items: flex-start;
    padding-right: 0;
  }

  .lang-ar .product-extra__content h2,
  .lang-ar .product-extra__content p {
    text-align: right;
  }
}

/* RTL Desktop Padding */
@media(min-width: 992px) {
  .lang-ar .section-four__text-content {
    padding-right: 3rem;
  }

  .lang-ar .section-five__header {
    padding-right: 3rem;
  }

  .lang-ar .section-seven__content {
    padding-right: 3rem;
  }
}

/* Company Extra Sections - Classi Univoche */
.page-template-template-company-en .content-wrapper,
.page-template-template-company .content-wrapper {
  position: relative;
  min-height: 100vh;
  padding-bottom: var(--spacing-4xl);
}
.company-extra-section {
  padding-top: var(--spacing-5xl);
  background-color: var(--color-background);
}

.company-extra-title {
  display: flex;
  align-items: center;
  justify-content: center;
}

.lang-ar .company-extra-title {
  justify-content: flex-start;
}

@media(min-width: 992px) {
  .lang-ar .company-extra-title {
    justify-content: center;
  }
}

.company-extra-title h2 {
  font-size: 1.5rem;
  font-weight: 500;
  line-height: 1.142;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--color-text);
  margin-bottom: 0;
  text-align: center;
}

.lang-ar .company-extra-title h2 {
  text-align: right;
}

@media(min-width: 992px) {
  .lang-ar .company-extra-title h2 {
    text-align: center;
  }
}

.company-extra-twoleft .company-extra-content,
.company-extra-tworight .company-extra-content {
  flex-direction: row;
}

/* Layout Due Colonne - Differenziato per varianti */
.company-extra__row {
  flex-direction: column-reverse;
  /* Mobile/Tablet: column-reverse (come Section Two) */
}

/* Variante TwoLeft: Media a sinistra, Testo a destra */
.company-extra-twoleft .company-extra__row {
  flex-direction: column;
  /* Mobile: media sopra, testo sotto */
}

.company-extra-tworight .company-extra__row {
  flex-direction: column-reverse;
}

@media(min-width: 992px) {
  .company-extra-twoleft .company-extra__row {
    flex-direction: column-reverse;
  }
}

/* Desktop: row differenziato per varianti */
@media(min-width: 992px) {
  .company-extra__row {
    flex-direction: row;
    /* Desktop: row normale */
  }

  /* Variante TwoLeft: Media a sinistra, Testo a destra */
  .company-extra-twoleft .company-extra__row {
    flex-direction: row;
  }

  /* Variante TwoRight: Testo a sinistra, Media a destra */
  .company-extra-tworight .company-extra__row {
    flex-direction: row;
  }
}

.company-extra__media {
  position: relative;
  min-height: 200px;
  overflow: hidden;
  aspect-ratio: 1;
}

@media(min-width: 768px) {
  .company-extra__media {
    min-height: 400px;
  }
}

.company-extra__media .z-fallback {
  background-color: var(--color-background-light);
}

.company-extra__media .z-background-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.company-extra__media .z-background-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.company-extra__video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  object-fit: cover;
}

.company-extra__content {
  padding-bottom: var(--spacing-2xl);
  display: flex;
  align-items: center;
  flex-direction: column;
}

.company-extra-twoleft .company-extra__content {
  padding-bottom: 0;
}


.company-extra__content {
  display: flex;
  align-items: center;
  justify-content: center;
}

.company-extra__title {
  font-size: 1.5rem;
  font-weight: 500;
  line-height: 1.142;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--color-text);
  margin-bottom: var(--spacing-md);
  text-align: center;
}

@media (min-width: 992px) {
  .company-extra__text p {
    margin-top: var(--spacing-lg);
  }

  .lang-ar .company-extra__title {
    text-align: right;
  }
}

.company-extra__text p {
  margin-bottom: 0;
  font-size: 1rem;
  letter-spacing: .5px;
  line-height: 24px;
  max-width: 500px;
  color: var(--color-text);
  text-align: center;
}

.company-extra-description {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: var(--spacing-md);
}

.lang-ar .company-extra-description {
  justify-content: flex-start;
}

@media(min-width: 992px) {
  .lang-ar .company-extra-description {
    justify-content: center;
  }
}


.company-extra-description p {
  margin-bottom: var(--spacing-md);
  font-size: 1rem;
  color: var(--color-text);
  line-height: 1.4;
  margin-bottom: 0;
  text-align: center;
  max-width: 900px;
}

.lang-ar .company-extra-description p {
  text-align: right;
}

@media (min-width: 992px) {
  .company-extra-description {
    margin-top: var(--spacing-lg);
  }
}

.company-extra-media {
  position: relative;
  margin-top: var(--spacing-2xl);
}

.company-extra-video {
  position: relative;
  width: 100%;
  height: 400px;
  border-radius: var(--border-radius);
  overflow: hidden;
}

.company-extra-video__element {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--border-radius);
}

.company-extra-video__fallback {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--border-radius);
}

.company-extra-image {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: var(--border-radius);
  overflow: hidden;
}

.company-extra-image__element {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--border-radius);
}

/* Layout Tre Colonne */
.company-extra-three__item {
  text-align: center;
}

@media (max-width: 767px) {
  .company-extra-three .row {
    gap: var(--spacing-3xl);
  }

}

.company-extra-three__image {
  margin-bottom: var(--spacing-lg);
}

.company-extra-three__image img {
  width: 100%;
  height: 600px;
  object-fit: cover;
}

.company-extra-three__title {
  font-size: 1.5rem;
  font-weight: 500;
  line-height: 1.142;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--color-text);
  margin-bottom: var(--spacing-md);
}

.lang-ar .company-extra-three__title {
  text-align: right;
}

@media(min-width: 992px) {
  .lang-ar .company-extra-three__title {
    text-align: center;
  }
}

.company-extra-three__text p {
  font-size: 1rem;
  color: var(--color-text);
  line-height: 1.4;
  margin-bottom: 0;
  text-align: center;
}

.lang-ar .company-extra-three__text p {
  text-align: right;
}

/* Responsive */
@media (max-width: 991px) {

  .company-extra-twoleft .company-extra-content,
  .company-extra-tworight .company-extra-content {
    flex-direction: column;
  }

  .company-extra__media {
    min-height: 300px;
  }

}

@media (max-width: 767px) {
  .company-extra-section {
    padding-top: var(--spacing-4xl);
  }

  .company-extra-tworight .company-extra__media {
    min-height: 250px;
  }
}

/* RTL Support for Company Extra */
.lang-ar .company-extra-single-container {
  max-width: 100%;
  direction: rtl;
  text-align: right;
  align-items: flex-start;
  padding-right: 0;
}

.lang-ar .company-extra-single-container h2,
.lang-ar .company-extra-single-container p {
  text-align: right;
}

@media(min-width: 992px) {

  .lang-ar .company-extra-single-container h2,
  .lang-ar .company-extra-single-container p {
    text-align: center;
  }
}

.lang-ar .company-extra__content {
  max-width: 100%;
  direction: rtl;
  text-align: right;
  align-items: flex-start;
  padding-right: 0;
}

.lang-ar .company-extra-tworight .company-extra__content {
  padding-bottom: 0;
}

.company-extra__content h2 {
  padding-top: var(--spacing-md);
}

@media(min-width: 992px) {
  .lang-ar .company-extra__content h2 {
    padding-top: 0;
  }
}


.lang-ar .company-extra__content h2,
.lang-ar .company-extra__content p {
  text-align: right;
}


/* RTL Product Cards */
.lang-ar .section-three__product {
  direction: rtl;
  text-align: right;
}

.lang-ar .section-three__product-title {
  text-align: right;
}

.lang-ar .section-three__product-short {
  text-align: right;
}

/* RTL Swiper */
.lang-ar .swiper {
  direction: rtl;
}

.lang-ar .swiper-slide {
  direction: rtl;
}

/* RTL Buttons */
.lang-ar .btn {
  direction: rtl;
}

/* RTL Forms */
.lang-ar input,
.lang-ar textarea,
.lang-ar select {
  direction: rtl;
  text-align: right;
}

/* RTL Modal */
.lang-ar .modal-content {
  direction: rtl;
}

.lang-ar .modal-header,
.lang-ar .modal-body,
.lang-ar .modal-footer {
  direction: rtl;
  text-align: right;
}

/* Pulsante close del modal in arabo */
.lang-ar .modal-header .btn-close {
  margin-left: 0;
  margin-right: auto;
}

/* RTL Accordion */
.lang-ar .accordion-item {
  direction: rtl;
}

.lang-ar .accordion-header,
.lang-ar .accordion-body {
  direction: rtl;
  text-align: right;
}

.lang-ar .accordion-button {
  direction: rtl;
  text-align: right;
  padding-right: 1rem;
  padding-left: 0;
}

.lang-ar .accordion-button::after {
  margin-left: 1rem;
  margin-right: auto;
  transform: rotate(180deg);
}

/* RTL Product Gallery */
.lang-ar .product-gallery {
  direction: rtl;
}

.lang-ar .product-gallery-thumbs {
  direction: rtl;
}

/* RTL Product Info */
.lang-ar .product-info {
  direction: rtl;
  text-align: right;
  padding-left: 0;
}

@media(min-width: 992px) {
  .lang-ar .product-info {
    padding-right: var(--spacing-4xl);
    padding-top: var(--spacing-xl);
  }
}



.lang-ar .product-title,
.lang-ar .product-description,
.lang-ar .product-price {
  text-align: right;
}

/* RTL Product Tabs */
.lang-ar .product-tabs {
  direction: rtl;
}

.lang-ar .nav-tabs {
  direction: rtl;
}

.lang-ar .tab-content {
  direction: rtl;
  text-align: right;
}