:root {
  --paper: #f6f5f0;
  --paper-deep: #ecefe6;
  --white: #fffefa;
  --ink: #1b211e;
  --ink-soft: #2b332e;
  --muted: #464f49;
  --line: #d4dad0;
  --line-strong: #b8c2b2;
  --accent: #354b3e;
  --accent-dark: #24362b;
  --accent-soft: #e6ece4;
  --rust: #a23f2d;
  --rust-soft: #f9ebe7;
  --surface-glass: rgba(255, 254, 250, 0.96);
  --surface-glass-border: rgba(255, 254, 250, 0.75);
  --header-bg: rgba(246, 245, 240, 0.94);
  --header-border: rgba(27, 33, 30, 0.09);
  --card-bg: var(--white);
  --max: 1200px;
  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 20px;
  --shadow-sm: 0 6px 20px rgba(27, 33, 30, 0.06);
  --shadow-md: 0 16px 42px rgba(27, 33, 30, 0.1);
  --shadow-lg: 0 24px 64px rgba(27, 33, 30, 0.16);
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  color-scheme: light;
}

/* ==========================================================================
   DARK MODE PALETTE (Harmonious Sicilian Slate & Deep Forest Aesthetics)
   ========================================================================== */
[data-theme="dark"] {
  --paper: #111714;
  --paper-deep: #16201b;
  --white: #1b2620;
  --ink: #f2f6f3;
  --ink-soft: #d2ded6;
  --muted: #9eb0a4;
  --line: rgba(255, 255, 255, 0.12);
  --line-strong: rgba(255, 255, 255, 0.22);
  --accent: #5ea87f;
  --accent-dark: #325741;
  --accent-soft: rgba(94, 168, 127, 0.2);
  --rust: #f2826d;
  --rust-soft: rgba(242, 130, 109, 0.2);
  --surface-glass: rgba(25, 36, 30, 0.95);
  --surface-glass-border: rgba(255, 255, 255, 0.14);
  --header-bg: rgba(17, 23, 20, 0.94);
  --header-border: rgba(255, 255, 255, 0.08);
  --card-bg: #1b2620;
  --shadow-sm: 0 6px 20px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 16px 42px rgba(0, 0, 0, 0.55);
  --shadow-lg: 0 24px 64px rgba(0, 0, 0, 0.75);
  color-scheme: dark;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #111714;
    --paper-deep: #16201b;
    --white: #1b2620;
    --ink: #f2f6f3;
    --ink-soft: #d2ded6;
    --muted: #9eb0a4;
    --line: rgba(255, 255, 255, 0.12);
    --line-strong: rgba(255, 255, 255, 0.22);
    --accent: #5ea87f;
    --accent-dark: #325741;
    --accent-soft: rgba(94, 168, 127, 0.2);
    --rust: #f2826d;
    --rust-soft: rgba(242, 130, 109, 0.2);
    --surface-glass: rgba(25, 36, 30, 0.95);
    --surface-glass-border: rgba(255, 255, 255, 0.14);
    --header-bg: rgba(17, 23, 20, 0.94);
    --header-border: rgba(255, 255, 255, 0.08);
    --card-bg: #1b2620;
    --shadow-sm: 0 6px 20px rgba(0, 0, 0, 0.4);
    --shadow-md: 0 16px 42px rgba(0, 0, 0, 0.55);
    --shadow-lg: 0 24px 64px rgba(0, 0, 0, 0.75);
    color-scheme: dark;
  }
}

*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 84px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "DM Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 16px;
  font-weight: 450;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  transition: background-color 0.25s ease, color 0.25s ease;
}

body.menu-open {
  overflow: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

button, input, select, textarea {
  font: inherit;
  color: inherit;
}

::placeholder {
  color: #636d66;
  opacity: 1;
  font-weight: 400;
}

button, a {
  -webkit-tap-highlight-color: transparent;
}

button {
  cursor: pointer;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--rust);
  outline-offset: 3px;
}

img, svg {
  display: block;
  max-width: 100%;
  height: auto;
}

h1, h2, h3, h4, p, figure, dl, dd {
  margin: 0;
}

h1, h2 {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 400;
  letter-spacing: -0.03em;
  color: var(--ink);
}

h3 {
  font-size: 20px;
  font-weight: 600;
  line-height: 1.28;
  letter-spacing: -0.015em;
}

p + p {
  margin-top: 14px;
}

em {
  font-weight: 400;
  font-style: italic;
}

::selection {
  background: #d5dfcc;
  color: var(--ink);
}

[hidden] {
  display: none !important;
}

.wrap {
  width: min(var(--max), calc(100% - 48px));
  margin-inline: auto;
}

.skip {
  position: fixed;
  z-index: 200;
  top: -100px;
  left: 20px;
  background: var(--ink);
  color: #fff;
  padding: 12px 20px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 600;
}

.skip:focus {
  top: 14px;
}

/* ==========================================================================
   FIXED BACKGROUND CANVAS (Works smoothly on Desktop & Mobile!)
   ========================================================================== */
.fixed-stage-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
  background: var(--ink);
  transform: translate3d(0, 0, 0);
}

.bg-layer {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0;
  transform: scale(1.03);
  transition: opacity 0.9s var(--ease-out), transform 1.4s var(--ease-out);
  will-change: opacity, transform;
}

.bg-layer.is-active {
  opacity: 1;
  transform: scale(1);
}

.fixed-stage-veil {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(24, 30, 27, 0.66) 0%,
    rgba(24, 30, 27, 0.52) 50%,
    rgba(24, 30, 27, 0.74) 100%
  );
}

main, .footer {
  position: relative;
  z-index: 1;
}

/* Smooth Scroll Reveal */
[data-reveal] {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.65s var(--ease-out), transform 0.65s var(--ease-out);
}

[data-reveal].visible {
  opacity: 1;
  transform: translateY(0);
}

/* ==========================================================================
   TYPOGRAPHY & MINIMAL BUTTONS (Zero arrows / Zero emojis)
   ========================================================================== */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--accent);
}

