@import url("../../default/css/global.css");

:root {
  --bg: #191b1b;
  --bg-soft: #2d302f;
  --surface: #f4f1eb;
  --surface-strong: #fffdf8;
  --ink: #191b1b;
  --ink-soft: #5e5a54;
  --line: #d8d0c5;
  --accent: #a86f3b;
  --accent-dark: #8d5528;
  --accent-soft: #ead7c2;
  --success: #64705a;
  --error: #9b2f24;
  --radius: 8px;
  --shadow: 0 18px 32px rgba(25, 27, 27, 0.12);
}

body {
  font-family: "RC Body", "Segoe UI", Arial, sans-serif;
  background:
    radial-gradient(circle at 12% 8%, rgba(168, 111, 59, 0.10), transparent 28rem),
    linear-gradient(180deg, #fffdf8 0%, #f4f1eb 52%, #fffdf8 100%);
}

h1,
h2,
h3,
h4 {
  font-family: "RC Display", "Arial Narrow", Impact, sans-serif;
  letter-spacing: 0.015em;
  text-transform: uppercase;
}

.eyebrow {
  color: var(--accent-dark);
  letter-spacing: 0.16em;
}

.site-header {
  background: rgba(255, 253, 248, 0.98);
  border-bottom: 1px solid rgba(25, 27, 27, 0.12);
  box-shadow: 0 8px 24px rgba(25, 27, 27, 0.06);
}

.brand,
.mobile-nav,
.desktop-nav a {
  color: var(--ink);
}

.brand-logo {
  filter: grayscale(1) contrast(1.18);
  border: 1px solid rgba(25, 27, 27, 0.12);
}

.brand-text strong {
  color: var(--ink);
}

.brand-text small {
  color: var(--ink-soft);
}

.desktop-nav a:hover,
.desktop-nav a.active {
  color: var(--accent-dark);
  background: rgba(168, 111, 59, 0.10);
}

.site-header .btn-outline {
  color: var(--accent-dark);
  border-color: rgba(168, 111, 59, 0.45);
  background: rgba(168, 111, 59, 0.08);
}

.site-header .btn-outline:hover {
  color: #fffdf8;
  border-color: var(--accent-dark);
  background: var(--accent-dark);
}

.mobile-nav summary {
  color: var(--ink);
  border-color: rgba(168, 111, 59, 0.45);
  background: rgba(255, 253, 248, 0.86);
}

.mobile-nav[open] ul {
  background: rgba(255, 253, 248, 0.98);
  border: 1px solid rgba(168, 111, 59, 0.28);
  box-shadow: 0 18px 34px rgba(25, 27, 27, 0.18);
}

.mobile-nav a {
  color: var(--ink);
  font-weight: 700;
}

.mobile-nav a:hover,
.mobile-nav a.active {
  color: var(--accent-dark);
  background: rgba(168, 111, 59, 0.10);
}

.mobile-nav .btn {
  color: var(--accent-dark);
  border-color: rgba(168, 111, 59, 0.45);
  background: rgba(168, 111, 59, 0.08);
}

@media (max-width: 1019px) {
  .mobile-nav {
    position: static;
  }

  .mobile-nav summary {
    border-radius: 4px;
    font-family: "RC Display", "Arial Narrow", Impact, sans-serif;
    letter-spacing: 0.08em;
    text-transform: uppercase;
  }

  .mobile-nav[open] {
    position: fixed;
    inset: 0;
    height: 100vh;
    height: 100dvh;
    min-height: 500px;
    z-index: 100;
    background: rgba(10, 14, 16, 0.72);
  }

  .mobile-nav[open]::before {
    content: "Menu";
    position: fixed;
    top: 0;
    left: 0;
    width: min(84vw, 330px);
    height: 84px;
    z-index: 101;
    padding: 2.15rem 1.3rem 1rem;
    color: #fffdf8;
    background: #1f2a35;
    font-family: "RC Display", "Arial Narrow", Impact, sans-serif;
    font-size: 1.75rem;
    line-height: 1;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    box-shadow: none;
  }

  .mobile-nav[open]::after {
    content: "";
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    z-index: 100;
    width: min(84vw, 330px);
    height: 100vh;
    height: 100dvh;
    min-height: 500px;
    background: rgba(255, 255, 255, 0.86);
    box-shadow: 18px 0 38px rgba(10, 14, 16, 0.28);
  }

  .mobile-nav[open] summary {
    position: fixed;
    top: 1rem;
    left: min(calc(84vw + 0.8rem), 345px);
    z-index: 102;
    width: 44px;
    height: 44px;
    padding: 0;
    overflow: hidden;
    border: 0;
    border-radius: 50%;
    color: transparent;
    background: rgba(10, 14, 16, 0.88);
  }

  .mobile-nav[open] summary::before,
  .mobile-nav[open] summary::after {
    content: "";
    position: absolute;
    left: 12px;
    right: 12px;
    top: 21px;
    height: 2px;
    background: #fffdf8;
  }

  .mobile-nav[open] summary::before {
    transform: rotate(45deg);
  }

  .mobile-nav[open] summary::after {
    transform: rotate(-45deg);
  }

  .mobile-nav[open] ul {
    position: fixed;
    top: 138px;
    bottom: 0;
    left: 0;
    z-index: 102;
    width: min(84vw, 330px);
    min-height: 356px;
    margin: 0;
    padding: 0 0 calc(1.2rem + env(safe-area-inset-bottom));
    overflow-y: auto;
    list-style: none;
    border: 0;
    border-radius: 0;
    background: #fffdf8;
    box-shadow: none;
  }

  .mobile-nav[open] li + li {
    margin-top: 0;
  }

  .mobile-nav[open] a {
    display: block;
    padding: 1.05rem 1.3rem;
    border-radius: 0;
    color: var(--ink);
    font-family: "RC Body", "Segoe UI", Arial, sans-serif;
    font-size: 1.02rem;
    font-weight: 800;
    text-transform: none;
    letter-spacing: 0;
  }

  .mobile-nav[open] a:hover,
  .mobile-nav[open] a.active {
    color: #fffdf8;
    background: var(--accent-dark);
  }

  .mobile-nav[open] .btn {
    position: fixed;
    top: 70px;
    left: 0;
    z-index: 102;
    width: min(84vw, 330px);
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 1.3rem;
    text-align: center;
    line-height: 1;
    color: #fffdf8;
    border-color: var(--accent-dark);
    border-radius: 0;
    background: var(--accent);
  }
}

.btn {
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.82rem;
}

.btn-primary {
  box-shadow: 0 12px 24px rgba(168, 111, 59, 0.26);
}

.hero {
  color: var(--ink);
  background:
    linear-gradient(90deg, rgba(255, 253, 248, 0.98) 0%, rgba(255, 253, 248, 0.94) 42%, rgba(255, 253, 248, 0.66) 68%, rgba(255, 253, 248, 0.40) 100%),
    url("../../../images/slider/progettazione-edilizia.jpg") center / cover no-repeat;
  min-height: calc(100vh - 74px);
  padding: 5.25rem 0 4rem;
}

.hero::after {
  background: linear-gradient(to bottom, rgba(255, 253, 248, 0), #fffdf8);
}

.hero h1 {
  font-size: clamp(2.35rem, 4.9vw, 4.6rem);
  line-height: 0.98;
  max-width: 650px;
}

.hero h1,
.page-hero h1 {
  color: #191b1b;
}

.page-hero {
  min-height: 360px;
  padding: 3.8rem 0 3.2rem;
}

.page-hero h1 {
  color: #fffdf8;
  font-size: clamp(1.8rem, 3.1vw, 2.75rem);
  line-height: 1.04;
  max-width: 21ch;
  text-shadow: 0 3px 18px rgba(0, 0, 0, 0.38);
}

.page-hero .eyebrow {
  color: #fffdf8;
}

.page-hero p {
  color: rgba(255, 253, 248, 0.92);
  max-width: 56ch;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.28);
}

.page-hero-portfolio,
.page-hero-detail,
.page-hero-method,
.page-hero-contact {
  background-blend-mode: normal;
}

.hero .eyebrow {
  color: var(--accent-dark);
}

.hero p {
  color: #3f3d39;
  font-weight: 500;
  max-width: 48ch;
}

.btn-outline-light {
  color: var(--ink);
  border-color: rgba(25, 27, 27, 0.28);
  background: rgba(255, 253, 248, 0.78);
}

.btn-outline-light:hover {
  color: #fffdf8;
  border-color: var(--ink);
  background: var(--ink);
}

.hero h1::after,
.section-head h2::after,
.section-cta h2::after {
  content: "";
  display: block;
  width: 92px;
  height: 3px;
  margin-top: 1rem;
  background: var(--accent);
}

.hero-card,
.contact-card,
.project-card,
.service-card,
.founder-card,
.team-card,
.company-service-row {
  border-radius: 6px;
  border-color: rgba(168, 111, 59, 0.24);
}

.hero-card {
  align-self: end;
  color: #fffdf8;
  background: rgba(25, 27, 27, 0.88);
  border-color: rgba(168, 111, 59, 0.55);
  box-shadow: 0 20px 40px rgba(25, 27, 27, 0.24);
}

.hero-card h2 {
  color: #fffdf8;
}

.hero-card li {
  color: rgba(255, 253, 248, 0.88);
}

.section-dark {
  background:
    linear-gradient(135deg, rgba(25, 27, 27, 0.96), rgba(45, 48, 47, 0.94)),
    url("../../../images/slider/gestione-cantiere.jpg") center / cover no-repeat;
}

.section-dark h2,
.section-dark h3 {
  color: #fffdf8;
}

.section-soft,
.section-area,
.section-energy {
  background: #f7f3ed;
}

.section-energy {
  color: var(--ink);
  background:
    radial-gradient(circle at 82% 16%, rgba(168, 111, 59, 0.12), transparent 24rem),
    linear-gradient(180deg, #fffdf8 0%, #f4f1eb 100%);
}

.section-energy .eyebrow {
  color: var(--accent-dark);
}

.section-energy h2,
.section-energy h3 {
  color: var(--ink);
}

.section-energy h2 {
  max-width: 680px;
}

.energy-copy p {
  color: var(--ink-soft);
  max-width: 640px;
}

.energy-visual {
  border-color: rgba(168, 111, 59, 0.28);
  border-radius: 8px;
  box-shadow: 0 22px 42px rgba(25, 27, 27, 0.16);
}

.energy-points {
  gap: 0.95rem;
}

.energy-points article {
  color: var(--ink);
  background: rgba(255, 253, 248, 0.92);
  border: 1px solid rgba(168, 111, 59, 0.22);
  border-radius: 8px;
  box-shadow: 0 12px 26px rgba(25, 27, 27, 0.06);
}

.energy-points article h3 {
  color: var(--accent-dark);
}

.energy-points article p {
  color: var(--ink-soft);
  margin-bottom: 0;
}

.project-card .meta,
.link-cta,
.profile-role,
.footer-grid h3 {
  color: var(--accent-dark);
}

.site-footer {
  background: #191b1b;
}

.whatsapp-float {
  background: var(--accent);
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
