/* ==========================================================================
   Insegne page styles
   ========================================================================== */
.text-align-center {
  text-align: center;
}


/* Icons */
.insegna-icons {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 30px;
  margin: 60px 0;
}
.insegna-icon-item {
  text-align: center;
  width: 120px;
}
.insegna-icon-circle {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 12px;
}
.insegna-icon-circle i {
  font-size: 32px;
  color: var(--theme);
}
.insegna-icon-label {
  font-size: 14px;
  color: var(--secondary);
}

/* Intro section overrides */
.insegna-intro .section-title-wrapper {
  grid-template-columns: 1fr;
}
.insegna-intro .section-title {
  max-width: none;
  text-align: center;
}
.insegna-intro .section-content-wrapper {
  max-width: none;
  grid-template-columns: 1fr 1fr;
}

.insegna-intro .description {
  text-align: center;
}

/* Carousel */
.insegna-carousel {
  margin-top: 50px;
  position: relative;
  overflow: hidden;
  grid-column: 1 / -1;
}
.insegna-carousel .swiper-slide {
  width: 300px;
  height: 300px;
  overflow: hidden;
}
.insegna-carousel .swiper-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.insegna-carousel .swiper-slide a {
  display: block;
  width: 100%;
  height: 100%;
}
.insegna-carousel .swiper-button-prev,
.insegna-carousel .swiper-button-next {
  color: var(--white);
}
.insegna-carousel .swiper-button-prev::after,
.insegna-carousel .swiper-button-next::after {
  font-size: 20px;
}
@media (max-width: 767px) {
  .insegna-carousel .swiper-slide {
    width: 200px;
    height: 200px;
  }
}

/* Larger service box images */
.insegna-illuminazione .services-wrapper-5 .service-box {
  grid-template-columns: 1fr 500px;
}
.insegna-illuminazione .services-wrapper-5 .service-box .thumb img {
  max-width: 250px;
}
.insegna-illuminazione .services-wrapper-5 .service-box:hover {
  grid-template-columns: 1fr 500px;
}
.insegna-illuminazione .services-wrapper-5 .service-box:hover .thumb img {
  max-width: 100%;
}
@media only screen and (max-width: 1399px) {
  .insegna-illuminazione .services-wrapper-5 .service-box {
    grid-template-columns: 1fr 400px;
  }
  .insegna-illuminazione .services-wrapper-5 .service-box .thumb img {
    max-width: 260px;
  }
  .insegna-illuminazione .services-wrapper-5 .service-box:hover {
    grid-template-columns: 1fr 500px;
  }
}
@media only screen and (max-width: 1199px) {
  .insegna-illuminazione .services-wrapper-5 .service-box {
    grid-template-columns: 1fr 320px;
  }
  .insegna-illuminazione .services-wrapper-5 .service-box .thumb img {
    max-width: 220px;
  }
  .insegna-illuminazione .services-wrapper-5 .service-box:hover {
    grid-template-columns: 1fr 400px;
  }
}
@media (max-width: 575px) {
  .insegna-illuminazione .services-wrapper-5 .service-box,
  .insegna-illuminazione .services-wrapper-5 .service-box:hover {
    grid-template-columns: 1fr;
  }
}

/* Progetti section — match btn-wrapper spacing from work-area-4 */
.about-area-details .section-header .btn-wrapper {
  margin-top: 44px;
}
@media only screen and (max-width: 1919px) {
  .about-area-details .section-header .btn-wrapper {
    margin-top: 34px;
  }
}
@media only screen and (max-width: 1399px) {
  .about-area-details .section-header .btn-wrapper {
    margin-top: 24px;
  }
}

/* Prevent horizontal overflow on mobile */
#smooth-content {
  overflow-x: hidden;
}