.eyebrow::before {
  content: "";
  width: 18px;
  height: 1.5px;
  background: currentColor;
  flex-shrink: 0;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-bottom: 1.5px solid currentColor;
  padding-bottom: 3px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--accent);
  transition: color 0.2s ease;
}

.text-link:hover {
  color: var(--rust);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 12px 26px;
  border: 1px solid var(--accent);
  border-radius: 100px;
  background: var(--accent);
  color: #fffefa;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.01em;
  cursor: pointer;
  transition: background 0.25s var(--ease-out), transform 0.2s var(--ease-out), box-shadow 0.25s var(--ease-out);
  text-align: center;
}

.button:hover {
  background: var(--accent-dark);
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(36, 54, 43, 0.22);
}

.button-light {
  background: var(--white);
  color: var(--ink);
  border-color: var(--white);
}

.button-light:hover {
  background: var(--paper-deep);
  color: var(--ink);
}

.button-line {
  background: var(--white);
  color: var(--ink);
  border-color: var(--line-strong);
}

.button-line:hover {
  background: var(--accent-soft);
  border-color: var(--accent);
  color: var(--ink);
  box-shadow: none;
}

.button-ghost-light {
  background: rgba(255, 254, 250, 0.14);
  color: #fffefa;
  border-color: rgba(255, 254, 250, 0.44);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.button-ghost-light:hover {
  background: rgba(255, 254, 250, 0.24);
  border-color: #fffefa;
  color: #fffefa;
}

.button-small {
  min-height: 40px;
  padding: 8px 18px;
  font-size: 13px;
}

/* ==========================================================================
   HEADER & MOBILE NAVIGATION
   ========================================================================== */
.header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: var(--header-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--header-border);
  transition: background 0.25s ease, border-color 0.25s ease;
}

.nav {
  height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.brand img {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  object-fit: cover;
  border: 1.5px solid var(--line-strong);
  flex-shrink: 0;
}

.brand-text {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
  color: var(--ink);
}

.brand-text span {
  display: block;
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: var(--muted);
  margin-top: 2px;
}

.nav-links,
.guide-nav {
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.nav-links a,
.guide-nav a {
  font-size: 13.5px;
  font-weight: 500;
  color: var(--ink-soft);
  padding: 6px 0;
  position: relative;
  transition: color 0.2s ease;
}

.nav-links a::after,
.guide-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background: var(--rust);
  transition: width 0.2s ease;
}

.nav-links a:hover,
.nav-links a[aria-current="page"],
.guide-nav a:hover {
  color: var(--ink);
}

.nav-links a:hover::after,
.nav-links a[aria-current="page"]::after,
.guide-nav a:hover::after {
  width: 100%;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.mobile-toggle {
  display: none;
  background: var(--white);
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.mobile-toggle svg {
  width: 20px;
  height: 20px;
}

.mobile-nav {
  display: none;
  position: fixed;
  inset: 74px 0 0 0;
  z-index: 59;
  background: var(--paper);
  padding: 20px 24px 36px;
  overflow-y: auto;
  flex-direction: column;
  align-items: stretch;
  border-top: 1px solid var(--line);
}

.mobile-nav.open {
  display: flex;
}

.mobile-nav > a:not(.button) {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px 4px;
  border-bottom: 1px solid var(--line);
  font-family: Georgia, serif;
  font-size: 20px;
  color: var(--ink);
}

.mobile-nav > .button {
  margin-top: 22px;
  width: 100%;
}

.mobile-nav-contacts {
  margin-top: 16px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.mobile-nav-contacts a {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 12px;
  font-size: 13px;
  font-weight: 600;
  text-align: center;
  color: var(--ink);
}

/* ==========================================================================
   HERO WINDOW SECTION (Transparent over Fixed Studio Backdrop)
   ========================================================================== */
.hero {
  position: relative;
  min-height: calc(100svh - 74px);
  display: flex;
  align-items: center;
  padding: 56px 0 72px;
  color: #fffefa;
}

.hero-inner {
  width: 100%;
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: 48px;
  align-items: center;
}

.hero .eyebrow {
  color: #e8f0ea;
}

.hero h1 {
  color: #fffefa;
  font-size: clamp(40px, 5.5vw, 72px);
  line-height: 1.04;
  letter-spacing: -0.035em;
  margin-top: 16px;
}

.hero h1 em {
  color: #f3b29d;
}

.hero-copy {
  max-width: 510px;
  color: rgba(255, 254, 250, 0.92);
  font-size: 17px;
  font-weight: 450;
  line-height: 1.65;
  margin-top: 20px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
  margin-top: 28px;
}

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 36px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 254, 250, 0.24);
  max-width: 500px;
}

.hero-metric strong {
  display: block;
  font-family: Georgia, serif;
  font-size: 26px;
  font-weight: 400;
  color: #fffefa;
  line-height: 1.1;
}

.hero-metric span {
  display: block;
  font-size: 12px;
  font-weight: 500;
  color: rgba(255, 254, 250, 0.85);
  margin-top: 4px;
}

/* Floating Offer Card inside Hero */
.hero-offer-card {
  background: var(--surface-glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  color: var(--ink);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--surface-glass-border);
  transition: background 0.25s ease, border-color 0.25s ease;
}

.hero-offer-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}

.hero-offer-badge {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--rust);
}

.hero-offer-tag {
  font-size: 11.5px;
  font-weight: 600;
  padding: 4px 11px;
  border-radius: 100px;
  background: var(--accent-soft);
  color: var(--accent);
}

.hero-offer-price-row {
  display: flex;
  align-items: baseline;
  gap: 14px;
  margin: 20px 0 12px;
}

.hero-offer-price {
  font-family: Georgia, serif;
  font-size: clamp(48px, 5vw, 64px);
  line-height: 0.95;
  color: var(--ink);
  letter-spacing: -0.05em;
}

