/* ============================================
   legno.be — SAP Sistemi
   Facciate e rivestimenti in legno composito
   ============================================ */

/* --- Google Fonts loaded in HTML --- */

:root {
  --wood-dark: #2C1E17;
  --wood-mid: #5C3D2E;
  --wood-warm: #8B6914;
  --accent: #1B6B5A;
  --accent-light: #E8F3F0;
  --cream: #FAF8F5;
  --sand: #F0ECE5;
  --text: #1A1A1A;
  --text-secondary: #6B6058;
  --border: #DDD6CC;
  --white: #FFFFFF;
}

/* --- Reset & Base --- */
* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
}

body {
  font-family: 'Inter', sans-serif;
  font-size: 17px;
  line-height: 1.7;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5 {
  font-family: 'DM Serif Display', Georgia, serif;
  font-weight: 700;
  line-height: 1.25;
  color: var(--wood-dark);
}

h1 { font-size: 2.6rem; margin-bottom: 1rem; }
h2 { font-size: 1.85rem; margin-bottom: 0.8rem; }
h3 { font-size: 1.35rem; margin-bottom: 0.6rem; }

p { margin-bottom: 1rem; }

a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.2s;
}
a:hover { color: var(--wood-mid); }

img { max-width: 100%; height: auto; }

/* --- Top bar --- */
.top-bar {
  background: var(--wood-dark);
  color: rgba(255,255,255,0.8);
  font-size: 0.82rem;
  padding: 6px 0;
  letter-spacing: 0.02em;
}
.top-bar a {
  color: rgba(255,255,255,0.8);
  transition: color 0.2s;
}
.top-bar a:hover { color: #fff; }
.top-bar .separator {
  margin: 0 10px;
  opacity: 0.4;
}

/* --- Navbar --- */
.navbar {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  padding: 0;
  transition: box-shadow 0.3s;
}
.navbar.scrolled {
  box-shadow: 0 2px 20px rgba(0,0,0,0.08);
}
.navbar-brand {
  padding: 8px 0;
}
.navbar-brand .navbar-logo {
  height: 44px;
  width: auto;
}

.navbar .nav-link {
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--text) !important;
  padding: 22px 14px !important;
  transition: color 0.2s;
  position: relative;
}
.navbar .nav-link:hover,
.navbar .nav-link.active {
  color: var(--accent) !important;
}
.navbar .nav-link.active:not(.dropdown-toggle)::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 14px;
  right: 14px;
  height: 2px;
  background: var(--accent);
}
/* Dropdown caret esplicito */
.navbar .dropdown-toggle::after {
  display: inline-block;
  margin-left: 5px;
  vertical-align: middle;
  content: '';
  border-top: 5px solid;
  border-right: 4px solid transparent;
  border-bottom: 0;
  border-left: 4px solid transparent;
}

.navbar .dropdown-menu {
  border: 1px solid var(--border);
  border-radius: 4px;
  box-shadow: 0 8px 30px rgba(0,0,0,0.08);
  padding: 8px 0;
  min-width: 240px;
}
.navbar .dropdown-item {
  font-size: 0.88rem;
  padding: 8px 20px;
  color: var(--text);
}
.navbar .dropdown-item:hover {
  background: var(--accent-light);
  color: var(--accent);
}

/* Mobile toggle */
.navbar-toggler {
  border: none;
  padding: 8px;
}
.navbar-toggler:focus { box-shadow: none; }

/* --- Hero --- */
.hero {
  position: relative;
  min-height: 85vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--wood-dark);
}
.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.55;
  transition: transform 8s ease-out;
}
.hero:hover .hero-bg {
  transform: scale(1.03);
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg,
    rgba(44,30,23,0.85) 0%,
    rgba(44,30,23,0.5) 50%,
    rgba(27,107,90,0.3) 100%);
}
.hero-content {
  position: relative;
  z-index: 2;
  color: var(--white);
  max-width: 680px;
}
.hero-content .eyebrow {
  font-family: 'Inter', sans-serif;
  font-size: 0.78rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.7);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
}
/* eyebrow::before rimosso */
.hero-content h1 {
  font-size: 3.2rem;
  color: var(--white);
  margin-bottom: 20px;
  line-height: 1.15;
}
.hero-content p {
  font-size: 1.15rem;
  line-height: 1.75;
  color: rgba(255,255,255,0.85);
  margin-bottom: 30px;
}

/* --- Buttons --- */
.btn-accent {
  background: var(--accent);
  color: var(--white);
  border: none;
  padding: 14px 32px;
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border-radius: 3px;
  transition: all 0.25s;
}
.btn-accent:hover {
  background: #155B4C;
  color: var(--white);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(27,107,90,0.3);
}
.btn-outline-light {
  border: 1px solid rgba(255,255,255,0.4);
  color: var(--white);
  padding: 14px 32px;
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border-radius: 3px;
  transition: all 0.25s;
}
.btn-outline-light:hover {
  background: rgba(255,255,255,0.12);
  color: var(--white);
  border-color: rgba(255,255,255,0.7);
}
.btn-outline-accent {
  border: 1px solid var(--accent);
  color: var(--accent);
  padding: 12px 28px;
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border-radius: 3px;
  transition: all 0.25s;
  background: transparent;
}
.btn-outline-accent:hover {
  background: var(--accent);
  color: var(--white);
}

