/* ==========================================================================
   Eurocamin — tema "Axtra / Chair Noise" (da Figma)
   Livello di override caricato DOPO main.css. Per tornare al vecchio stile
   basta rimuovere il <link> a questo file dalle pagine.
   Token dal file Figma:
   - sfondo #000 / pagina #353535, testo #fff
   - titoli: Catilde (font commerciale) -> sostituto web "Italiana"
   - testo: Pretendard Light/Regular/Medium
   - CTA: pillola bianca r=99, testo nero 12px medium
   - card: vetro rgba(175,175,175,.25), blur 40px, r=40
   - miniature tonde 96px, pulsanti cerchio 35px con bordo bianco
   ========================================================================== */

:root {
  --default-font: "Pretendard", "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --heading-font: "Italiana", "Cormorant Garamond", "Times New Roman", serif;
  --nav-font: "Pretendard", "Inter", system-ui, sans-serif;

  --background-color: #0b0b0b;
  --default-color: rgba(255, 255, 255, 0.82);
  --heading-color: #ffffff;
  --accent-color: #ffcc01;            /* giallo del marchio Eurocamin, usato solo come accento */
  --surface-color: rgba(175, 175, 175, 0.14);
  --contrast-color: #000000;

  --nav-color: #ffffff;
  --nav-hover-color: #ffffff;
  --nav-mobile-background-color: #141414;
  --nav-dropdown-background-color: rgba(30, 30, 30, 0.92);
  --nav-dropdown-color: rgba(255, 255, 255, 0.8);
  --nav-dropdown-hover-color: #ffffff;

  --ax-glass: rgba(175, 175, 175, 0.25);
  --ax-glass-border: rgba(255, 255, 255, 0.14);
  --ax-radius: 40px;
  --ax-pad: clamp(18px, 2vw, 29px);
}

html { background: #0b0b0b; }

body {
  background-color: var(--background-color) !important;
  color: var(--default-color);
  font-family: var(--default-font);
  font-weight: 300;
  letter-spacing: -0.01em;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--heading-font);
  font-weight: 400;
  text-transform: uppercase;
  line-height: 1.14;
  color: var(--heading-color);
}

a { color: #fff; }
a:hover { color: var(--accent-color); }

.dark-background, .light-background {
  --background-color: #0b0b0b;
  --default-color: rgba(255, 255, 255, 0.82);
  --heading-color: #ffffff;
  --surface-color: rgba(175, 175, 175, 0.14);
}

section, .section { background-color: transparent; }

/* --------------------------------------------------------------------------
   Header / navigazione
   -------------------------------------------------------------------------- */
.header {
  --background-color: transparent;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.55), rgba(0, 0, 0, 0));
  padding: 13px 0;
}
.scrolled .header {
  --background-color: rgba(10, 10, 10, 0.6);
  background: rgba(10, 10, 10, 0.6);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  box-shadow: none;
}
.header .ax-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 0 var(--ax-pad);
}
.header .ax-logo img { height: 34px; width: auto; display: block; }

.ax-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 43px;
  padding: 0 24px;
  border-radius: 99px;
  background: #fff;
  color: #000 !important;
  font-family: var(--nav-font);
  font-size: 12px;
  font-weight: 500;
  white-space: nowrap;
  transition: transform 0.3s, background 0.3s;
}
.ax-cta:hover { background: var(--accent-color); transform: translateY(-1px); }
.ax-cta i { font-size: 11px; line-height: 0; }