.hero-offer-price-note {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--accent);
}

.hero-offer-desc {
  font-size: 14.5px;
  color: var(--muted);
  line-height: 1.55;
  margin-bottom: 18px;
}

.hero-offer-list {
  list-style: none;
  padding: 0;
  margin: 0 0 22px;
  display: grid;
  gap: 10px;
}

.hero-offer-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
}

.hero-offer-list li::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
}

.hero-offer-card .button {
  width: 100%;
}

/* ==========================================================================
   SECTIONS & MINIMAL HEADINGS
   ========================================================================== */
.section {
  padding: 88px 0;
}

.section-solid {
  background: var(--paper);
  border-top: 1px solid var(--line);
}

.section-white {
  background: var(--white);
  border-top: 1px solid var(--line);
}

/* Transparent Window Section over Fixed Background */
.section-window {
  position: relative;
  padding: 108px 0;
  color: #fffefa;
  border-top: 1px solid rgba(255, 254, 250, 0.18);
  border-bottom: 1px solid rgba(255, 254, 250, 0.18);
}

.section-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
  margin-bottom: 42px;
}

.section-heading h2 {
  font-size: clamp(32px, 4.2vw, 50px);
  line-height: 1.08;
  margin-top: 10px;
}

.section-heading > p {
  max-width: 440px;
  color: var(--muted);
  font-size: 15.5px;
  font-weight: 450;
  line-height: 1.6;
}

/* ==========================================================================
   STICKY SCROLLYTELLING: COME NASCE IL SITO (#metodo / #studio)
   ========================================================================== */
.craft-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

.craft-sticky {
  position: sticky;
  top: 100px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--line-strong);
  background: var(--ink);
  box-shadow: var(--shadow-md);
  aspect-ratio: 4 / 3;
}

.craft-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.65s var(--ease-out), transform 0.9s var(--ease-out);
  transform: scale(1.03);
}

.craft-slide.is-active {
  opacity: 1;
  transform: scale(1);
}

.craft-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.craft-caption {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 16px;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  background: var(--surface-glass);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: var(--ink);
  font-size: 13px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border: 1px solid var(--surface-glass-border);
}

.craft-steps {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.craft-step {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
  cursor: pointer;
}

.craft-step:hover,
.craft-step.is-active {
  border-color: var(--accent);
  box-shadow: var(--shadow-sm);
}

.craft-step-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.craft-step-num {
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--rust);
}

.craft-step h3 {
  font-size: 20px;
  margin-bottom: 8px;
  color: var(--ink);
}

.craft-step p {
  font-size: 14.5px;
  color: var(--muted);
  line-height: 1.6;
}

.craft-step-thumb {
  display: none;
  margin-top: 14px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid var(--line);
}

.craft-step-thumb img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

/* ==========================================================================
   MINIMAL UNIFIED PORTFOLIO (#progetti / #lavori) — Shown ONCE!
   ========================================================================== */
.portfolio-filters {
  display: flex;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 6px;
  margin-bottom: 30px;
  scrollbar-width: none;
}

.portfolio-filters::-webkit-scrollbar {
  display: none;
}

.portfolio-filter-btn {
  background: var(--paper);
  border: 1px solid var(--line-strong);
  border-radius: 100px;
  padding: 9px 18px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-soft);
  white-space: nowrap;
  transition: all 0.2s ease;
}

.portfolio-filter-btn:hover {
  border-color: var(--accent);
  color: var(--ink);
}

.portfolio-filter-btn.is-active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fffefa;
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
}

.portfolio-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.25s var(--ease-out), box-shadow 0.25s var(--ease-out), border-color 0.25s ease;
}

.portfolio-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--line-strong);
}

.portfolio-card-wide {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: 28px;
  align-items: center;
}

.portfolio-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.portfolio-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.portfolio-logo {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 5px;
}

.portfolio-logo img,
.portfolio-logo svg {
  width: 100%;
  height: 100%;
  max-width: 38px;
  max-height: 38px;
  object-fit: contain;
}

/* Official Circular AutoEsperto Badge Logo */
.portfolio-logo--round {
  border-radius: 50%;
  padding: 0;
  border: none;
  background: transparent;
  box-shadow: 0 4px 12px rgba(0, 102, 255, 0.22);
}

.portfolio-logo--round img {
  max-width: 100%;
  max-height: 100%;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  transform: scale(1.06);
}

.portfolio-brand-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.portfolio-cat {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.portfolio-title {
  font-family: Georgia, serif;
  font-size: 21px;
  font-weight: 400;
  line-height: 1.2;
  color: var(--ink);
}

.portfolio-status {
  font-size: 11px;
  font-weight: 600;
  padding: 5px 11px;
  border: 1px solid #c2cec0;
  border-radius: 100px;
  color: var(--accent);
  background: var(--white);
  white-space: nowrap;
  flex-shrink: 0;
}

.browser-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 9px 14px;
  background: #e3e7dd;
  border-bottom: 1px solid #d1d8c9;
}

.browser-bar i {
  height: 7px;
  width: 7px;
  border-radius: 50%;
  background: #a5b09e;
}

