/* 
Theme Name: Frascio
Theme URI: https://github.com/elementor/hello-theme-child/
Description: Hello Elementor Child is a child theme of Hello Elementor, created by Elementor team
Author: Fiorio Davide - Expolab.it
Author URI: https://www.expolab.it/
Template: hello-elementor
Version: 2.0.0
Text Domain: hello-elementor-child
License: GNU General Public License v3 or later.
License URI: https://www.gnu.org/licenses/gpl-3.0.html
Tags: flexible-header, custom-colors, custom-menu, custom-logo, editor-style, featured-images, rtl-language-support, threaded-comments, translation-ready
*/

/* Add your custom styles here */


.no-tipologia #tipologia {
    display: none !important;
}

.no-materiale #materiale {
    display: none !important;
}


.finiture-wrap {
    display: flex !important;
    flex-direction: row !important;
    justify-content: flex-end; 
    gap: 16px;
    flex-wrap: wrap;
}
.finitura-item {
    text-align: center;
}
.finitura-item img {
    width: 55px;
    height: 53px;
    object-fit: cover;
}



/* ============================================================
   SLIDER PRODOTTI DEL DESIGNER
   ============================================================ */

/* === WRAPPER === */
.slider-designer-wrapper {
  position: relative;
  width: 100%;
  padding: 0 40px;
  box-sizing: border-box;
  pointer-events: auto;
}

/* === MASCHERA === */
.slider-designer-mask {
  overflow: hidden;
  width: 100%;
  margin: 0 auto;
}

/* === TRACK === */
.slider-designer-track {
  display: flex;
  gap: 20px;
  width: max-content;
  will-change: transform;
}

/* === SLIDE === */
.slide {
  flex: 0 0 350px;
  width: 350px;
  text-align: center;
}
.slide img {
  width: 100%;
  height: 220px;
  object-fit: contain;
  display: block;
  border-radius: 8px;
}
.slide h3 {
  font-size: 1em;
  color: #000000;
  font-weight: 600;
}

/* === FRECCE — DESKTOP: ai lati === */
.slider-arrow {
  position: absolute;
  top: 40%;
  transform: translateY(-50%);
  font-size: 22px;
  cursor: pointer;
  user-select: none;
  color: #555;
  z-index: 10;
  padding: 8px;
  line-height: 1;
  background: transparent;
  border: none;
  transition: color 0.2s;
}
.slider-arrow:hover { color: #000; }
.slider-arrow.prev { left: 0; }
.slider-arrow.next { right: 0; }

/* === CENTER MODE (pochi prodotti) === */
.slider-designer-wrapper.center-mode {
  padding: 0;
}
.slider-designer-wrapper.center-mode .slider-designer-mask {
  display: flex;
  justify-content: center;
}
.slider-designer-wrapper.center-mode .slider-designer-track {
  flex-wrap: wrap;
  justify-content: center;
  width: auto;
}


.altri_prodotti_designer {
  display: block;
  text-align: center;
  margin-left:0px !important;
  margin-bottom:50px;
}




/* === MOBILE ≤768px === */
@media (max-width: 768px) {

  /* Wrapper: nessun padding laterale, ma spazio sotto per le frecce */
  .slider-designer-wrapper {
    padding: 0 0 44px 0;
  }

  /* Frecce: escono dal flusso assoluto e diventano una barra centrata sotto */
  .slider-arrow {
    position: absolute;
    top: auto;
    bottom: 0;
    transform: none;
    font-size: 26px;
    padding: 6px 16px;
    color: #555;
  }
  .slider-arrow.prev {
    left: calc(50% - 48px); /* centrate orizzontalmente */
    right: auto;
  }
  .slider-arrow.next {
    right: calc(50% - 48px);
    left: auto;
  }

  /* Slide più stretta su mobile */
  .slide {
    flex: 0 0 240px;
    width: 240px;
  }
  .slide img {
    height: 160px;
  }
}
/* ============================================================
   GRIGLIA STATICA DESIGNER (1-3 prodotti)
   ============================================================ */

.sdg-grid {
    display: flex;
    flex-wrap: nowrap;
    justify-content: center;
    gap: 40px;
    margin: 0;
    padding: 0;
}

.sdg-item {
    flex: 0 0 250px;
    max-width: 250px;
}

.sdg-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: inherit;
    gap: 10px;
}

.sdg-img-wrap {
    width: 100%;
    aspect-ratio: 1 / 1;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.sdg-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    transition: opacity 0.25s ease;
}

.sdg-link:hover .sdg-img {
    opacity: 0.85;
}

.sdg-nome {
    margin: 0;
    text-align: center;
    font-family: Montserrat, sans-serif;
    font-weight: 600;
    word-break: break-word;
}

@media (max-width: 900px) {
    .sdg-grid {
        flex-wrap: wrap;
        gap: 20px;
    }
    .sdg-item {
        flex: 0 0 calc(50% - 10px);
        max-width: none;
        margin-bottom: 30px;
    }
}

@media (max-width: 480px) {
    .sdg-item {
        flex: 0 0 100%;
        max-width: none;
    }
}