/* Illuminazione section — align grids with about-area-details */
.insegna-illuminazione .section-title-wrapper {
  grid-template-columns: 1fr 1235px;
}
.insegna-illuminazione .section-title {
  max-width: 1030px;
}
.insegna-illuminazione .services-wrapper-box {
  grid-template-columns: 1fr 1235px;
}
.insegna-illuminazione .section-header {
  border-top: 1px solid var(--border);
  padding-top: 37px;
}
@media only screen and (max-width: 1919px) {
  .insegna-illuminazione .section-title-wrapper,
  .insegna-illuminazione .services-wrapper-box {
    grid-template-columns: 1fr 1000px;
  }
  .insegna-illuminazione .section-title { max-width: 840px; }
}
@media only screen and (max-width: 1399px) {
  .insegna-illuminazione .section-title-wrapper,
  .insegna-illuminazione .services-wrapper-box {
    grid-template-columns: 1fr 850px;
  }
  .insegna-illuminazione .section-title { max-width: 640px; }
}
@media only screen and (max-width: 1199px) {
  .insegna-illuminazione .section-title-wrapper,
  .insegna-illuminazione .services-wrapper-box {
    grid-template-columns: 1fr 750px;
  }
}
@media only screen and (max-width: 991px) {
  .insegna-illuminazione .section-title-wrapper,
  .insegna-illuminazione .services-wrapper-box {
    grid-template-columns: 1fr;
  }
}