.browser-bar i:first-child { background: #d48476; }
.browser-bar i:nth-child(2) { background: #d8b467; }
.browser-bar i:nth-child(3) { background: #7ba686; }

.browser-bar span {
  margin: auto;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.03em;
  padding-right: 18px;
  color: var(--ink-soft);
}

.portfolio-frame {
  border: 1px solid #cfd6c7;
  background: #e8ebe2;
  border-radius: var(--radius-sm);
  overflow: hidden;
  margin-bottom: 16px;
}

.image-button {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  text-align: left;
}

.portfolio-frame .image-button img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  object-position: top center;
  transition: transform 0.4s var(--ease-out);
}

.portfolio-card:hover .portfolio-frame .image-button img {
  transform: scale(1.02);
}

.portfolio-body {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.portfolio-desc {
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--muted);
  margin-bottom: 14px;
}

.portfolio-features {
  list-style: none;
  margin: 0 0 18px;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.portfolio-features li {
  font-size: 11.5px;
  font-weight: 600;
  padding: 4px 11px;
  border-radius: 100px;
  background: var(--white);
  border: 1px solid var(--line-strong);
  color: var(--ink-soft);
}

.portfolio-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  margin-top: auto;
}

.portfolio-note {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--muted);
}

.portfolio-note:hover {
  color: var(--ink);
}

.portfolio-more-strip {
  margin-top: 24px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.portfolio-more-label strong {
  font-size: 14.5px;
  color: var(--ink);
}

.portfolio-more-links {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.portfolio-more-pill {
  background: var(--white);
  border: 1px solid var(--line-strong);
  border-radius: 100px;
  padding: 7px 16px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  transition: background 0.2s, border-color 0.2s;
}

.portfolio-more-pill:hover {
  background: var(--accent-soft);
  border-color: var(--accent);
}

/* ==========================================================================
   FIXED-BACKGROUND PARALLAX WINDOW INTERLUDE
   ========================================================================== */
.window-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 40px;
  align-items: center;
}

.window-copy .eyebrow {
  color: #f3b29d;
}

.window-copy h2 {
  color: #fffefa;
  font-size: clamp(32px, 4.2vw, 50px);
  line-height: 1.08;
  margin: 14px 0 16px;
}

.window-copy > p {
  color: rgba(255, 254, 250, 0.9);
  font-size: 16px;
  max-width: 460px;
}

.window-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.window-card {
  background: var(--surface-glass);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: var(--ink);
  padding: 22px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--surface-glass-border);
  transition: background 0.25s ease, border-color 0.25s ease;
}

.window-card strong {
  display: block;
  font-size: 15.5px;
  font-weight: 700;
  margin-bottom: 6px;
  color: var(--ink);
}

.window-card p {
  font-size: 13.5px;
  color: var(--ink-soft) !important;
  line-height: 1.55;
}

/* ==========================================================================
   SERVICES & 100€ OFFER (#servizi)
   ========================================================================== */
.services {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 36px;
}

.service {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
  display: flex;
  flex-direction: column;
}

.service > span {
  font-size: 11.5px;
  font-weight: 700;
  color: var(--rust);
  letter-spacing: 0.1em;
}

.service h3 {
  margin: 10px 0 8px;
  font-size: 19px;
}

.service p {
  font-size: 14.5px;
  color: var(--muted);
  line-height: 1.6;
  flex-grow: 1;
}

.service .text-link {
  margin-top: 16px;
  align-self: flex-start;
  font-size: 13px;
}

.price-card {
  display: grid;
  grid-template-columns: 0.75fr 1.25fr;
  border: 1.5px solid var(--accent);
  border-radius: var(--radius-lg);
  background: var(--white);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.price-main {
  padding: 36px;
  background: var(--accent);
  color: #fffefa;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.price-kicker {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #d6e3d8;
}

.price-amount {
  display: block;
  font-family: Georgia, serif;
  font-size: clamp(54px, 5.8vw, 72px);
  font-weight: 400;
  line-height: 1;
  margin: 18px 0 14px;
  color: #fffefa;
}

.price-main p {
  font-size: 14.5px;
  color: #e6efe7;
  line-height: 1.55;
}

.price-main .button {
  margin-top: 24px;
  background: var(--white);
  color: var(--ink);
  border-color: var(--white);
  width: 100%;
}

.price-main .button:hover {
  background: var(--paper-deep);
}

.price-details {
  padding: 36px;
  background: var(--white);
}

.price-details h3 {
  font-size: 19px;
  margin-bottom: 16px;
}

.price-list {
  list-style: none;
  margin: 0 0 20px;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 20px;
  font-size: 14px;
}

.price-list li {
  border-top: 1px solid var(--line);
  padding-top: 10px;
  line-height: 1.45;
  color: var(--ink);
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 9px;
}

.price-list li::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
}

.price-foot {
  font-size: 13px;
  color: var(--muted);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  line-height: 1.55;
}

/* ==========================================================================
   MINIMAL FACEBOOK BANNER (#social) & GUIDES WITH COVERS (#guide)
   ========================================================================== */
.fb-banner-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 36px;
  align-items: center;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 32px;
}

.fb-banner-media {
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid var(--line);
}

.fb-banner-copy h3 {
  font-family: Georgia, serif;
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 400;
  margin: 10px 0 12px;
}

.fb-banner-copy p {
  font-size: 15px;
  color: var(--muted);
  margin-bottom: 20px;
}

.fb-banner-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.guides-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.guide-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.25s var(--ease-out), box-shadow 0.25s var(--ease-out), border-color 0.2s ease;
}

.guide-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--accent);
}

.guide-card-cover {
  display: block;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid var(--line);
  margin-bottom: 16px;
  aspect-ratio: 16 / 10;
  background: var(--paper-deep);
}

.guide-card-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s var(--ease-out);
}

.guide-card:hover .guide-card-cover img {
  transform: scale(1.04);
}

.guide-card-tag {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--rust);
  display: block;
  margin-bottom: 8px;
}

.guide-card-title {
  font-family: Georgia, serif;
  font-size: 20px;
  font-weight: 400;
  line-height: 1.25;
  color: var(--ink);
  margin-bottom: 10px;
}

.guide-card-excerpt {
  font-size: 14px;
  font-weight: 450;
  color: var(--muted);
  line-height: 1.55;
  margin-bottom: 16px;
}

.guide-card-link {
  font-size: 13px;
  font-weight: 700;
  color: var(--accent);
  border-bottom: 1.5px solid currentColor;
  padding-bottom: 2px;
  align-self: flex-start;
}

.guide-card-link:hover {
  color: var(--rust);
}

