/**
 * Home (page-templates/home.php) — restyling 2026.
 *
 * Estratto dai due blocchi <style> che stavano dentro al template.
 * Caricato solo sulla home, per ultimo fra i fogli del tema, così da
 * mantenere la stessa precedenza che aveva quando era inline.
 *
 * NOTA: .container, .badge, .btn e .btn-primary ridefiniscono classi
 * Bootstrap. Oggi sulla home nessun elemento di header o footer usa quei
 * nomi, quindi non c'è conflitto; se in futuro si aggiunge un bottone o un
 * badge Bootstrap alla home, vanno prima rinominati in .o24-*.
 */

/* ==========================================================================
   Catalogo noleggio + modulo di contatto
   ========================================================================== */

.form-box .wpcf7-form input[type="submit"] {
  width: 100%;
  padding: 14px;
  background: #d92342;
  color: white;
  font-family: 'Montserrat', sans-serif;
  font-weight: 900;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  border: none;
  cursor: pointer;
}

.form-box .wpcf7-form label {
  color: #ffffff !important;
  font-weight: 600;
}

.form-box .wpcf7-form input[type="text"],
.form-box .wpcf7-form input[type="email"],
.form-box .wpcf7-form textarea {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.25);
  color: #ffffff;
}

.form-box .wpcf7-form input[type="text"]::placeholder,
.form-box .wpcf7-form input[type="email"]::placeholder,
.form-box .wpcf7-form textarea::placeholder {
  color: rgba(255,255,255,0.45);
}

.o24-catalog-section {
  background: #f5f5f5;
  padding: 64px 0;
}

.o24-catalog-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}

.o24-catalog-badge {
  display: inline-flex;
  align-items: center;
  padding: 0 20px;
  height: 34px;
  background: #d92342;
  color: white;
  font-family: 'Montserrat', sans-serif;
  font-weight: 900;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  clip-path: polygon(0 0, calc(100% - 8px) 0, 100% 100%, 8px 100%);
  margin-bottom: 16px;
}

.o24-catalog-title {
  font-family: 'Montserrat', sans-serif;
  font-weight: 900;
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: #1a1a1a;
  margin-bottom: 40px;
}

.o24-catalog-title em {
  color: #d92342;
  font-style: normal;
}

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

.o24-catalog-card {
  background: white;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  transition: transform 0.2s, box-shadow 0.2s;
}

.o24-catalog-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 36px rgba(0,0,0,0.13);
}

.o24-card-img-wrap {
  position: relative;
  overflow: hidden;
  height: 220px;
  background: #f0f0f0;
}

.o24-card-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s;
}

.o24-catalog-card:hover .o24-card-img-wrap img {
  transform: scale(1.05);
}

.o24-card-tag {
  position: absolute;
  top: 12px;
  left: 0;
  background: #d92342;
  color: white;
  font-family: 'Montserrat', sans-serif;
  font-weight: 900;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 5px 12px;
}

.o24-card-body {
  padding: 18px 18px 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.o24-card-title {
  font-family: 'Montserrat', sans-serif;
  font-weight: 900;
  font-size: 14px;
  letter-spacing: 0.04em;
  color: #1a1a1a;
  margin-bottom: 4px;
  text-transform: uppercase;
}

.o24-card-sub {
  font-size: 13px;
  color: #888;
  margin-bottom: 16px;
  flex: 1;
}

.o24-card-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 20px;
  background: #d92342;
  color: white;
  font-family: 'Montserrat', sans-serif;
  font-weight: 900;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  width: 100%;
  transition: opacity 0.15s;
}

.o24-card-btn:hover {
  opacity: 0.85;
}

@media (max-width: 900px) {
  .o24-catalog-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 560px) {
  .o24-catalog-grid {
    grid-template-columns: 1fr;
  }

  .o24-catalog-section {
    padding: 40px 0;
  }
}

.o24-catalog-section {
  background: #f5f5f5;
  padding: 64px 0;
}

.o24-catalog-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}

.o24-catalog-badge {
  display: inline-flex;
  align-items: center;
  padding: 0 20px;
  height: 34px;
  background: #d92342;
  color: white;
  font-family: 'Montserrat', sans-serif;
  font-weight: 900;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  clip-path: polygon(0 0, calc(100% - 8px) 0, 100% 100%, 8px 100%);
  margin-bottom: 16px;
}

.o24-catalog-title {
  font-family: 'Montserrat', sans-serif;
  font-weight: 900;
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: #1a1a1a;
  margin-bottom: 40px;
}

.o24-catalog-title em {
  color: #d92342;
  font-style: normal;
}

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

.o24-catalog-card {
  background: white;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  transition: transform 0.2s, box-shadow 0.2s;
}

.o24-catalog-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 36px rgba(0,0,0,0.13);
}

.o24-card-img-wrap {
  position: relative;
  overflow: hidden;
  height: 220px;
  background: #f0f0f0;
}

.o24-card-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s;
}

.o24-catalog-card:hover .o24-card-img-wrap img {
  transform: scale(1.05);
}

.o24-card-tag {
  position: absolute;
  top: 12px;
  left: 0;
  background: #d92342;
  color: white;
  font-family: 'Montserrat', sans-serif;
  font-weight: 900;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 5px 12px;
}

.o24-card-body {
  padding: 18px 18px 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.o24-card-title {
  font-family: 'Montserrat', sans-serif;
  font-weight: 900;
  font-size: 14px;
  letter-spacing: 0.04em;
  color: #1a1a1a;
  margin-bottom: 4px;
  text-transform: uppercase;
}

.o24-card-sub {
  font-size: 13px;
  color: #888;
  margin-bottom: 16px;
  flex: 1;
}

.o24-card-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 20px;
  background: #d92342;
  color: white;
  font-family: 'Montserrat', sans-serif;
  font-weight: 900;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  width: 100%;
  transition: opacity 0.15s;
}