@media (min-width: 1200px) {
  .navmenu { flex: 1; display: flex; justify-content: center; }
  .navmenu > ul { gap: clamp(24px, 9vw, 150px); }
  .navmenu a, .navmenu a:focus {
    padding: 16px 0;
    font-size: 12px;
    font-weight: 300;
    text-transform: none;
    letter-spacing: 0;
    color: #fff;
    opacity: 0.85;
  }
  .navmenu li:hover > a, .navmenu .current { opacity: 1; font-weight: 500; color: #fff; }
  .navmenu .active, .navmenu .active:focus { color: #fff; }
  .navmenu .dropdown ul {
    left: -20px;
    border-radius: 20px;
    padding: 12px 0;
    border: 1px solid var(--ax-glass-border);
    -webkit-backdrop-filter: blur(40px);
    backdrop-filter: blur(40px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
  }
  .navmenu .dropdown ul a { font-size: 13px; padding: 9px 22px; opacity: 1; }
  .navmenu .ax-cta-mobile { display: none; }
}
@media (max-width: 1199px) {
  .header .ax-cta { display: none; }
  .navmenu ul { border-radius: 24px; border: 1px solid var(--ax-glass-border); }
  .navmenu a, .navmenu a:focus { font-weight: 300; font-size: 16px; color: #fff; }
  .navmenu .active, .navmenu a:hover { color: #fff; }
  .navmenu .dropdown ul { border-radius: 16px; border-color: var(--ax-glass-border); }
  .mobile-nav-active .navmenu { background: rgba(0, 0, 0, 0.75); -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px); }
}

/* --------------------------------------------------------------------------
   Componenti condivisi
   -------------------------------------------------------------------------- */
.ax-circle {
  width: 35px; height: 35px;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid #fff; border-radius: 50%;
  color: #fff; font-size: 12px; line-height: 0;
  background: transparent;
  box-shadow: 0 0 18px rgba(0, 0, 0, 0.25);
  transition: background 0.3s, color 0.3s;
  padding: 0;
}
.ax-circle:hover { background: #fff; color: #000; }

.ax-glass {
  background: var(--ax-glass);
  border-radius: var(--ax-radius);
  -webkit-backdrop-filter: blur(40px);
  backdrop-filter: blur(40px);
}

/* --------------------------------------------------------------------------
   Home — Hero (Screen 01)
   -------------------------------------------------------------------------- */
.ax-hero { position: relative; padding: 0; min-height: 100vh; min-height: 100svh; background: #000; overflow: hidden; }
.ax-hero .carousel { min-height: 100vh; min-height: 100svh; background: #000; }
.ax-hero .carousel-item::before,
.ax-hero .carousel-item:before {
  background: linear-gradient(to bottom, rgba(0,0,0,0.45) 0%, rgba(0,0,0,0.15) 35%, rgba(0,0,0,0.55) 100%);
  z-index: 2;
}
.ax-hero-ui { position: absolute; inset: 0; z-index: 5; pointer-events: none; }
.ax-hero-ui a, .ax-hero-ui button { pointer-events: auto; }

.ax-hero-title {
  position: absolute;
  top: 14%; left: 0; right: 0;
  margin: 0;
  text-align: center;
  font-family: var(--heading-font);
  font-weight: 400;
  font-size: clamp(44px, 12.6vw, 250px);
  letter-spacing: 0.12em;
  text-indent: 0.12em;
  line-height: 1.14;
  text-transform: uppercase;
  color: #fff;
  white-space: nowrap;
  animation: axFade 1.4s both;
}
.ax-hero-lead {
  position: absolute;
  left: var(--ax-pad); top: 58%;
  display: flex; gap: 14px; align-items: flex-start;
  max-width: 520px;
  animation: axFade 1.4s 0.3s both;
}
.ax-hero-lead .big {
  width: 230px; margin: 0;
  font-size: clamp(16px, 1.67vw, 24px);
  font-weight: 300; text-transform: uppercase; text-align: right; line-height: 1.2; color: #fff;
}
.ax-hero-lead .small {
  width: 170px; margin: 0; padding-top: 120px;
  font-size: 12.7px; font-weight: 400; line-height: 1.3; letter-spacing: -0.02em; color: #fff;
}
.ax-hero-controls { position: absolute; left: 24px; bottom: 24px; display: flex; gap: 29px; }
.ax-hero-thumbs { position: absolute; right: 25px; bottom: 24px; display: flex; gap: 4px; }
.ax-hero-thumbs button {
  width: 96px; height: 96px; padding: 0; border: 0; border-radius: 999px; overflow: hidden;
  background: #222; opacity: 0.75; transition: opacity 0.3s, transform 0.3s; outline: 1px solid transparent;
}
.ax-hero-thumbs button img { position: static; width: 100%; height: 100%; object-fit: cover; }
.ax-hero-thumbs button:hover, .ax-hero-thumbs button.active { opacity: 1; transform: translateY(-4px); outline-color: rgba(255,255,255,0.7); }

.ax-scroll {
  position: absolute; left: 50%; bottom: 0; transform: translateX(-50%);
  width: 100px; height: 90px; display: block; color: #fff;
}
.ax-scroll svg { position: absolute; inset: 0; width: 100px; height: 100px; animation: axSpin 18s linear infinite; }
.ax-scroll svg text { font-family: var(--default-font); font-size: 10.5px; fill: #fff; }
.ax-scroll::before { content: ""; position: absolute; left: 50%; top: 22px; width: 1px; height: 32px; background: #fff; }
.ax-scroll::after { content: ""; position: absolute; left: 50%; top: 40px; width: 28px; height: 28px; margin-left: -14px; border: 1px solid #fff; border-radius: 50%; }

@keyframes axSpin { to { transform: rotate(360deg); } }
@keyframes axFade { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

/* --------------------------------------------------------------------------
   Home — Collezioni (Screen 02)
   -------------------------------------------------------------------------- */
.ax-collections {
  position: relative; padding: 0; min-height: 100vh; background: #000; overflow: hidden;
  display: flex; align-items: center;
}
.ax-collections > .ax-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ax-collections::before {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(to bottom, rgba(0,0,0,0.75), rgba(0,0,0,0.35) 45%, rgba(0,0,0,0.7));
}
.ax-collections-inner { position: relative; z-index: 2; width: 100%; padding: 140px var(--ax-pad) 90px clamp(18px, 17.3vw, 250px); }
.ax-collections h2 { max-width: 520px; margin: 0 0 40px; font-size: clamp(26px, 2.8vw, 40px); }
.ax-collections .ax-intro {
  max-width: 333px; margin: 0 0 58px clamp(0px, 20vw, 294px);
  font-size: 12.7px; font-weight: 400; line-height: 1.3; letter-spacing: -0.02em; color: #fff;
}
.ax-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 242px)); gap: 20px; margin-left: clamp(0px, 12vw, 174px); }
.ax-card {
  position: relative; display: block; height: 257px; overflow: hidden;
  background: var(--ax-glass); border-radius: var(--ax-radius);
  -webkit-backdrop-filter: blur(40px); backdrop-filter: blur(40px);
  color: #fff; transition: transform 0.4s, background 0.4s;
}
.ax-card img {
  position: absolute; left: 50%; bottom: -14%; width: 104%; height: 78%;
  transform: translateX(-50%); object-fit: cover; border-radius: 50% 50% 0 0 / 34% 34% 0 0;
  transition: transform 0.6s;
}
.ax-card span {
  position: absolute; left: 22px; top: 36px; z-index: 2;
  font-size: 20px; font-weight: 300; text-transform: uppercase; line-height: 1; color: #fff;
}
.ax-card i { position: absolute; right: 22px; top: 36px; z-index: 2; font-size: 14px; opacity: 0; transition: opacity 0.3s; }
.ax-card:hover { color: #fff; transform: translateY(-6px); background: rgba(175,175,175,0.36); }
.ax-card:hover img { transform: translateX(-50%) scale(1.06); }
.ax-card:hover i { opacity: 1; }

/* --------------------------------------------------------------------------
   Pagine interne
   -------------------------------------------------------------------------- */
.section-title { padding-bottom: 46px; }
.section-title div {
  font-family: var(--heading-font); font-weight: 400; text-transform: uppercase;
  font-size: clamp(26px, 2.8vw, 40px); letter-spacing: 0.04em; color: #fff;
}
.section-title div .description-title, .section-title div span { color: #fff; }

/* Portfolio / gallerie */
.portfolio .container-fluid { padding: 0 var(--ax-pad); }
.portfolio .portfolio-item { border: 0 !important; padding: 8px; }
.portfolio .portfolio-content { border-radius: var(--ax-radius); overflow: hidden; background: var(--ax-glass); }
.portfolio .portfolio-content .portfolio-info { background: rgba(0, 0, 0, 0.35); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.portfolio .portfolio-content .portfolio-info .preview-link,
.portfolio .portfolio-content .portfolio-info .details-link {
  width: 43px; height: 43px; display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid #fff; border-radius: 50%; color: #fff; font-size: 18px;
}
.portfolio .portfolio-content .portfolio-info .preview-link:hover { background: #fff; color: #000; }

/* Storia (timeline) */
.timeline::before { background-color: rgba(255, 255, 255, 0.25) !important; width: 1px !important; }
.timeline-item .timeline-content {
  background: var(--ax-glass) !important; color: rgba(255, 255, 255, 0.85);
  border-radius: var(--ax-radius) !important; padding: 28px !important;
  box-shadow: none !important; -webkit-backdrop-filter: blur(40px); backdrop-filter: blur(40px);
  font-size: 15px; line-height: 1.6;
}
.timeline-item .timeline-content img { border-radius: 24px !important; }
.timeline-item .date {
  background: #fff !important; color: #000 !important; border-radius: 99px !important;
  padding: 8px 22px !important; font-weight: 500 !important; font-size: 12px;
}
body > .container { font-size: 15px; line-height: 1.7; }
@media (max-width: 767px) {
  .timeline::before { left: 12px !important; }
  .timeline-item .timeline-content { width: calc(100% - 32px) !important; float: right !important; }
  .timeline-item .date { left: 32px !important; transform: none !important; }
}

/* Contatti */
.contact .info-item {
  background: var(--ax-glass); border-radius: var(--ax-radius); padding: 28px; height: 100%;
  -webkit-backdrop-filter: blur(40px); backdrop-filter: blur(40px);
}
.contact .info-item i {
  width: 35px; height: 35px; display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid #fff; border-radius: 50%; font-size: 14px; color: #fff; margin-bottom: 14px;
}
.contact .info-item h3 { font-size: 20px; font-weight: 400; color: #fff; }
.contact .info-item p { color: rgba(255, 255, 255, 0.8); }
.contact .php-email-form { background: var(--ax-glass); border-radius: var(--ax-radius); padding: 30px; box-shadow: none; }
.form-control,
.contact .php-email-form input[type=text],
.contact .php-email-form input[type=email],
.contact .php-email-form textarea,
textarea {
  background: rgba(0, 0, 0, 0.3); color: #fff; border: 1px solid var(--ax-glass-border); border-radius: 20px;
  padding: 12px 18px; font-weight: 300;
}
.contact .php-email-form textarea, textarea { border-radius: 24px; }
.form-control:focus,
.contact .php-email-form input:focus,
.contact .php-email-form textarea:focus { background: rgba(0, 0, 0, 0.4); color: #fff; border-color: #fff; box-shadow: none; }
.form-control::placeholder,
.contact .php-email-form input::placeholder,
.contact .php-email-form textarea::placeholder { color: rgba(255, 255, 255, 0.55); }
.contact .php-email-form button[type=submit], .btn-primary, .btn-get-started {
  height: 43px; padding: 0 28px; border: 0; border-radius: 99px;
  background: #fff; color: #000; font-family: var(--nav-font); font-size: 12px; font-weight: 500;
}
.contact .php-email-form button[type=submit]:hover, .btn-primary:hover { background: var(--accent-color); color: #000; }
label { color: rgba(255, 255, 255, 0.85); }

/* Footer */
.footer { background: transparent; border-top: 1px solid var(--ax-glass-border); font-size: 12px; color: rgba(255, 255, 255, 0.6); margin-top: 60px; }
.footer .copyright { padding-top: 0; border-top: 0; }
.footer .sitename { font-weight: 500; color: #fff; }
.footer a { color: #fff; }

/* Scroll top */
.scroll-top { background: transparent; border: 1px solid #fff; border-radius: 50%; width: 43px; height: 43px; }
.scroll-top i { color: #fff; }
.scroll-top:hover { background: #fff; }
.scroll-top:hover i { color: #000; }

/* --------------------------------------------------------------------------
   Responsive home
   -------------------------------------------------------------------------- */
@media (max-width: 991px) {
  .ax-hero-title { top: 22%; }
  .ax-hero-lead { top: auto; bottom: 150px; flex-direction: column; gap: 10px; max-width: 70%; }
  .ax-hero-lead .big { width: auto; text-align: left; }
  .ax-hero-lead .small { width: auto; padding-top: 0; max-width: 260px; }
  .ax-hero-thumbs button { width: 64px; height: 64px; }
  .ax-hero-thumbs { bottom: 76px; right: var(--ax-pad); }
  .ax-hero-lead { bottom: 170px; }
  .ax-hero-controls { left: var(--ax-pad); }
  .ax-hero-title { font-size: clamp(34px, 11.5vw, 120px); letter-spacing: 0.08em; text-indent: 0.08em; }
  .ax-scroll { display: none; }
  .ax-collections-inner { padding: 120px var(--ax-pad) 70px; }
  .ax-collections .ax-intro, .ax-cards { margin-left: 0; }
  .ax-cards { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .ax-card { height: 210px; border-radius: 28px; }
  .ax-card span { font-size: 15px; left: 16px; top: 22px; }
}
@media (prefers-reduced-motion: reduce) {
  .ax-scroll svg, .ax-hero-title, .ax-hero-lead { animation: none; }
}

/* --------------------------------------------------------------------------
   Catalogo prodotti (catalogo.php — ex PDF)
   -------------------------------------------------------------------------- */
.ax-catalogo { padding: 150px var(--ax-pad) 80px; }
.ax-cat-head { max-width: 1100px; margin: 0 auto 56px; text-align: center; }
.ax-cat-kicker { margin: 0 0 10px; font-size: 12px; font-weight: 500; letter-spacing: 0.2em; text-transform: uppercase; color: rgba(255,255,255,0.6); }
.ax-cat-head h1 { margin: 0 0 20px; font-size: clamp(34px, 5.4vw, 88px); letter-spacing: 0.08em; text-indent: 0.08em; }
.ax-cat-intro { max-width: 620px; margin: 0 auto 28px; font-size: 14px; line-height: 1.5; color: rgba(255,255,255,0.85); }
.ax-cat-nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.ax-cat-nav a {
  height: 36px; padding: 0 18px; display: inline-flex; align-items: center;
  border: 1px solid var(--ax-glass-border); border-radius: 99px; font-size: 12px; font-weight: 400; color: #fff;
}
.ax-cat-nav a:hover { border-color: #fff; color: #fff; }
.ax-cat-nav a.current { background: #fff; color: #000; font-weight: 500; }

.ax-cat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(360px, 1fr)); gap: 20px; max-width: 1500px; margin: 0 auto; }
.ax-cat-grid.compatto { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.ax-prod {
  display: flex; flex-direction: column; overflow: hidden;
  background: var(--ax-glass); border-radius: var(--ax-radius);
  -webkit-backdrop-filter: blur(40px); backdrop-filter: blur(40px);
}
.ax-prod-foto { display: block; margin: 14px 14px 0; border-radius: 28px; overflow: hidden; background: #fff; aspect-ratio: 1 / 1; }
.ax-prod-foto img { width: 100%; height: 100%; object-fit: contain; transition: transform 0.6s; }
.ax-cat-grid.foto-piene .ax-prod-foto img { object-fit: cover; }
.ax-prod:hover .ax-prod-foto img { transform: scale(1.04); }
.ax-prod-body { padding: 22px 26px 28px; }
.ax-prod h2 { margin: 0 0 8px; font-family: var(--default-font); font-size: 20px; font-weight: 300; text-transform: uppercase; line-height: 1.15; color: #fff; }
.ax-prod-desc { margin: 0 0 10px; font-size: 13px; line-height: 1.45; color: rgba(255,255,255,0.8); }
.ax-prod-misure { margin: 0 0 10px; font-size: 13px; color: #fff; }
.ax-prod-misure span { margin-right: 6px; font-size: 11px; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; color: rgba(255,255,255,0.55); }
.ax-prod-extra { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 4px; }
.ax-prod-extra a { display: block; width: 84px; height: 84px; border-radius: 18px; overflow: hidden; background: #fff; }
.ax-prod-extra img { width: 100%; height: 100%; object-fit: contain; }
.ax-prod-spec { margin: 16px 0 0; font-size: 13px; line-height: 1.5; }
.ax-prod-spec dt { margin-top: 12px; font-size: 11px; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; color: rgba(255,255,255,0.55); }
.ax-prod-spec dd { margin: 2px 0 0; color: rgba(255,255,255,0.85); }
.ax-prod-tab { margin-top: 18px; }
.ax-prod-tab-tit { margin: 0 0 8px; font-size: 11px; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; color: rgba(255,255,255,0.55); }
.ax-prod-tab table { width: 100%; border-collapse: collapse; font-size: 12px; color: #fff; }
.ax-prod-tab th, .ax-prod-tab td { padding: 7px 8px; border-bottom: 1px solid var(--ax-glass-border); text-align: left; white-space: nowrap; }
.ax-prod-tab th { font-weight: 500; color: rgba(255,255,255,0.6); }
.ax-cat-note { max-width: 760px; margin: 40px auto 0; text-align: center; font-size: 13px; color: rgba(255,255,255,0.75); }
.ax-cat-vuoto { text-align: center; color: rgba(255,255,255,0.7); }
.ax-cat-foot { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 50px; }
.header .ax-cta-ghost, .ax-cta-ghost { background: transparent; color: #fff !important; border: 1px solid #fff; }
.ax-cta-ghost:hover { background: #fff; color: #000 !important; }
@media (max-width: 1199px) { .ax-cat-foot .ax-cta { display: inline-flex; } }
@media (max-width: 575px) {
  .ax-catalogo { padding-top: 120px; }
  .ax-cat-grid, .ax-cat-grid.compatto { grid-template-columns: 1fr; }
}
.ax-prod-extra a.disegno { width: 100%; height: auto; border-radius: 22px; padding: 10px; }
.ax-prod-extra a.disegno img { height: auto; }
.ax-cat-grid.foto-alte .ax-prod-foto { aspect-ratio: 4 / 5; }
.ax-cat-grid.singolo { grid-template-columns: 1fr; max-width: 1150px; }
@media (min-width: 992px) {
  .ax-cat-grid.singolo .ax-prod { flex-direction: row; align-items: flex-start; }
  .ax-cat-grid.singolo .ax-prod-foto { flex: 0 0 38%; margin: 14px 0 14px 14px; }
  .ax-cat-grid.singolo .ax-prod-body { flex: 1; min-width: 0; padding: 30px 34px; }
  .ax-cat-grid.singolo .ax-prod-extra a.disegno { width: calc(50% - 4px); }
}