.guide-featured-banner {
  margin-top: 24px;
  background: var(--accent-soft);
  border: 1px solid #bfcbbd;
  border-radius: var(--radius);
  padding: 22px 26px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.guide-featured-banner strong {
  display: block;
  font-family: Georgia, serif;
  font-size: 21px;
  font-weight: 400;
  color: var(--ink);
  margin-bottom: 4px;
}

.guide-featured-banner p {
  font-size: 14px;
  font-weight: 450;
  color: var(--ink-soft);
}

/* ==========================================================================
   FAQ (#faq) & CONTACT WITH TEMPIO DI APOLLO BACKGROUND (#contatti)
   ========================================================================== */
.faq-layout {
  display: grid;
  grid-template-columns: 0.78fr 1.22fr;
  gap: 48px;
  align-items: start;
}

.faq-layout h2 {
  font-size: clamp(32px, 4vw, 48px);
  line-height: 1.08;
  margin-top: 12px;
}

.faq-layout > div > p {
  font-size: 15px;
  color: var(--muted);
  margin-top: 12px;
}

.faq-list {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0 24px;
}

.faq-item {
  border-bottom: 1px solid var(--line);
}

.faq-item:last-child {
  border-bottom: 0;
}

.faq-question {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  width: 100%;
  text-align: left;
  background: transparent;
  border: 0;
  padding: 18px 0;
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
}

.faq-question > span:last-child {
  font-size: 20px;
  color: var(--accent);
  transition: transform 0.2s ease;
  flex-shrink: 0;
}

.faq-item.open .faq-question > span:last-child {
  transform: rotate(45deg);
}

.faq-answer {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.22s ease;
}

.faq-answer > div {
  overflow: hidden;
}

.faq-answer p {
  padding: 0 12px 18px 0;
  font-size: 14.5px;
  color: var(--muted);
  line-height: 1.6;
}

.faq-item.open .faq-answer {
  grid-template-rows: 1fr;
}

/* Contact Section with User's Siracusa Tempio di Apollo Photo Background */
.contact-section {
  position: relative;
  padding: 96px 0;
  background-color: var(--accent-dark);
  background-image:
    linear-gradient(
      112deg,
      rgba(20, 31, 25, 0.86) 0%,
      rgba(35, 53, 43, 0.72) 52%,
      rgba(20, 31, 25, 0.84) 100%
    ),
    url('assets/siracusa-tempio-apollo.avif');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  color: #fffefa;
  border-top: 1px solid rgba(255, 254, 250, 0.18);
}

.contact-shell {
  display: grid;
  grid-template-columns: 0.88fr 1.12fr;
  gap: 56px;
  align-items: center;
}

.contact-info .eyebrow {
  color: #e2efe5;
}

.contact-info h2 {
  font-size: clamp(34px, 4.2vw, 52px);
  line-height: 1.08;
  margin: 14px 0 16px;
  color: #fffefa;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.25);
}

.contact-info p {
  color: rgba(255, 254, 250, 0.92);
  font-size: 15.5px;
  font-weight: 450;
  max-width: 400px;
}

.contact-links {
  display: grid;
  gap: 12px;
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.26);
}

.contact-links a {
  font-size: 15.5px;
  font-weight: 600;
  color: #fffefa;
  transition: opacity 0.2s ease;
}

.contact-links a:hover {
  opacity: 0.85;
}

.contact-form {
  background: var(--surface-glass);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  color: var(--ink);
  padding: 34px;
  border-radius: var(--radius-lg);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.35);
  border: 1px solid var(--surface-glass-border);
  transition: background 0.25s ease, border-color 0.25s ease;
}

.form-title {
  margin-bottom: 20px;
  font-size: 20px;
  color: var(--ink);
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.field.full {
  grid-column: 1 / -1;
}

.field label {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
}

.field input,
.field select,
.field textarea {
  width: 100%;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: var(--paper);
  padding: 12px 14px;
  font-size: 15px;
  font-weight: 500;
  color: var(--ink);
}

.field textarea {
  min-height: 94px;
  resize: vertical;
}

.form-foot {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 20px;
}

.form-note {
  font-size: 12.5px;
  font-weight: 450;
  color: var(--muted);
  max-width: 290px;
  line-height: 1.45;
}

.form-status {
  font-size: 13px;
  color: var(--accent);
  font-weight: 600;
  margin-top: 10px;
}

.contact-fallback {
  display: inline-flex;
  margin-top: 8px;
  font-size: 13px;
  font-weight: 700;
  color: var(--rust);
  border-bottom: 1.5px solid currentColor;
}

/* ==========================================================================
   FOOTER, CHAT, COOKIE NOTICE & DIALOGS
   ========================================================================== */
.footer {
  padding: 36px 0 28px;
  background: var(--paper-deep);
  border-top: 1px solid var(--line);
}

.footer-main {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: center;
  flex-wrap: wrap;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--line);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--ink-soft);
}

.footer-links a:hover {
  color: var(--rust);
}

.footer-bottom {
  padding-top: 18px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 12.5px;
  font-weight: 450;
  color: var(--muted);
}

.footer-legal {
  display: flex;
  gap: 16px;
}

.footer-legal button,
.footer-legal a {
  background: transparent;
  border: 0;
  padding: 0;
  color: var(--ink-soft);
  text-decoration: underline;
  font-size: 12.5px;
  font-weight: 500;
}

.chat-launch {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 55;
  height: 54px;
  padding: 5px 16px 5px 5px;
  border-radius: 100px;
  border: 1px solid var(--line-strong);
  background: var(--white);
  color: var(--ink);
  box-shadow: var(--shadow-md);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.chat-launch img {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--line);
}

.chat-launch-label {
  font-size: 12.5px;
  font-weight: 700;
}

.chat-panel {
  position: fixed;
  right: 20px;
  bottom: 84px;
  z-index: 56;
  width: min(360px, calc(100vw - 32px));
  height: 450px;
  max-height: calc(100dvh - 110px);
  display: none;
  flex-direction: column;
  background: var(--white);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.chat-panel.open {
  display: flex;
}

.chat-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  background: var(--accent);
  color: #fffefa;
}

