/* ============================================================
   style.css — Global shared styles for progettare-casa.it
   ============================================================ */

/* ── Reset & Box Model ─────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  color: #1a1a2e;
  background: #ffffff;
  line-height: 1.65;
}

/* ── CSS Variables ─────────────────────────────────────────── */
:root {
  --color-primary:    #2563eb;
  --color-primary-dark: #1d4ed8;
  --color-accent:     #3b82f6;
  --color-bg:         #ffffff;
  --color-bg-alt:     #f0f4ff;
  --color-bg-dark:    #0f172a;
  --color-text:       #1a1a2e;
  --color-text-muted: #64748b;
  --color-border:     #e2e8f0;
  --color-card-bg:    #ffffff;
  --shadow-sm:        0 1px 3px rgba(0,0,0,.08), 0 1px 2px rgba(0,0,0,.06);
  --shadow-md:        0 4px 12px rgba(0,0,0,.10);
  --radius:           10px;
  --container:        1100px;
  --section-pad:      80px 20px;
}

/* ── Typography ────────────────────────────────────────────── */
h1, h2, h3, h4 { line-height: 1.25; font-weight: 700; color: var(--color-text); }
h1 { font-size: clamp(2rem, 5vw, 3rem); }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.2rem); }
h3 { font-size: clamp(1.1rem, 2.5vw, 1.35rem); }
p  { color: var(--color-text-muted); line-height: 1.7; }
a  { color: var(--color-primary); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ── Container ─────────────────────────────────────────────── */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 20px;
  width: 100%;
}

/* ── Buttons ───────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  text-decoration: none;
  transition: background .2s, transform .15s, box-shadow .2s;
}
.btn-primary {
  background: var(--color-primary);
  color: #fff;
  box-shadow: 0 2px 8px rgba(37,99,235,.35);
}
.btn-primary:hover {
  background: var(--color-primary-dark);
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(37,99,235,.45);
  text-decoration: none;
  color: #fff;
}
.btn-outline {
  background: transparent;
  border: 2px solid var(--color-primary);
  color: var(--color-primary);
}
.btn-outline:hover {
  background: var(--color-primary);
  color: #fff;
  text-decoration: none;
}

/* ── SVG Icons ─────────────────────────────────────────────── */
.icon {
  display: inline-block;
  vertical-align: middle;
  flex-shrink: 0;
}

