@import url("https://fonts.googleapis.com/css2?family=Cinzel:wght@400;600;700&display=swap");

/*--------------------------------------------------------------
# Stili aggiuntivi Coltimber (elementi introdotti dopo l'export)
# Caricato dopo main.css: usa le stesse variabili del tema.
--------------------------------------------------------------*/

/* --- Descrizione omaggi --- */
.product-desc {
  font-size: .9rem;
  color: color-mix(in srgb, var(--default-color), transparent 30%);
  margin-top: 4px;
}

/* --- Foto Prima / Dopo (pagina Lavori) --- */
.beforeafter img {
  border-radius: 8px;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* --- Call to action configuratore 3D --- */
/* Nessuno sfondo proprio: eredita il colore della sezione (chiaro o scuro). */
.config-cta {
  text-align: center;
  padding: 10px 0;
  margin: 0 auto;
  max-width: 820px;
}

.config-cta h3 {
  color: var(--heading-color);
  font-family: var(--heading-font);
  margin-bottom: 15px;
}

.config-cta p {
  margin-bottom: 25px;
}

.btn-config {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background-color: var(--accent-color);
  color: var(--contrast-color);
  padding: 13px 30px;
  border-radius: 50px;
  font-weight: 600;
  text-decoration: none;
  transition: transform .2s ease, background-color .2s ease;
}

.btn-config:hover {
  color: var(--contrast-color);
  background-color: color-mix(in srgb, var(--accent-color), #000 12%);
  transform: translateY(-2px);
}

/* --- Album (pagina Strumentazione) --- */
.album-item {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: 10px;
}

.album-item img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform .4s ease;
}

.album-item:hover img {
  transform: scale(1.06);
}

.album-zoom {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 2rem;
  background: color-mix(in srgb, #000, transparent 60%);
  opacity: 0;
  transition: opacity .3s ease;
}

.album-item:hover .album-zoom {
  opacity: 1;
}

/*--------------------------------------------------------------
# Configuratore 3D
--------------------------------------------------------------*/
.configurator {
  padding-top: 40px;
}

.cfg-layout {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 30px;
  align-items: start;
}

@media (max-width: 991px) {
  .cfg-layout {
    grid-template-columns: 1fr;
  }
}

.cfg-viewer {
  position: relative;
  background: radial-gradient(120% 90% at 50% 15%, #ffffff 0%, #f1ede6 55%, #e2ddd2 100%);
  border-radius: 16px;
  overflow: hidden;
  min-height: 460px;
  border: 1px solid color-mix(in srgb, var(--default-color), transparent 90%);
  box-shadow: inset 0 -30px 60px rgba(120, 110, 95, .12);
}

.cfg-viewer::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 8%;
  width: 55%;
  height: 40px;
  transform: translateX(-50%);
  background: radial-gradient(closest-side, rgba(70, 60, 45, .22), rgba(70, 60, 45, 0) 75%);
  filter: blur(3px);
  pointer-events: none;
  z-index: 0;
}

.cfg-viewer canvas {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: 100%;
  touch-action: none;
}

.cfg-hint {
  position: absolute;
  left: 14px;
  bottom: 12px;
  color: rgba(60, 55, 45, .6);
  font-size: .8rem;
  pointer-events: none;
}

.cfg-volume {
  position: absolute;
  right: 14px;
  top: 12px;
  background: color-mix(in srgb, var(--accent-color), transparent 8%);
  color: #fff;
  padding: 6px 14px;
  border-radius: 50px;
  font-weight: 600;
  font-size: .9rem;
}

.cfg-panel {
  background: var(--surface-color);
  border: 1px solid color-mix(in srgb, var(--default-color), transparent 88%);
  border-radius: 16px;
  padding: 26px;
}

.cfg-panel h3 {
  font-family: var(--heading-font);
  color: var(--heading-color);
  font-size: 1.25rem;
  margin-bottom: 6px;
}

.cfg-panel .cfg-sub {
  color: color-mix(in srgb, var(--default-color), transparent 35%);
  font-size: .9rem;
  margin-bottom: 22px;
}

.cfg-group {
  margin-bottom: 22px;
}

.cfg-group > label {
  display: block;
  font-weight: 600;
  color: var(--heading-color);
  margin-bottom: 10px;
  font-size: .95rem;
}

/* segmenti (tipo prodotto) */
.cfg-seg {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.cfg-seg button {
  flex: 1 1 0;
  min-width: 120px;
  padding: 11px 12px;
  border: 1px solid color-mix(in srgb, var(--default-color), transparent 80%);
  background: transparent;
  color: var(--default-color);
  border-radius: 10px;
  cursor: pointer;
  font-weight: 600;
  transition: all .2s ease;
}

.cfg-seg button.active {
  background: var(--accent-color);
  border-color: var(--accent-color);
  color: var(--contrast-color);
}

/* campioni di legno */
.cfg-woods {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.cfg-wood {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  font-size: .8rem;
  color: var(--default-color);
}

.cfg-wood .swatch {
  width: 46px;
  height: 46px;
  border-radius: 10px;
  border: 3px solid transparent;
  transition: border-color .2s ease, transform .2s ease;
}

.cfg-wood.active .swatch {
  border-color: var(--accent-color);
  transform: scale(1.05);
}

/* slider misure */
.cfg-range {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
  font-size: .9rem;
}

.cfg-range .val {
  font-weight: 700;
  color: var(--accent-color);
}

.cfg-group input[type="range"] {
  width: 100%;
  accent-color: var(--accent-color);
}

.cfg-select {
  width: 100%;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid color-mix(in srgb, var(--default-color), transparent 80%);
  background: var(--background-color);
  color: var(--default-color);
}

.btn-quote {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  margin-top: 6px;
  background: var(--accent-color);
  color: var(--contrast-color);
  border: none;
  padding: 14px;
  border-radius: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: background-color .2s ease, transform .2s ease;
}

.btn-quote:hover {
  background: color-mix(in srgb, var(--accent-color), #000 12%);
  transform: translateY(-2px);
}

.cfg-note {
  font-size: .8rem;
  color: color-mix(in srgb, var(--default-color), transparent 40%);
  margin-top: 12px;
  text-align: center;
}

/* --- Modulo contatti: nascondi i messaggi di stato finche' non servono --- */
.php-email-form .loading,
.php-email-form .error-message,
.php-email-form .sent-message { display: none; }


/* --- Mappa contatti --- */
.map-embed { margin-top: 10px; }
.map-embed iframe { display: block; width: 100%; height: 400px; border: 0; border-radius: 10px; }


/* --- Logo nell'intestazione (emblema circolare, va piu' grande) --- */
.header .logo img { max-height: 52px; margin-right: 0; }

/* --- Icone social nel footer: niente verde, tono neutro sul fondo scuro --- */
.footer .social-links a {
  background: transparent;
  color: var(--contrast-color);
  border: 1px solid color-mix(in srgb, var(--contrast-color), transparent 65%);
}
.footer .social-links a:hover {
  background: color-mix(in srgb, var(--contrast-color), transparent 88%);
  color: var(--contrast-color);
  border-color: color-mix(in srgb, var(--contrast-color), transparent 40%);
}

/*--------------------------------------------------------------
# Miglioramenti grafici (revisione luglio 2026)
--------------------------------------------------------------*/

/* --- Footer a tre colonne --- */
.footer .footer-main {
  padding-bottom: 25px;
  border-bottom: 1px solid color-mix(in srgb, var(--contrast-color), transparent 88%);
  margin-bottom: 20px;
  text-align: left;
}

.footer .footer-main h4 {
  font-family: var(--heading-font);
  font-size: 1.05rem;
  margin-bottom: 14px;
  color: var(--contrast-color);
}

.footer .footer-tagline {
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: .8rem;
  opacity: .7;
  margin-bottom: 10px;
}

.footer .footer-desc {
  font-size: .9rem;
  opacity: .8;
  max-width: 320px;
}

.footer .footer-links,
.footer .footer-contacts {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer .footer-links li,
.footer .footer-contacts li {
  margin-bottom: 8px;
  font-size: .92rem;
}

.footer .footer-links a,
.footer .footer-contacts a {
  color: color-mix(in srgb, var(--contrast-color), transparent 20%);
  text-decoration: none;
  transition: color .2s ease;
}

.footer .footer-links a:hover,
.footer .footer-contacts a:hover {
  color: var(--accent-color);
}

.footer .footer-contacts i {
  color: var(--accent-color);
  margin-right: 6px;
}

.footer .social-links {
  margin-top: 16px;
}

@media (max-width: 767px) {
  .footer .footer-main,
  .footer .footer-desc {
    text-align: center;
  }
  .footer .footer-desc {
    margin-left: auto;
    margin-right: auto;
  }
}

/* --- Card per la call to action del configuratore --- */
.config-cta {
  padding: 40px 30px;
  border-radius: 16px;
  background: var(--surface-color);
  border: 1px solid color-mix(in srgb, var(--accent-color), transparent 75%);
  box-shadow: 0 10px 30px color-mix(in srgb, var(--default-color), transparent 94%);
}

.dark-background .config-cta {
  border-color: color-mix(in srgb, var(--accent-color), transparent 55%);
  box-shadow: none;
}

/* --- Ancore interne: compensazione per lo scroll --- */
section[id],
div[id].page-title {
  scroll-margin-top: 90px;
}

/* --- Miniature cliccabili (pagina Strumentazione) --- */
.thumbnail-grid a.glightbox {
  display: block;
  overflow: hidden;
  border-radius: 8px;
}

.thumbnail-grid a.glightbox img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform .3s ease, opacity .3s ease;
}

.thumbnail-grid a.glightbox:hover img {
  transform: scale(1.07);
  opacity: .9;
}

/* --- Leggibilita' del testo nel carosello hero --- */
.hero .carousel-container h2,
.hero .carousel-container h3 {
  text-shadow: 0 2px 14px rgba(0, 0, 0, .45);
}

/* --- Accessibilita' --- */
a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--accent-color);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/*--------------------------------------------------------------
# Revisione 2: brand nel footer e pagina Il Gruppo
--------------------------------------------------------------*/

/* --- Marchio nel footer: "wood working" sotto "Coltimber" ---
   Trajan Pro se installato, altrimenti Cinzel (Google Fonts, molto simile). */
.footer .footer-brand {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 14px;
}

.footer .brand-name {
  font-family: "Trajan Pro", "Trajan", "Cinzel", serif;
  font-size: 1.85rem;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--contrast-color);
  line-height: 1.1;
}

.footer .brand-tagline {
  font-family: "Trajan Pro", "Trajan", "Cinzel", serif;
  font-size: .78rem;
  letter-spacing: 6px;
  padding-left: 6px; /* compensa l'ultimo letter-spacing per un centraggio ottico */
  text-transform: uppercase;
  color: color-mix(in srgb, var(--contrast-color), transparent 30%);
  margin-top: 4px;
  white-space: nowrap;
}

@media (min-width: 768px) {
  .footer .footer-brand {
    align-items: center; /* il lockup resta centrato su se stesso anche a sinistra */
  }
}

/* --- Home, Il Gruppo Coltimber: 5 schede su una riga (xl) --- */
@media (min-width: 1200px) {
  .team-2 .team-member-card {
    padding: 2rem 1rem 1.4rem 1rem;
  }
  .team-2 .team-name {
    font-size: 1.05rem;
  }
}

/* --- Pagina Il Gruppo: schede con piu' carattere --- */
.team .team-member-card {
  border: none;
  border-radius: 16px;
  box-shadow: 0 4px 22px color-mix(in srgb, var(--heading-color), transparent 92%);
}

.team .team-member-card:hover {
  box-shadow: 0 14px 38px color-mix(in srgb, var(--heading-color), transparent 84%);
  transform: translateY(-6px);
}

.team .member-image-wrapper {
  aspect-ratio: 4 / 3.4;
}

.team .member-image-wrapper::after {
  /* velatura verde che sale dal basso, per legare foto e testo */
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 45%;
  background: linear-gradient(to top, color-mix(in srgb, var(--accent-color), #14301d 55%) -30%, transparent 70%);
  opacity: 0;
  transition: opacity .35s ease;
  pointer-events: none;
}

.team .team-member-card:hover .member-image-wrapper::after {
  opacity: .5;
}

.team .member-content {
  position: relative;
  padding-top: 28px;
}

.team .member-content::before {
  /* barra accento che cresce al passaggio del mouse */
  content: "";
  position: absolute;
  top: 0;
  left: 24px;
  width: 42px;
  height: 4px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--accent-color), #8a5a34);
  transition: width .35s ease;
}

.team .team-member-card:hover .member-content::before {
  width: 84px;
}

.team .member-content h4 {
  font-family: var(--heading-font);
  font-size: 1.35rem;
  font-weight: 500;
}

.team .member-content .position {
  display: inline-block;
  align-self: flex-start;
  font-size: .72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--accent-color);
  background: color-mix(in srgb, var(--accent-color), transparent 90%);
  border-radius: 50px;
  padding: 4px 12px;
  margin-bottom: 12px;
}

.team .member-content .bio {
  font-size: .92rem;
}