.chat-head img {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  object-fit: cover;
}

.chat-name {
  font-size: 13px;
  font-weight: 700;
}

.chat-online {
  font-size: 10.5px;
  color: #d7e3d9;
}

.chat-close {
  margin-left: auto;
  background: transparent;
  border: 0;
  color: #fff;
  font-size: 20px;
  width: 30px;
  height: 30px;
}

.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 14px;
  background: var(--paper);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.bubble {
  max-width: 88%;
  padding: 10px 13px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--white);
  font-size: 13px;
  line-height: 1.5;
}

.bubble.user {
  margin-left: auto;
  background: var(--accent);
  color: #fffefa;
  border-color: var(--accent);
}

.quick-questions,
.chat-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.quick-questions button,
.chat-actions a {
  border: 1px solid var(--line-strong);
  border-radius: 100px;
  background: var(--white);
  padding: 6px 12px;
  font-size: 11.5px;
  font-weight: 600;
}

.chat-actions a {
  background: var(--accent-soft);
  color: var(--accent);
}

.chat-form {
  display: flex;
  gap: 8px;
  padding: 10px;
  border-top: 1px solid var(--line);
  background: var(--white);
}

.chat-form input {
  flex: 1;
  min-width: 0;
  border: 1px solid var(--line-strong);
  border-radius: 100px;
  padding: 8px 14px;
  font-size: 14px;
  background: var(--paper);
}

.chat-form button {
  padding: 0 14px;
  border: 0;
  border-radius: 100px;
  background: var(--accent);
  color: #fff;
  font-size: 12.5px;
  font-weight: 600;
}

.notice {
  position: fixed;
  left: 20px;
  bottom: 20px;
  z-index: 50;
  width: min(420px, calc(100vw - 110px));
  padding: 12px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: var(--white);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-md);
  font-size: 12px;
  color: var(--ink-soft);
}

.notice a {
  color: var(--ink);
  font-weight: 600;
  text-decoration: underline;
}

.notice button {
  border: 0;
  border-radius: 100px;
  padding: 7px 14px;
  background: var(--accent);
  color: #fff;
  font-size: 11.5px;
  font-weight: 600;
  flex-shrink: 0;
}

.dialog,
.image-dialog {
  width: min(520px, calc(100% - 32px));
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  padding: 28px;
  background: var(--white);
  color: var(--ink);
  box-shadow: var(--shadow-lg);
}

.image-dialog {
  width: min(1000px, calc(100% - 28px));
  padding: 18px;
  background: var(--paper);
}

.dialog::backdrop,
.image-dialog::backdrop {
  background: rgba(24, 29, 26, 0.75);
  backdrop-filter: blur(4px);
}

.dialog h2 {
  font-size: 26px;
  margin-bottom: 12px;
}

.dialog p {
  font-size: 14px;
  color: var(--muted);
}

.dialog-close {
  float: right;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--paper);
  width: 32px;
  height: 32px;
}

.image-dialog-head {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: center;
  margin-bottom: 12px;
  font-size: 13.5px;
  font-weight: 600;
}

.image-dialog-head button {
  border: 1px solid var(--line-strong);
  border-radius: 100px;
  background: var(--white);
  padding: 6px 14px;
  font-size: 12px;
  font-weight: 600;
}

.image-dialog img {
  width: 100%;
  max-height: 74dvh;
  object-fit: contain;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: #e7ebe1;
}

.image-dialog > a {
  display: inline-block;
  margin-top: 12px;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--accent);
  border-bottom: 1.5px solid currentColor;
}

/* ==========================================================================
   GUIDE PAGES STYLING (guida-*.html)
   ========================================================================== */
.guide-hero {
  padding: 52px 0 40px;
  border-bottom: 1px solid var(--line);
  background: var(--paper);
}

.guide-hero-inner {
  max-width: 820px;
}

.guide-breadcrumb {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 18px;
  color: var(--muted);
  font-size: 12.5px;
}

.guide-hero h1 {
  font-size: clamp(32px, 5vw, 54px);
  line-height: 1.06;
  margin-top: 10px;
}

.guide-lead {
  max-width: 680px;
  margin-top: 16px;
  color: var(--muted);
  font-size: 16.5px;
}

.guide-byline {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
}

.guide-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 48px;
  align-items: start;
}

.guide-article {
  max-width: 720px;
}

.guide-answer {
  padding: 20px 22px;
  margin-bottom: 24px;
  border-left: 3px solid var(--accent);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  background: var(--white);
  font-size: 15.5px;
}

.guide-article h2 {
  margin: 36px 0 12px;
  font-size: clamp(24px, 3.2vw, 34px);
}

.guide-article p,
.guide-article li {
  color: var(--ink-soft);
  font-size: 15.5px;
  line-height: 1.7;
}

.guide-article ul,
.guide-article ol {
  padding-left: 20px;
  margin: 14px 0;
}

.guide-article li + li {
  margin-top: 8px;
}

.guide-faq {
  border-top: 1px solid var(--line);
  padding: 14px 0;
}

.guide-faq summary {
  cursor: pointer;
  font-weight: 600;
}

.guide-cta {
  margin-top: 36px;
  padding: 28px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--white);
}

.guide-cta h2 {
  margin: 8px 0 10px;
}

.guide-cta .button {
  margin-top: 16px;
}

.guide-aside {
  position: sticky;
  top: 96px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  display: grid;
  gap: 10px;
  font-size: 13.5px;
}

.guide-aside > div {
  margin-top: 10px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  display: grid;
  gap: 8px;
}

/* ==========================================================================
   RESPONSIVE DESIGN (TABLET & SMARTPHONE OPTIMIZATION)
   ========================================================================== */