/* --- Sections --- */
.section { padding: 90px 0; }
.section-sm { padding: 60px 0; }
.section-bg { background: var(--cream); }
.section-dark {
  background: var(--wood-dark);
  color: rgba(255,255,255,0.85);
}
.section-dark h2,
.section-dark h3 { color: var(--white); }

.section-header {
  max-width: 640px;
  margin-bottom: 50px;
}
.section-header .eyebrow {
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 10px;
}

/* --- Feature cards (home) --- */
.feature-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 36px 28px;
  height: 100%;
  transition: all 0.3s;
  position: relative;
}
.feature-card:hover {
  border-color: var(--accent);
  box-shadow: 0 8px 30px rgba(0,0,0,0.06);
  transform: translateY(-3px);
}
.feature-card .icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-light);
  color: var(--accent);
  border-radius: 4px;
  margin-bottom: 20px;
  font-size: 1.3rem;
}
.feature-card h3 {
  font-size: 1.15rem;
  margin-bottom: 12px;
}
.feature-card p {
  font-size: 0.93rem;
  color: var(--text-secondary);
  line-height: 1.65;
  margin-bottom: 0;
}

/* --- Stats bar --- */
.stats-bar {
  background: var(--accent);
  color: var(--white);
  padding: 50px 0;
}
.stat-item {
  text-align: center;
  padding: 10px;
}
.stat-item .number {
  font-family: 'DM Serif Display', Georgia, serif;
  font-size: 2.8rem;
  font-weight: 700;
  line-height: 1;
  margin-bottom: 8px;
}
.stat-item .label {
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.85;
}

/* --- Product highlight --- */
.product-highlight {
  position: relative;
}
.product-highlight img {
  border-radius: 4px;
}
.product-tag {
  display: inline-block;
  background: var(--wood-warm);
  color: var(--white);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 2px;
  margin-bottom: 16px;
}

/* --- Advantages list (home) --- */
.advantage-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.advantage-list li {
  padding: 12px 0;
  padding-left: 30px;
  position: relative;
  border-bottom: 1px solid var(--border);
  font-size: 0.95rem;
}
.advantage-list li:last-child { border-bottom: none; }
.advantage-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 700;
}

/* --- CTA Banner --- */
.cta-banner {
  background: linear-gradient(135deg, var(--wood-dark) 0%, var(--wood-mid) 100%);
  color: var(--white);
  padding: 70px 0;
  text-align: center;
}
.cta-banner h2 {
  color: var(--white);
  margin-bottom: 16px;
}
.cta-banner p {
  font-size: 1.1rem;
  opacity: 0.85;
  margin-bottom: 30px;
  max-width: 550px;
  margin-left: auto;
  margin-right: auto;
}

/* --- Page header (internal pages) --- */
.page-header {
  background: var(--wood-dark);
  color: var(--white);
  padding: 70px 0 60px;
  position: relative;
  overflow: hidden;
}
.page-header::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--accent), var(--wood-warm));
}
.page-header h1 {
  color: var(--white);
  font-size: 2.4rem;
  margin-bottom: 12px;
}
.page-header .lead {
  color: rgba(255,255,255,0.7);
  font-size: 1.05rem;
  max-width: 580px;
}

/* Breadcrumb */
.breadcrumb-custom {
  padding: 0;
  margin-bottom: 16px;
  list-style: none;
  display: flex;
  gap: 6px;
  font-size: 0.82rem;
}
.breadcrumb-custom li { display: flex; align-items: center; gap: 6px; }
.breadcrumb-custom a { color: rgba(255,255,255,0.5); }
.breadcrumb-custom a:hover { color: rgba(255,255,255,0.8); }
.breadcrumb-custom .sep { color: rgba(255,255,255,0.3); }
.breadcrumb-custom .current { color: rgba(255,255,255,0.8); }

/* --- Content page --- */
.content-body {
  padding: 60px 0 80px;
}
.content-body h2 {
  margin-top: 48px;
  margin-bottom: 16px;
  padding-top: 16px;
}
.content-body h2:first-child { margin-top: 0; padding-top: 0; }
.content-body h3 {
  margin-top: 32px;
  margin-bottom: 12px;
}
.content-body ul {
  padding-left: 0;
  list-style: none;
}
.content-body ul li {
  padding: 6px 0 6px 24px;
  position: relative;
  line-height: 1.65;
}
.content-body ul li::before,
.content-body .sidebar-nav ul li::before { display: none; }
.content-body > .container > .row > [class*='col-lg-']:not(:first-child) ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 14px;
  width: 8px;
  height: 2px;
  background: var(--accent);
}
.content-body .figure {
  margin: 30px 0;
  text-align: center;
}
.content-body .figure img {
  border-radius: 4px;
  border: 1px solid var(--border);
}
.content-body .figure figcaption {
  font-size: 0.82rem;
  color: var(--text-secondary);
  margin-top: 8px;
  font-style: italic;
}