/* Temperature color dots */
.temp-logo {
  display: block;
  margin-bottom: 40px;
  transition: filter 0.3s ease;
}
.temp-wrapper {
  width: 100%;
}
.temp-dots {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-top: 80px;
}
.temp-dot-item {
  text-align: center;
  cursor: pointer;
  flex: 1;
}
.temp-dot {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  margin: 0 auto 12px;
  border: 2px solid rgba(255,255,255,0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.temp-dot-item.active .temp-dot {
  transform: scale(1.2);
  box-shadow: 0 0 15px rgba(255,255,255,0.3);
  border-color: var(--theme);
}
.temp-dot-label {
  font-size: 13px;
  color: var(--secondary);
  line-height: 1.4;
  opacity: 0.5;
  transition: opacity 0.3s ease;
}
.temp-dot-item.active .temp-dot-label {
  opacity: 1;
  color: var(--theme);
}
.temp-dot-rgb {
  background: conic-gradient(#FF0000, #FF8800, #FFFF00, #00FF00, #0088FF, #8800FF, #FF0000);
}
@keyframes rgbCycle {
  0%   { background-color: #FF0000; }
  16%  { background-color: #FF8800; }
  33%  { background-color: #FFFF00; }
  50%  { background-color: #00FF00; }
  66%  { background-color: #0088FF; }
  83%  { background-color: #8800FF; }
  100% { background-color: #FF0000; }
}
.temp-dot-item.active .temp-dot-rgb {
  animation: rgbCycle 1s linear infinite;
  background: none;
}
@media (max-width: 991px) {
  .temp-dot {
    width: 55px;
    height: 55px;
  }
  .temp-dot-label {
    font-size: 11px;
  }
  .temp-dot-label br {
    display: none;
  }
  .temp-dots {
    gap: 5px;
  }
}
@media (max-width: 480px) {
  .temp-dot {
    width: 40px;
    height: 40px;
  }
  .temp-dot-label {
    font-size: 9px;
  }
  .temp-dots {
    gap: 2px;
  }
}

/* Configurator */
.configurator {
  text-align: center;
}
.configurator-image {
  margin-bottom: 30px;
  border-radius: 4px;
  overflow: hidden;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}
.configurator-image img {
  width: 100%;
  display: block;
  transition: opacity 0.4s ease;
}
.configurator-controls {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 40px;
  flex-wrap: wrap;
}
.configurator-toggle-group {
  display: flex;
  align-items: center;
  gap: 15px;
}
/* Segmented toggle */
.configurator-segmented {
  display: flex;
  background: rgba(255,255,255,0.05);
  border-radius: 30px;
  padding: 3px;
  border: 1px solid rgba(255,255,255,0.1);
}
.configurator-seg-btn {
  padding: 8px 22px;
  border: none;
  background: none;
  color: var(--secondary);
  font-size: 14px;
  cursor: pointer;
  border-radius: 30px;
  transition: all 0.3s ease;
}
.configurator-seg-btn.active {
  background: var(--theme);
  color: #111;
  font-weight: 500;
}
/* Toggle switch with sun/moon */
.configurator-switch {
  position: relative;
  display: inline-block;
  width: 70px;
  height: 36px;
}
.configurator-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}
.configurator-switch-slider {
  position: absolute;
  cursor: pointer;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(255,255,255,0.1);
  border-radius: 36px;
  transition: 0.3s;
  border: 1px solid rgba(255,255,255,0.15);
}
.configurator-switch-slider::before {
  content: '';
  position: absolute;
  height: 28px;
  width: 28px;
  left: 3px;
  bottom: 3px;
  background: var(--secondary);
  border-radius: 50%;
  transition: 0.3s;
  z-index: 2;
}
.configurator-icon-sun,
.configurator-icon-moon {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 14px;
  z-index: 1;
  transition: opacity 0.3s ease;
}
.configurator-icon-sun {
  left: 9px;
  color: #111;
  opacity: 0;
}
.configurator-icon-moon {
  right: 9px;
  color: var(--secondary);
  opacity: 1;
}
.configurator-switch input:checked + .configurator-switch-slider {
  
  border-color: #334;
}
.configurator-switch input:checked + .configurator-switch-slider::before {
  transform: translateX(34px);
  background: #e8e8ff;
}
.configurator-switch input:checked + .configurator-switch-slider .configurator-icon-sun {
  opacity: 1;
  color: var(--theme);
}
.configurator-switch input:checked + .configurator-switch-slider .configurator-icon-moon {
  opacity: 0;
}
@media (max-width: 480px) {
  .configurator-controls {
    gap: 25px;
  }
  .configurator-seg-btn {
    padding: 6px 16px;
    font-size: 13px;
  }
}

/* Temperature timeline */
.temp-timeline {
  position: relative;
  padding-top: 30px;
}
.temp-timeline-bar {
  position: absolute;
  top: 38px;
  left: 0;
  right: 0;
  height: 12px;
  background: linear-gradient(to right, #FF9329 0%, #FFF4E5 20%, #FFFFFF 40%, #D4E5FF 60%, #D4E5FF 78%, #FF0000 80%, #FF8800 84%, #FFFF00 87%, #00FF00 90%, #0088FF 94%, #8800FF 97%, #FF0000 100%);
  border-radius: 6px;
}
.temp-timeline-items {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  position: relative;
}
.temp-timeline-item {
  flex: 1;
  text-align: center;
}
.temp-timeline-dot {
  display: none;
}
.temp-timeline-dot-rgb {
  display: none;
}
.temp-timeline-content {
  margin-top: 50px;
}
.temp-timeline-content h4 {
  font-size: 16px;
  color: var(--white);
  margin-bottom: 10px;
  font-weight: 500;
}
.temp-timeline-content .pro,
.temp-timeline-content .con {
  font-size: 13px;
  line-height: 1.5;
  margin-bottom: 6px;
}
.temp-timeline-content .pro {
  color: var(--secondary);
}
.temp-timeline-content .pro i {
  color: #4ECDC4;
  margin-right: 4px;
  font-size: 11px;
}
.temp-timeline-content .con {
  color: var(--secondary);
  opacity: 0.7;
}
.temp-timeline-content .con i {
  color: #E85D75;
  margin-right: 4px;
  font-size: 11px;
}
@media (max-width: 767px) {
  .temp-timeline {
    padding-top: 0;
  }
  .temp-timeline-bar {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    right: auto;
    transform: translateX(-50%);
    width: 12px;
    height: 100%;
    background: linear-gradient(to bottom, #FF9329 0%, #FFF4E5 20%, #FFFFFF 40%, #D4E5FF 60%, #D4E5FF 78%, #FF0000 80%, #FF8800 84%, #FFFF00 87%, #00FF00 90%, #0088FF 94%, #8800FF 97%, #FF0000 100%);
    border-radius: 6px;
  }
  .temp-timeline-items {
    flex-direction: column;
    gap: 0;
  }
  .temp-timeline-item {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 0;
    align-items: center;
    padding: 20px 0;
  }
  .temp-timeline-content {
    margin-top: 0;
    grid-column: 3;
    text-align: left;
    padding-left: 25px;
  }
  .temp-timeline-content h4 {
    display: none;
  }
  .temp-timeline-item::before {
    content: attr(data-label);
    grid-column: 1;
    text-align: right;
    padding-right: 25px;
    font-size: 15px;
    font-weight: 500;
    color: var(--white);
  }
  .temp-timeline-item::after {
    content: '';
    grid-column: 2;
    width: 6px;
  }
}

/* Comparison table */
.insegna-table {
  width: 100%;
  border-collapse: collapse;
}
.insegna-table th,
.insegna-table td {
  padding: 20px 15px;
  text-align: left;
  font-size: 16px;
  color: var(--secondary);
  border-bottom: 1px solid var(--border);
}
.insegna-table th {
  color: var(--white);
  font-weight: 500;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.insegna-table td strong {
  color: var(--white);
}
.insegna-table tbody tr:last-child td {
  border-bottom: 1px solid var(--border);
}
/* Rating dots */
[class^="dots-"] {
  display: inline-flex;
  gap: 6px;
}
[class^="dots-"] .d {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255,255,255,0.15);
}
[class^="dots-"] .d.on {
  background: var(--theme);
}
.table-responsive {
  overflow-x: auto;
}
@media (max-width: 767px) {
  .insegna-table th,
  .insegna-table td {
    padding: 10px 6px;
    font-size: 12px;
  }
  .insegna-table th {
    font-size: 10px;
    letter-spacing: 0;
  }
  .insegna-table {
    min-width: 0;
  }
  [class^="dots-"] {
    gap: 3px;
  }
  [class^="dots-"] .d {
    width: 8px;
    height: 8px;
  }
}

/* Materiali section */
.insegna-materiali .info-list li:before {
  display: none;
}
.variante-item {
  text-align: center;
  margin-bottom: 25px;
  flex: 0 0 20%;
  max-width: 20%;
}
.variante-thumb {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  margin: 0 auto 12px;
  overflow: hidden;
  border: 2px solid rgba(255,255,255,0.1);
  position: relative;
  cursor: pointer;
  transition: transform 0.3s ease, border-color 0.3s ease;
}
.variante-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}
/* Lucido finish — mirror shine sweep on hover */
.lucido-shine {
  position: relative;
  overflow: hidden;
}
.lucido-shine::before {
  content: '';
  position: absolute;
  top: -30%;
  left: -60%;
  width: 55%;
  height: 160%;
  background: linear-gradient(
    100deg,
    transparent 0%,
    rgba(255, 255, 255, 0.1) 20%,
    rgba(255, 255, 255, 0.95) 50%,
    rgba(255, 255, 255, 0.1) 80%,
    transparent 100%
  );
  transform: rotate(20deg) translateX(-250%);
  transition: transform 1.1s ease;
  pointer-events: none;
  z-index: 2;
  mix-blend-mode: screen;
}
.lucido-shine:hover::before,
.lucido-shine.shine-active::before {
  transform: rotate(20deg) translateX(400%);
}
.variante-thumb.lucido {
  position: relative;
  overflow: hidden;
}
.variante-thumb.lucido::before {
  content: '';
  position: absolute;
  top: -30%;
  left: -60%;
  width: 55%;
  height: 160%;
  background: linear-gradient(
    100deg,
    transparent 0%,
    rgba(255, 255, 255, 0.1) 20%,
    rgba(255, 255, 255, 0.95) 50%,
    rgba(255, 255, 255, 0.1) 80%,
    transparent 100%
  );
  transform: rotate(20deg) translateX(-250%);
  transition: transform 1.1s ease;
  pointer-events: none;
  z-index: 2;
  mix-blend-mode: screen;
}
.variante-thumb.lucido:hover::before {
  transform: rotate(20deg) translateX(400%);
}
/* Opaco — subtle inner shadow to suggest matte surface */
.variante-thumb.opaco {
  box-shadow: inset 0 0 12px rgba(0, 0, 0, 0.3);
}
/* Magnifier lens */
.variante-lens {
  display: none;
  position: absolute;
  width: 250px;
  height: 250px;
  border-radius: 50%;
  border: 2px solid var(--theme);
  box-shadow: 0 0 15px rgba(0,0,0,0.5), 0 0 6px var(--theme);
  overflow: hidden;
  pointer-events: none;
  z-index: 100;
  background-size: 400%;
  background-repeat: no-repeat;
}
.variante-thumb:hover {
  border-color: var(--theme);
}
@media (max-width: 767px) {
  .variante-lens {
    width: 120px;
    height: 120px;
  }
}
.variante-item .variante-label {
  font-size: 14px;
  color: var(--secondary);
}
@media (max-width: 767px) {
  .variante-item {
    flex: 0 0 50%;
    max-width: 50%;
  }
  .insegna-materiali .section-content-wrapper .info-list {
    margin-bottom: 30px;
  }
  .variante-label br {
    display: inline !important;
  }
}

/* Plexiglas specs toggle + hint */
.plexiglas-specs-toggle {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-top: 30px;
  margin-bottom: 10px;
}
.info-list .plexiglas-specs-toggle,
.info-list .plexiglas-specs-hint {
  letter-spacing: normal;
}
.plexiglas-switch-label {
  font-size: 14px;
  color: var(--secondary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.plexiglas-switch {
  position: relative;
  display: inline-block;
  width: 50px;
  height: 26px;
}
.plexiglas-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}
.plexiglas-switch-slider {
  position: absolute;
  cursor: pointer;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(255,255,255,0.1);
  border-radius: 26px;
  transition: 0.3s;
  border: 1px solid rgba(255,255,255,0.15);
}
.plexiglas-switch-slider::before {
  content: '';
  position: absolute;
  height: 20px;
  width: 20px;
  left: 2px;
  bottom: 2px;
  background: var(--secondary);
  border-radius: 50%;
  transition: 0.3s;
}
.plexiglas-switch input:checked + .plexiglas-switch-slider {
  background: var(--theme);
  border-color: var(--theme);
}
.plexiglas-switch input:checked + .plexiglas-switch-slider::before {
  transform: translateX(24px);
  background: #111;
}
.plexiglas-specs-hint {
  font-size: 14px;
  color: var(--theme);
  margin-bottom: 25px;
  display: none;
  font-style: italic;
}
.specs-mode .plexiglas-specs-hint {
  display: block;
}

/* Specs mode: thumbs become explicitly clickable, disable magnifier cursor */
.specs-mode .variante-thumb {
  cursor: pointer;
}
.specs-mode .variante-thumb::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid var(--theme);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
  z-index: 3;
}
.specs-mode .variante-thumb:hover::after {
  opacity: 1;
}

/* Specs modal */
.specs-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.specs-modal.open {
  display: flex;
}
.specs-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.75);
  backdrop-filter: blur(4px);
}
.specs-modal-content {
  position: relative;
  background: #1a1a1a;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 8px;
  max-width: 600px;
  width: 100%;
  max-height: 85vh;
  overflow-y: auto;
  padding: 40px 40px 30px;
  color: var(--white);
}
.specs-modal-close {
  position: absolute;
  top: 15px;
  right: 15px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.15);
  background: rgba(255,255,255,0.05);
  color: var(--white);
  cursor: pointer;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}
.specs-modal-close:hover {
  background: var(--theme);
  color: #111;
  border-color: var(--theme);
}
.specs-modal-header {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 25px;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.specs-modal-thumb {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid rgba(255,255,255,0.1);
  flex-shrink: 0;
}
.specs-modal-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.specs-modal-heading {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.specs-modal-material {
  font-size: 12px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--theme);
}
.specs-modal-material:empty {
  display: none;
}
.specs-modal-title {
  font-size: 22px;
  font-weight: 500;
  margin: 0;
  color: var(--white);
}
.specs-list {
  margin: 0;
}
.specs-row {
  padding: 12px 0;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.specs-row:last-child {
  border-bottom: none;
}
.specs-row-main {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
  align-items: center;
}
.specs-key {
  font-size: 14px;
  color: var(--secondary);
  margin: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}
.specs-info-btn {
  background: none;
  border: none;
  padding: 0;
  margin: 0;
  cursor: pointer;
  color: var(--theme);
  font-size: 13px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s ease, color 0.3s ease;
}
.specs-info-btn:hover {
  transform: scale(1.2);
}
.specs-row.expanded .specs-info-btn {
  color: var(--white);
  transform: rotate(180deg);
}
.specs-row.expanded .specs-info-btn:hover {
  transform: rotate(180deg) scale(1.2);
}
.specs-value {
  font-size: 14px;
  color: var(--white);
  margin: 0;
  text-align: right;
}
.specs-row-info {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, opacity 0.3s ease, margin-top 0.3s ease;
  opacity: 0;
  margin-top: 0;
}
.specs-row.expanded .specs-row-info {
  opacity: 1;
  margin-top: 8px;
}
.specs-row-info p {
  font-size: 12px;
  color: var(--secondary);
  line-height: 1.5;
  margin: 0;
  padding: 10px 12px;
  background: rgba(255,255,255,0.04);
  border-left: 2px solid var(--theme);
  border-radius: 2px;
  font-style: italic;
}
.specs-loading,
.specs-empty {
  text-align: center;
  color: var(--secondary);
  padding: 20px 0;
  font-style: italic;
}
@media (max-width: 575px) {
  .specs-modal-content {
    padding: 30px 20px 20px;
  }
  .specs-modal-title {
    font-size: 18px;
  }
  .specs-row-main {
    grid-template-columns: 1fr;
    gap: 4px;
  }
  .specs-value {
    text-align: left;
  }
}