@media (max-width: 980px) {
  .hero-inner,
  .craft-grid,
  .portfolio-card-wide,
  .window-grid,
  .price-card,
  .fb-banner-card,
  .faq-layout,
  .contact-shell,
  .guide-layout {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .craft-sticky {
    display: none;
  }

  .craft-step-thumb {
    display: block;
  }

  .services,
  .guides-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 820px) {
  .wrap {
    width: min(var(--max), calc(100% - 28px));
  }

  .nav {
    height: 68px;
  }

  .mobile-nav {
    inset: 68px 0 0 0;
  }

  .nav-links,
  .guide-nav,
  .nav-actions .button {
    display: none;
  }

  .mobile-toggle {
    display: inline-flex;
  }

  .hero {
    min-height: auto;
    padding: 32px 0 44px;
  }

  .hero h1 {
    font-size: clamp(34px, 9vw, 46px);
  }

  .hero-copy {
    font-size: 15.5px;
  }

  .hero-offer-card {
    padding: 24px 20px;
  }

  .section,
  .contact-section {
    padding: 56px 0;
  }

  .section-window {
    padding: 64px 0;
  }

  .section-heading {
    margin-bottom: 28px;
    gap: 14px;
  }

  .portfolio-grid,
  .services,
  .guides-grid,
  .window-cards,
  .price-list,
  .form-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .portfolio-card,
  .service,
  .guide-card,
  .craft-step,
  .price-main,
  .price-details,
  .fb-banner-card,
  .contact-form {
    padding: 20px 16px;
  }

  .portfolio-card-head {
    flex-wrap: wrap;
    gap: 8px;
  }

  /* Prevent iOS zoom on form inputs */
  .field input,
  .field select,
  .field textarea,
  .chat-form input {
    font-size: 16px;
  }

  .form-foot .button {
    width: 100%;
  }

  .footer {
    padding-bottom: 88px;
  }

  .chat-launch {
    width: 52px;
    height: 52px;
    right: 16px;
    bottom: 16px;
    padding: 0;
    justify-content: center;
  }

  .chat-launch-label {
    display: none;
  }

  .notice {
    left: 14px;
    right: 76px;
    bottom: 16px;
    width: auto;
  }
}

@media (max-width: 480px) {
  .hero-actions,
  .fb-banner-actions,
  .guide-featured-banner {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-actions .button,
  .fb-banner-actions .button,
  .guide-featured-banner .button {
    width: 100%;
  }

  .hero-metrics {
    gap: 10px;
  }

  .hero-metric strong {
    font-size: 21px;
  }

  .portfolio-title {
    font-size: 19px;
  }

  .mobile-nav-contacts {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   MULTI-LANGUAGE SWITCHER (Astrattu style with crisp SVG flags, zero emojis)
   ========================================================================== */
.lang-switcher {
  position: relative;
  display: inline-block;
}

.lang-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 40px;
  padding: 0 12px;
  background: var(--white);
  border: 1px solid var(--line-strong);
  border-radius: 100px;
  color: var(--ink);
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: all 0.2s ease;
}

.lang-btn:hover,
.lang-switcher.is-open .lang-btn {
  background: var(--paper);
  border-color: var(--accent);
}

.lang-flag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 0;
}

.lang-flag svg {
  border-radius: 2px;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.12);
  display: block;
}

.lang-chevron {
  transition: transform 0.22s var(--ease-out);
}

.lang-switcher.is-open .lang-chevron {
  transform: rotate(180deg);
}

.lang-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 80;
  min-width: 160px;
  background: var(--white);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: 6px;
  margin: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 2px;
  animation: langFadeIn 0.18s var(--ease-out);
}

.lang-menu[hidden] {
  display: none !important;
}

@keyframes langFadeIn {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: translateY(0); }
}

.lang-option {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  background: transparent;
  border: none;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 500;
  color: var(--ink);
  cursor: pointer;
  text-align: left;
  transition: background 0.15s ease, color 0.15s ease;
}

.lang-option:hover,
.lang-option:focus-visible {
  background: var(--paper-deep);
}

.lang-option.is-active {
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 700;
}

.lang-name {
  flex-grow: 1;
}

.lang-tag {
  font-size: 11px;
  font-weight: 700;
  color: var(--muted);
}

/* Mobile Language Bar */
.mobile-lang-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-bottom: 16px;
  margin-bottom: 12px;
  border-bottom: 1px solid var(--line);
  overflow-x: auto;
  scrollbar-width: none;
}

.mobile-lang-bar::-webkit-scrollbar {
  display: none;
}

.mobile-lang-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 12px;
  background: var(--white);
  border: 1px solid var(--line-strong);
  border-radius: 100px;
  font-size: 12px;
  font-weight: 700;
  color: var(--ink);
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s ease;
}

.mobile-lang-pill.is-active {
  background: var(--accent);
  color: #fffefa;
  border-color: var(--accent);
}

/* ==========================================================================
   ABOUT / FOUNDER SECTION (#chi-siamo)
   Ultra-high contrast, pristine readability in both Light and Dark Mode
   ========================================================================== */
.about-founder-card {
  background: var(--surface-glass);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-radius: var(--radius);
  padding: 26px;
  border: 1px solid var(--surface-glass-border);
  box-shadow: var(--shadow-md);
  margin-top: 24px;
  color: var(--ink);
  transition: background 0.25s ease, border-color 0.25s ease;
}

.about-founder-head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 12px;
}

.about-founder-avatar {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--accent);
  color: #ffffff;
  font-size: 22px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px rgba(53, 75, 62, 0.3);
  flex-shrink: 0;
}

.about-founder-name {
  font-size: 19px;
  font-weight: 700;
  line-height: 1.2;
  color: var(--ink) !important;
  margin: 0;
}

.about-founder-role,
.about-founder-card .about-founder-role {
  font-size: 13px !important;
  font-weight: 600 !important;
  color: var(--rust) !important;
  margin-top: 3px !important;
  line-height: 1.35 !important;
  max-width: none !important;
  display: block !important;
}

.about-founder-bio,
.about-founder-card .about-founder-bio {
  font-size: 14px !important;
  line-height: 1.62 !important;
  color: var(--ink-soft) !important;
  margin: 12px 0 16px 0 !important;
  max-width: none !important;
  display: block !important;
}