.o24-card-btn:hover {
  opacity: 0.85;
}

@media (max-width: 900px) {
  .o24-catalog-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 560px) {
  .o24-catalog-grid {
    grid-template-columns: 1fr;
  }

  .o24-catalog-section {
    padding: 40px 0;
  }
}

/* ==========================================================================
   Token colore, sezione Chi Siamo e sezione Contatti
   ========================================================================== */

:root {
  --dark:  #111111;
  --dark2: #1e1e1e;
  --light: #f5f5f5;
  --red:   #d92342;
  --muted: #888888;
}

.badge {
  display: inline-flex;
  align-items: center;
  padding: 0 20px;
  height: 34px;
  background: var(--red);
  color: white;
  font-family: 'Montserrat', sans-serif;
  font-weight: 900;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  clip-path: polygon(0 0, calc(100% - 8px) 0, 100% 100%, 8px 100%);
  margin-bottom: 20px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 16px 34px;
  font-family: 'Montserrat', sans-serif;
  font-weight: 900;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  transition: opacity 0.15s, transform 0.1s;
  cursor: pointer;
}

.btn:active {
  transform: scale(0.97);
}

.btn-primary {
  background: var(--red);
  color: white;
}

.btn-primary:hover {
  opacity: 0.85;
}

.section-light {
  background: #f5f5f5 !important;
  padding: 80px 0;
}

.section-dark {
  background: #111111 !important;
  padding: 80px 0;
}

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}

.section-title {
  font-family: 'Montserrat', sans-serif;
  font-weight: 900;
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--dark);
}

.section-title em {
  color: var(--red);
  font-style: normal;
}

.section-title-light {
  color: white;
}

.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}

.valori-header {
  padding: 12px 20px;
  background: var(--red-light);
  border-left: 3px solid var(--red);
  color: var(--red);
  font-family: 'Montserrat', sans-serif;
  font-weight: 900;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  margin-bottom: 20px;
}

.valori-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.valore {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: var(--dark2);
}

.valore-icon {
  font-size: 1.3rem;
}

.valore-label {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 13px;
  color: white;
}

.chi-siamo-text {
  color: oklch(0.75 0.01 25);
  font-size: 14px;
  line-height: 1.7;
  margin-bottom: 16px;
}

.chi-siamo-text strong {
  color: white;
}

.impegno-box {
  margin-top: 28px;
  padding: 22px 24px;
  background: var(--red-light);
  border-left: 3px solid var(--red);
  color: oklch(0.82 0.01 25);
}

.impegno-title {
  font-family: 'Montserrat', sans-serif;
  font-weight: 900;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--red);
  margin-bottom: 14px;
}

.impegno-text {
  color: oklch(0.75 0.01 25);
  font-size: 14px;
  line-height: 1.7;
  margin-bottom: 14px;
}

.impegno-text:last-child {
  margin-bottom: 0;
}

.gruppo-peretti-box {
  background: linear-gradient(135deg, oklch(0.18 0.01 25), oklch(0.12 0.005 25));
  border-left: 3px solid var(--red);
  padding: 30px 26px;
  margin-bottom: 26px;
  text-align: center;
  box-shadow: 0 8px 28px oklch(0 0 0 / 0.18);
}

.gruppo-peretti-logo {
  width: 100%;
  max-width: 560px;
  height: auto;
  margin: 0 auto 24px;
  border: 1px solid oklch(1 0 0 / 0.10);
  box-shadow: 0 10px 32px oklch(0 0 0 / 0.24);
}

.gruppo-peretti-text {
  color: oklch(0.74 0.01 25);
  font-size: 13px;
  line-height: 1.6;
  margin: 0 auto 18px;
  max-width: 520px;
}

.gruppo-peretti-text strong {
  color: white;
}

.gruppo-peretti-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  max-width: 420px;
  padding: 13px 20px;
  background: transparent;
  border: 2px solid var(--red);
  color: var(--red);
  font-family: 'Montserrat', sans-serif;
  font-weight: 900;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.13em;
  transition: background 0.15s, color 0.15s, opacity 0.15s;
}

.gruppo-peretti-link:hover {
  background: var(--red);
  color: white;
  opacity: 0.95;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  background: white;
  border-left: 3px solid var(--red);
  margin-bottom: 12px;
  transition: background 0.15s;
}

.contact-item:hover {
  background: oklch(0.97 0.005 25);
}

.contact-icon {
  font-size: 1.4rem;
  color: var(--red);
}

.contact-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
  font-weight: 600;
}

.contact-value {
  font-family: 'Montserrat', sans-serif;
  font-weight: 900;
  font-size: 14px;
  color: var(--dark);
}

.contact-hours {
  align-items: flex-start;
}

.contact-note {
  margin-top: 8px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.contact-note strong {
  color: var(--dark);
}

.form-box {
  background: var(--dark);
  padding: 32px;
  box-shadow: 0 4px 32px oklch(0 0 0 / 0.15);
}

.form-title {
  font-family: 'Montserrat', sans-serif;
  font-weight: 900;
  font-size: 16px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: white;
  margin-bottom: 24px;
}

@keyframes whatsapp-pulse {
      0%, 78%, 100% { box-shadow: 0 12px 34px oklch(0 0 0 / 0.28), 0 0 0 0 rgba(37, 211, 102, 0.38); }
      88% { box-shadow: 0 12px 34px oklch(0 0 0 / 0.28), 0 0 0 12px rgba(37, 211, 102, 0); }
    }

@media (max-width: 900px) {
  .grid-2 {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

/* ==========================================================================
   Utility
   ========================================================================== */

.o24-spacer {
  height: 40px;
  background: #fff;
}