/* Data table styling */
.table-specs {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0;
  font-size: 0.92rem;
}
.table-specs thead th {
  background: var(--wood-dark);
  color: var(--white);
  padding: 12px 16px;
  font-weight: 600;
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.table-specs tbody td {
  padding: 10px 16px;
  border-bottom: 1px solid var(--border);
}
.table-specs tbody tr:nth-child(even) {
  background: var(--cream);
}

/* --- Sidebar nav (internal pages) --- */
.sidebar-nav {
  position: sticky;
  top: 100px;
}
.sidebar-nav .nav-title {
  font-family: 'Inter', sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-secondary);
  margin-bottom: 16px;
}
.sidebar-nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
  border-left: 2px solid var(--border);
}
.sidebar-nav ul li a {
  display: block;
  padding: 8px 0 8px 20px;
  font-size: 0.88rem;
  color: var(--text-secondary);
  border-left: 2px solid transparent;
  margin-left: -2px;
  transition: all 0.2s;
}
.sidebar-nav ul li a:hover,
.sidebar-nav ul li a.active {
  color: var(--accent);
  border-left-color: var(--accent);
}

/* --- Info box --- */
.info-box {
  background: var(--accent-light);
  border-left: 3px solid var(--accent);
  padding: 20px 24px;
  margin: 24px 0;
  border-radius: 0 4px 4px 0;
  font-size: 0.93rem;
}

/* --- Footer --- */
.site-footer {
  background: var(--wood-dark);
  color: rgba(255,255,255,0.7);
  padding: 60px 0 0;
}
.site-footer h5 {
  color: var(--white);
  font-family: 'Inter', sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 20px;
}
.site-footer a {
  color: rgba(255,255,255,0.6);
  font-size: 0.9rem;
}
.site-footer a:hover { color: var(--white); }
.footer-links {
  list-style: none;
  padding: 0;
}
.footer-links li {
  margin-bottom: 8px;
}
.footer-contact-item {
  margin-bottom: 10px;
  font-size: 0.9rem;
  display: flex;
  gap: 10px;
  align-items: flex-start;
}
.footer-contact-item i {
  width: 18px;
  color: var(--accent);
  margin-top: 3px;
  flex-shrink: 0;
  text-align: center;
}
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 20px 0;
  margin-top: 40px;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.4);
}

/* --- Animations --- */
.fade-up {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}
.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* --- Responsive --- */
@media (max-width: 991.98px) {
  .hero { min-height: 70vh; }
  .hero-content h1 { font-size: 2.2rem; }
  h1 { font-size: 2rem; }
  h2 { font-size: 1.5rem; }
  .section { padding: 60px 0; }
  .stat-item .number { font-size: 2rem; }
  .navbar .nav-link { padding: 10px 14px !important; }
  .navbar .nav-link.active::after { display: none; }
  .sidebar-nav { display: none; }
}

@media (max-width: 767.98px) {
  body { font-size: 16px; }
  .hero { min-height: 60vh; }
  .hero-content h1 { font-size: 1.8rem; }
  .section { padding: 45px 0; }
  .page-header { padding: 50px 0 40px; }
  .page-header h1 { font-size: 1.8rem; }
  .content-body { padding: 40px 0 60px; }
  .stat-item { margin-bottom: 16px; }
  .top-bar .d-flex { flex-direction: column; gap: 2px; text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
  .fade-up { opacity: 1; transform: none; transition: none; }
  .hero:hover .hero-bg { transform: none; }
  html { scroll-behavior: auto; }
}

/* Sidebar: rimuovi i dash dal menu laterale */
.sidebar-nav ul li::before {
  display: none !important;
}
.sidebar-nav ul li {
  padding-left: 20px;
}

/* --- WhatsApp floating button --- */
.wa-float {
  position: fixed;
  right: 24px;
  bottom: 28px;
  z-index: 9999;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #25D366;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px rgba(0,0,0,0.25);
  transition: transform 0.2s, box-shadow 0.2s;
  text-decoration: none;
}
.wa-float:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 20px rgba(0,0,0,0.35);
}
.wa-float svg {
  width: 30px;
  height: 30px;
  fill: #fff;
}
@media (max-width: 767.98px) {
  .wa-float {
    right: 16px;
    bottom: 18px;
    width: 50px;
    height: 50px;
  }
  .wa-float svg {
    width: 26px;
    height: 26px;
  }
}
