﻿/* =========================================================
   RESET BASE
========================================================= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Montserrat', sans-serif;
  font-weight: 300;
  background: #fff;
  color: #555;
  overflow-x: hidden;
}

/* =========================================================
   HERO FRAME
========================================================= */
.hero-frame {
  margin-top: 0vh;
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 2%;
}

/* =========================================================
   PRODUCT GRID / WRAPPER
========================================================= */
.product-grid {
  display: grid;
  margin-top: 5vh;
  width: 94%;
  max-width: 1600px;
  height: auto;
  grid-template-columns: 20% 65% 15%;
  justify-items: center;
}

.col {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100%;
}

.inner {
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
}

/* =========================================================
   TEXT
========================================================= */
.product-title {
  margin-left: 15vh;
  font-size: clamp(16px, 2.5vw, 1vw);
  line-height: 1.2;
  color: #777;
  margin-bottom: 1.5rem;
}

.product-desc {
  margin-left: 15vh;
  font-size: clamp(10px, 1.5vw, 0.6vw);
  line-height: 1.4;
  color: #777;
  margin-bottom: 1rem;
}

.product-details {
  margin-left: 15vh;
  font-size: clamp(10px, 2vw, 0.7vw);
  line-height: 1.4;
  color: #777;
  margin-bottom: 1rem;
}

/* =========================================================
   SLIDER / MAIN IMAGE
========================================================= */
.slider-container {
  height: 575px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.main-image {
  max-height: 90%;  /* desktop grande */
  width: auto;
  object-fit: contain;
  transition: all 0.3s ease;
}

/* =========================
   MEDIA QUERIES MAIN IMAGE
========================= */
@media (max-width: 1400px) { .main-image { max-height: 85%; } }
@media (max-width: 1280px) { .main-image { max-height: 80%; } }
@media (max-width: 1024px) { .main-image { max-height: 60%; } }
@media (max-width: 896px)  { .main-image { max-height: 70%; } }
@media (max-width: 768px)  { .main-image { max-height: 65%; } }
@media (max-width: 720px)  { .main-image { max-height: 60%; } }
@media (max-width: 667px)  { .main-image { max-height: 55%; } }
@media (max-width: 480px)  { .main-image { max-height: 50%; } }

/* =========================================================
   THUMBS VERTICALI
========================================================= */
.thumbs-vertical {
  display: flex;
  flex-direction: column;
  gap: 10px;
  box-sizing: border-box;
}

.thumbs-vertical .thumb {
  width: 4vw;
  height: 4vw;
  cursor: pointer;
  opacity: 0.6;
  transition: opacity 0.3s, transform 0.3s;
  border: 1.5px solid #555;
  border-radius: 12px;
  object-fit: cover;
  box-sizing: border-box;
}

.thumbs-vertical .thumb:hover {
  transform: scale(1.05);
}

/* =========================================================
   ARROWS
========================================================= */
.arrow-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 2vw;
  color: #777;
  opacity: 0.3;
  text-decoration: none;
}

.arrow-left { left: 6vw; }
.arrow-right { right: 6vw; }

.arrow-nav:hover { opacity: 1; }

/* =========================================================
   ENQUIRE BUTTON
========================================================= */
.enquire {
  margin-left: 15vh;
  text-decoration: none;
  color: #222;
  padding: 10px 50px;
  font-family: 'Montserrat', sans-serif;
  font-size: 16px;
}

.enquire:hover {
  background: #f0f0f0;
}

/* =========================================================
   MODAL ENQUIRE
========================================================= */
.enquire-modal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 999;
  padding: 20px;
  overflow-y: auto;
}

.enquire-modal.active {
  display: flex;
}

.enquire-content {
  background: #fff;
  padding: 35px;
  width: 500px;
  max-width: 95%;
  max-height: 90vh;
  overflow-y: auto;
  border-radius: 5px;
  position: relative;
}

.close-modal {
  position: absolute;
  right: 15px;
  top: 10px;
  font-size: 22px;
  cursor: pointer;
}

/* =========================================================
   FORM
========================================================= */
.enquire-form input,
.enquire-form select,
.enquire-form textarea {
  width: 100%;
  margin-top: 2px;
  padding: 5px;
  border: 1px solid #ccc;
  background: #fff;
  font-size: 1rem;
  color: #555;
  font-family: 'Montserrat', sans-serif;
}

.enquire-form button {
  margin-top: 8px;
  width: 100%;
  padding: 10px;
  background: #333;
  color: white;
  border: none;
}

.checkbox-row {
  display: flex;
  align-items: center;      /* allinea verticalmente checkbox e testo */
  gap: 0.6vw;               /* spazio elegante tra quadratino e testo */
  margin-top: 1vh;
  font-size: 0.85vw;
  color: #777;
}
.checkbox-row {
  margin-top: 4px;
}


.checkbox-row input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;

  width: 14px;
  height: 14px;
  margin: 0;

  border: 1px solid #777;
  border-radius: 0;     /* 🔴 completamente squadrato */
  background: #fff;

  cursor: pointer;
  position: relative;
}

.checkbox-row input[type="checkbox"]:checked::after {
  content: "";
  position: absolute;
  inset: 3px;
  background: #777;
}



.checkbox-row label {
  cursor: pointer;
  line-height: 1;           /* evita che il testo “scenda” */
}


/* =========================================================
   ROTATE MESSAGE (INTEGRATO)
========================================================= */
.rotate-message {
  display: none;
  position: fixed;
  inset: 0;
  background: #fff;
  color: #555;
  font-size: 6vw;
  font-family: 'Montserrat', sans-serif;
  font-weight: 300;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 20px;
  z-index: 999999;
}

/* MOSTRA SOLO MOBILE + PORTRAIT */
@media screen and (max-width: 900px) and (orientation: portrait) {
  .rotate-message { display: flex !important; }
  body > *:not(.rotate-message) { display: none !important; }
}

/* NASCOSTO IN LANDSCAPE */
@media screen and (max-width: 900px) and (orientation: landscape) {
  .rotate-message { display: none !important; }
}

/* =========================================================
   MEDIA QUERIES GENERALI / RESPONSIVE
========================================================= */

/* Frecce */
@media (max-width: 1400px),
       (max-width: 1100px),
       (max-width: 900px) {
  .arrow-left { left: 6%; }
  .arrow-right { right: 6%; }
}

/* Modal enquire su mobile */
@media (max-width: 768px) {
  .enquire-modal {
    align-items: flex-start;
    padding: 20px 0;
  }

  .enquire-content {
    width: 95%;
    padding: 15px;
    max-height: calc(100vh - 40px);
  }
}