.about-founder-meta,
.about-founder-card .about-founder-meta {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 13px !important;
  color: var(--ink-soft) !important;
  border-top: 1px solid var(--line);
  padding-top: 14px;
}

.about-founder-meta span,
.about-founder-card .about-founder-meta span {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: baseline;
  color: var(--ink-soft) !important;
}

.about-founder-meta strong,
.about-founder-card .about-founder-meta strong {
  color: var(--ink) !important;
  font-weight: 700 !important;
}

.about-founder-meta a,
.about-founder-card .about-founder-meta a {
  color: var(--accent) !important;
  font-weight: 600 !important;
  text-decoration: underline !important;
  text-underline-offset: 2px !important;
  word-break: break-all;
}

.about-founder-meta a:hover,
.about-founder-card .about-founder-meta a:hover {
  color: var(--rust) !important;
}

.about-right-col {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.about-legal-box {
  background: var(--surface-glass);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-radius: var(--radius);
  padding: 24px;
  border: 1px solid var(--surface-glass-border);
  box-shadow: var(--shadow-md);
  color: var(--ink);
  transition: background 0.25s ease, border-color 0.25s ease;
}

.about-legal-box h3 {
  font-size: 16px;
  font-weight: 700;
  margin: 0 0 12px 0;
  color: var(--ink);
}

.about-legal-list {
  display: flex;
  flex-direction: column;
  gap: 9px;
  font-size: 12.5px;
  line-height: 1.55;
  color: var(--ink-soft);
}

.about-legal-list p {
  margin: 0;
}

.about-legal-list strong {
  color: var(--ink);
  font-weight: 600;
}

.about-legal-list a {
  color: var(--accent);
  text-decoration: underline;
  font-weight: 600;
}

.about-legal-list a:hover {
  color: var(--rust);
}

/* ==========================================================================
   THEME TOGGLE BUTTON (Clean pill / circle with crisp SVGs, zero emojis)
   ========================================================================== */
.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--white);
  border: 1px solid var(--line-strong);
  color: var(--ink);
  cursor: pointer;
  transition: all 0.2s ease;
  flex-shrink: 0;
  padding: 0;
}

.theme-toggle:hover {
  background: var(--paper-deep);
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-1px);
}

.theme-icon-sun {
  display: none;
}
.theme-icon-moon {
  display: block;
}

[data-theme="dark"] .theme-icon-moon {
  display: none !important;
}
[data-theme="dark"] .theme-icon-sun {
  display: block !important;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-icon-moon {
    display: none !important;
  }
  :root:not([data-theme="light"]) .theme-icon-sun {
    display: block !important;
  }
}

/* Mobile Theme Switcher Bar */
.mobile-theme-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  margin-bottom: 14px;
}

.mobile-theme-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
}

.mobile-theme-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  background: var(--white);
  border: 1px solid var(--line-strong);
  border-radius: 100px;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--ink);
  cursor: pointer;
  transition: all 0.2s ease;
}

.mobile-theme-pill:hover {
  background: var(--paper-deep);
  border-color: var(--accent);
}

/* ==========================================================================
   DARK MODE COMPONENT REFINEMENTS
   ========================================================================== */
[data-theme="dark"] .fixed-stage-veil {
  background: linear-gradient(
    180deg,
    rgba(10, 14, 12, 0.82) 0%,
    rgba(10, 14, 12, 0.70) 50%,
    rgba(10, 14, 12, 0.88) 100%
  );
}

[data-theme="dark"] .browser-bar {
  background: #18221c;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

[data-theme="dark"] .portfolio-frame {
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: #121815;
}

[data-theme="dark"] .portfolio-status {
  background: var(--white);
  border-color: rgba(255, 255, 255, 0.18);
  color: var(--accent);
}

[data-theme="dark"] .price-card {
  border-color: var(--accent);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.55);
}

[data-theme="dark"] .price-main {
  background: #1d3326;
}

[data-theme="dark"] .price-main .button {
  background: var(--ink);
  color: #111714;
  border-color: var(--ink);
  font-weight: 700;
}

[data-theme="dark"] .price-main .button:hover {
  background: #ffffff;
  color: #000000;
}

[data-theme="dark"] .button {
  background: var(--accent);
  color: #0b120e;
  border-color: var(--accent);
  font-weight: 700;
}

[data-theme="dark"] .button:hover {
  background: #73b892;
  border-color: #73b892;
  color: #050a07;
}

[data-theme="dark"] .button-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line-strong);
}

[data-theme="dark"] .button-ghost:hover {
  background: var(--paper-deep);
  color: var(--ink);
}

[data-theme="dark"] .field input,
[data-theme="dark"] .field select,
[data-theme="dark"] .field textarea {
  background: #121815;
  border-color: rgba(255, 255, 255, 0.18);
  color: var(--ink);
}

[data-theme="dark"] .field input:focus,
[data-theme="dark"] .field select:focus,
[data-theme="dark"] .field textarea:focus {
  border-color: var(--accent);
}

[data-theme="dark"] ::placeholder {
  color: #7d8f83;
}

[data-theme="dark"] .chat-messages {
  background: #121815;
}

[data-theme="dark"] .chat-form {
  background: var(--white);
  border-color: var(--line);
}

[data-theme="dark"] .chat-form input {
  background: #121815;
  border-color: rgba(255, 255, 255, 0.18);
  color: var(--ink);
}

[data-theme="dark"] .chat-form button {
  background: var(--accent);
  color: #0b120e;
}

[data-theme="dark"] .notice {
  background: var(--white);
  border-color: var(--line-strong);
}

[data-theme="dark"] .dialog,
[data-theme="dark"] .image-dialog {
  background: var(--white);
  border-color: var(--line-strong);
}

[data-theme="dark"] .dialog-close {
  background: var(--paper);
  border-color: var(--line);
  color: var(--ink);
}