/* ── Header & Navigation (same layout as raum-planer-online.de) ── */
.header { position:absolute; right:0; left:0; z-index:1000; color:#fff; }
.header-wrap { display:flex; justify-content:space-between; align-items:center; height:70px; max-width:var(--container); margin:0 auto; padding:0 20px; }
.header-logo { font-size:1.35rem; font-weight:800; color:#fff; text-decoration:none; letter-spacing:-.5px; white-space:nowrap; display:flex; align-items:center; gap:8px; }
.header-logo:hover { text-decoration:none; color:#fff; }
.header-logo svg { stroke:#55a3ff; }
.header-nav { display:flex; gap:28px; }
.header-nav__link { position:relative; font-size:16px; font-weight:500; color:rgba(235,238,246,.9); text-decoration:none; transition:color .15s; }
.header-nav__link::before { transition:.2s; transform:rotateY(90deg); position:absolute; top:calc(100% + 7px); right:0; left:0; content:''; background:#a2a4a7; width:55%; height:2px; margin:0 auto; border-radius:2px; }
.header-nav__link:hover { color:#fff; text-decoration:none; }
.header-nav__link:hover::before { transform:rotateY(0); }
.header-menu { display:flex; align-items:center; }
.header-action { margin-left:35px; }
.header-action__button { display:inline-flex; align-items:center; justify-content:center; gap:8px; height:39px; padding:0 22px; font-size:16px; font-weight:600; color:#fff; border:1px solid #fff; border-radius:5px; text-decoration:none; white-space:nowrap; transition:.3s; }
.header-action__button:hover { background:#55a3ff; border-color:#55a3ff; color:#fff; text-decoration:none; }
.header-hamburger { position:relative; z-index:100; display:flex; justify-content:center; align-items:center; width:30px; height:30px; background:none; border:none; cursor:pointer; padding:0; }
.header-hamburger__line { transition:margin .3s .3s, opacity .3s 0s, transform .3s; position:absolute; background:#fff; width:100%; height:3px; border-radius:3px; }
.header-hamburger__line:nth-child(1) { margin-top:-21px; }
.header-hamburger__line:nth-child(3) { margin-top:21px; }
.header-hamburger.is-active .header-hamburger__line { transition:margin .3s, opacity .3s 0s, transform .3s .3s; }
.header-hamburger.is-active .header-hamburger__line:nth-child(1) { margin:0; transform:rotate(-45deg); }
.header-hamburger.is-active .header-hamburger__line:nth-child(2) { opacity:0; }
.header-hamburger.is-active .header-hamburger__line:nth-child(3) { margin:0; transform:rotate(45deg); }
.overlay { position:fixed; top:0; right:0; bottom:0; left:0; z-index:99; background:rgba(55,55,65,.5); backdrop-filter:blur(2px); opacity:0; pointer-events:none; visibility:hidden; transition:.3s ease-in-out; }
.overlay.is-active { opacity:1; pointer-events:all; visibility:visible; }
.overflow-mobile { overflow:hidden; }
.mobile { display:none; }
.not-hero .header { background:#353840; position:sticky; top:0; }
.fixed-header-prepared { visibility:hidden; transform:translateY(-100%); position:fixed; top:0; right:0; left:0; z-index:1000; background:#353840; box-shadow:0 0 15px rgba(0,0,0,0); }
.fixed-header-preshow { visibility:visible; transition:transform .3s ease, box-shadow .3s ease; }
.fixed-header-ready { transform:translateY(0); box-shadow:0 0 15px rgba(0,0,0,.2); }

@media (max-width: 991px) {
  .mobile { display:flex; }
  .overflow-mobile { overflow:hidden; }
  .header-wrap { height:60px; }
  .header-menu { transform:translateX(100%); overflow-y:auto; position:fixed; top:0; right:0; bottom:0; z-index:99; display:flex; flex-direction:column; justify-content:start; align-items:center; gap:30px; background:#353840; color:#fff; width:280px; height:100%; padding-top:100px; transition:.3s ease-in-out; pointer-events:none; }
  .header-menu.is-open { transform:translateX(0); pointer-events:all; }
  .header-nav { flex-direction:column; align-items:center; justify-content:center; margin:0; gap:0; }
  .header-nav__link { font-size:17px; padding:10px 0; color:rgba(235,238,246,.9); }
  .header-action { margin:0; }
  .header-action__button { height:49px; width:160px; font-size:17px; }
  .fixed-header-prepared ~ .mobile-menu .header-menu { top:60px; padding-top:40px; z-index:100; }
  .not-hero .header { position:sticky; }
}

/* ── Footer ────────────────────────────────────────────────── */
footer {
  background: var(--color-bg-dark);
  color: #94a3b8;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  padding: 60px 20px 40px;
  max-width: var(--container);
  margin: 0 auto;
}

.footer-brand .logo { color: #fff; font-size: 1.25rem; }
.footer-brand p { margin-top: 12px; font-size: .9rem; color: #94a3b8; max-width: 260px; }

.footer-col h4 {
  color: #e2e8f0;
  font-size: .85rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-bottom: 16px;
}
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 10px; }
.footer-col a { color: #94a3b8; font-size: .9rem; transition: color .15s; }
.footer-col a:hover { color: #fff; text-decoration: none; }

.footer-bottom {
  border-top: 1px solid #1e293b;
  padding: 20px;
  text-align: center;
  font-size: .85rem;
  color: #475569;
  max-width: var(--container);
  margin: 0 auto;
}

@media (max-width: 768px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 30px; padding: 40px 20px 30px; }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
}

/* ── Section base ──────────────────────────────────────────── */
section { padding: var(--section-pad); }

.section-label {
  display: inline-block;
  background: var(--color-bg-alt);
  color: var(--color-primary);
  font-size: .8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  padding: 5px 14px;
  border-radius: 100px;
  margin-bottom: 16px;
}

.section-header {
  text-align: center;
  margin-bottom: 48px;
}
.section-header p {
  margin-top: 12px;
  font-size: 1.05rem;
  max-width: 620px;
  margin-left: auto;
  margin-right: auto;
}

/* ── Cards ─────────────────────────────────────────────────── */
.card {
  background: var(--color-card-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow-sm);
  transition: box-shadow .2s, transform .2s;
}
.card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }

/* ── FAQ Accordion ─────────────────────────────────────────── */
details { border-bottom: 1px solid var(--color-border); }
details:first-of-type { border-top: 1px solid var(--color-border); }
summary {
  padding: 20px 0;
  font-weight: 600;
  font-size: 1rem;
  color: var(--color-text);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  list-style: none;
  gap: 12px;
}
summary::-webkit-details-marker { display: none; }
summary .faq-icon { transition: transform .2s; color: var(--color-primary); flex-shrink: 0; }
details[open] summary .faq-icon { transform: rotate(45deg); }
.faq-answer { padding: 0 0 20px; color: var(--color-text-muted); line-height: 1.7; }

/* ── Table ─────────────────────────────────────────────────── */
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: .95rem; }
th { background: var(--color-bg-alt); color: var(--color-text); font-weight: 600; padding: 12px 16px; text-align: left; }
td { padding: 12px 16px; border-bottom: 1px solid var(--color-border); color: var(--color-text-muted); }
tr:last-child td { border-bottom: none; }
