/* Volta Media — dark + blu elettrico (template Siitoo) */
:root {
  --color-primary: #020617;
  --color-secondary: #1e293b;
  --color-accent: #00d4ff;
  --color-background: #05080d;
  --color-text: #e8eef4;
  --bg: #05080d;
  --bg-elevated: #0c1219;
  --bg-card: #0f141c;
  --bg-muted: #0a1018;
  --text: #e8eef4;
  --text-muted: #94a3b8;
  --text-dim: #64748b;
  --accent: #00d4ff;
  --accent-soft: rgba(0, 212, 255, 0.14);
  --accent-dim: #0099cc;
  --accent-glow: rgba(0, 212, 255, 0.45);
  --border: rgba(0, 212, 255, 0.08);
  --border-hover: rgba(0, 212, 255, 0.22);
  --font-heading: "Poppins", system-ui, sans-serif;
  --font-body: "Source Sans 3", "Source Sans Pro", system-ui, sans-serif;
  --radius: 14px;
  --radius-lg: 24px;
  --shadow: 0 24px 48px rgba(0, 0, 0, 0.45);
  --header-h: 76px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  background-image: radial-gradient(
      ellipse 100% 70% at 90% -10%,
      rgba(0, 212, 255, 0.12) 0%,
      transparent 55%
    ),
    radial-gradient(ellipse 80% 50% at 0% 100%, rgba(59, 130, 246, 0.06) 0%, transparent 50%),
    linear-gradient(180deg, #05080d 0%, #060a10 40%, #05080d 100%);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  color: #7ee8ff;
}

.container {
  width: min(1200px, 100% - 2rem);
  margin-inline: auto;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.15;
  color: var(--text);
  letter-spacing: -0.02em;
}

h2 {
  font-size: clamp(1.65rem, 3vw, 2.35rem);
  margin: 0 0 0.75rem;
}

h3 {
  font-size: 1.2rem;
  margin: 0 0 0.5rem;
}

p {
  margin: 0 0 1rem;
  color: var(--text-muted);
}

/* ----- Header ----- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  display: flex;
  align-items: center;
  background: rgba(5, 8, 13, 0.82);
  backdrop-filter: blur(16px) saturate(1.2);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: 100%;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: var(--text);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.12rem;
}

.logo-mark {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--accent) 0%, #0066ff 100%);
  color: #020617;
  font-weight: 800;
  border-radius: 12px;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
  box-shadow: 0 0 28px var(--accent-glow);
}

.logo-text {
  letter-spacing: -0.03em;
}

.nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.15rem;
}

.nav a {
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.92rem;
  padding: 0.5rem 0.8rem;
  border-radius: 10px;
  transition: color 0.2s, background 0.2s;
}

.nav a:hover {
  color: var(--text);
  background: rgba(0, 212, 255, 0.06);
}

.btn-nav {
  margin-left: 0.35rem;
  background: linear-gradient(135deg, var(--accent), var(--accent-dim));
  color: #020617 !important;
  padding: 0.55rem 1.2rem !important;
  border-radius: 999px !important;
  box-shadow: 0 4px 24px var(--accent-glow);
}

.btn-nav:hover {
  filter: brightness(1.08);
  color: #020617 !important;
}

.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 0;
  border: none;
  background: transparent;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  height: 2px;
  width: 24px;
  background: var(--text);
  border-radius: 1px;
}

main {
  padding-bottom: 4rem;
}

/* ----- Hero (layout asimmetrico) ----- */
.hero {
  position: relative;
  padding: clamp(2.5rem, 7vw, 4rem) 0 clamp(3rem, 8vw, 5rem);
  overflow: hidden;
  min-height: min(92vh, 900px);
  display: flex;
  align-items: center;
}

.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background: radial-gradient(
      ellipse 60% 50% at 75% 30%,
      rgba(0, 212, 255, 0.09) 0%,
      transparent 55%
    ),
    linear-gradient(165deg, transparent 0%, rgba(0, 102, 255, 0.04) 100%);
}

.hero-bg::before {
  content: "";
  position: absolute;
  inset: 10% 5% 15% 40%;
  border: 1px solid rgba(0, 212, 255, 0.06);
  border-radius: var(--radius-lg);
  transform: rotate(-2deg);
}

.hero-bg::after {
  content: "";
  position: absolute;
  top: 12%;
  left: 8%;
  width: 120px;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), transparent);
  border-radius: 2px;
  opacity: 0.85;
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  gap: clamp(1.75rem, 4vw, 3.5rem);
  align-items: center;
}

.hero-copy .eyebrow {
  font-family: var(--font-heading);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--accent);
  margin: 0 0 1rem;
}

.hero h1 {
  font-size: clamp(2.15rem, 5vw, 3.35rem);
  margin: 0 0 1.15rem;
  letter-spacing: -0.035em;
  max-width: 14ch;
}

.hero-desc {
  font-size: 1.08rem;
  max-width: 40ch;
  line-height: 1.7;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 1.75rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.8rem 1.45rem;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: 999px;
  text-decoration: none;
  transition: transform 0.15s, box-shadow 0.2s, background 0.2s, border-color 0.2s;
}

.btn:active {
  transform: scale(0.98);
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent), #0090c7);
  color: #020617;
  border: none;
  box-shadow: 0 8px 32px var(--accent-glow);
}

.btn-primary:hover {
  filter: brightness(1.06);
  color: #020617;
}

.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border-hover);
  box-shadow: none;
}

.btn-ghost:hover {
  border-color: var(--accent);
  color: #fff;
  background: rgba(0, 212, 255, 0.06);
}

.hero-visual-wrap {
  position: relative;
}

.hero-visual {
  position: relative;
  border-radius: 8px 36px 36px 8px;
  overflow: hidden;
  box-shadow: var(--shadow), 0 0 0 1px rgba(0, 212, 255, 0.15);
  border: 1px solid rgba(0, 212, 255, 0.2);
  transform: rotate(1.5deg);
}

.hero-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, transparent 40%, rgba(0, 212, 255, 0.08) 100%);
  pointer-events: none;
}

.hero-visual img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.hero-visual-deco {
  position: absolute;
  bottom: -12px;
  right: -12px;
  width: 48%;
  height: 40%;
  border: 1px solid rgba(0, 212, 255, 0.25);
  border-radius: var(--radius);
  z-index: -1;
  pointer-events: none;
}

/* ----- Sections ----- */
.section {
  padding: clamp(3rem, 7vw, 5rem) 0;
}

.section-head {
  max-width: 560px;
  margin-bottom: 2.5rem;
}

.section-head--wide {
  max-width: 720px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
}

.section-head--wide p {
  text-align: left;
  justify-self: start;
}

@media (min-width: 768px) {
  .section-head--wide {
    grid-template-columns: 1fr auto;
    align-items: end;
    gap: 2rem;
  }

  .section-head--wide .section-label {
    grid-column: 1 / -1;
  }

  .section-head--wide p {
    margin: 0;
    max-width: 34ch;
    justify-self: end;
    text-align: right;
  }
}

.section-label {
  font-family: var(--font-heading);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--accent);
  margin: 0 0 0.5rem;
}

/* ----- Services: bento ----- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem;
}

.services-bento {
  grid-template-columns: repeat(12, 1fr);
  grid-auto-rows: minmax(120px, auto);
  gap: 1rem;
}

.services-bento .service-card:nth-child(1) {
  grid-column: span 7;
  grid-row: span 2;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 300px;
  padding: 2rem;
  background: linear-gradient(160deg, var(--bg-card) 0%, rgba(0, 212, 255, 0.04) 100%);
}

.services-bento .service-card:nth-child(1) h3 {
  font-size: 1.45rem;
}

.services-bento .service-card:nth-child(2) {
  grid-column: span 5;
}

.services-bento .service-card:nth-child(3) {
  grid-column: span 5;
}

.service-card {
  padding: 1.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25);
  transition: border-color 0.25s, transform 0.25s, box-shadow 0.25s;
}

.service-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-3px);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(0, 212, 255, 0.1);
}

.service-card .icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-soft);
  color: var(--accent);
  border-radius: 14px;
  margin-bottom: 1.1rem;
  border: 1px solid rgba(0, 212, 255, 0.15);
}

.service-card .icon svg {
  width: 24px;
  height: 24px;
}

/* ----- Content split (proporzioni moderne) ----- */
.content-split {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  gap: clamp(2rem, 4vw, 3rem);
  align-items: center;
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}

.content-split:last-child {
  margin-bottom: 0;
}

.content-split--reverse {
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
}

.content-split--reverse .content-split__body {
  order: 2;
}

.content-split--reverse .content-split__visual {
  order: 1;
}

.content-split__visual {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  position: relative;
}

.content-split__visual::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: inset 0 0 0 1px rgba(0, 212, 255, 0.12);
  pointer-events: none;
}

.content-split__visual img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.content-split__body h2 {
  margin-top: 0;
}

/* ----- Stats ----- */
.stats-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
  margin-top: 1.75rem;
}

.stat {
  padding: 1.1rem 0.85rem;
  background: var(--bg-muted);
  border-radius: var(--radius);
  text-align: center;
  border: 1px solid var(--border);
}

.stat strong {
  display: block;
  font-family: var(--font-heading);
  font-size: 1.65rem;
  color: var(--accent);
  font-weight: 800;
}

.stat span {
  font-size: 0.78rem;
  color: var(--text-dim);
  line-height: 1.35;
}

/* ----- CTA band ----- */
.cta-band {
  position: relative;
  padding: clamp(2.75rem, 6vw, 4rem);
  background: linear-gradient(135deg, #020617 0%, #0f172a 50%, #020617 100%);
  color: #fff;
  border-radius: var(--radius-lg);
  margin-top: 1rem;
  text-align: center;
  overflow: hidden;
  border: 1px solid rgba(0, 212, 255, 0.2);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.5);
}

.cta-band::before {
  content: "";
  position: absolute;
  top: -50%;
  left: 50%;
  width: 120%;
  height: 200%;
  background: radial-gradient(circle, rgba(0, 212, 255, 0.12) 0%, transparent 55%);
  transform: translateX(-50%);
  pointer-events: none;
}

.cta-band h2 {
  color: #fff;
  margin: 0 0 0.5rem;
  position: relative;
}

.cta-band p {
  color: rgba(226, 232, 240, 0.88);
  margin-bottom: 1.35rem;
  position: relative;
}

.cta-band .btn-primary {
  position: relative;
}

/* ----- Portfolio ----- */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}

.portfolio-grid--featured {
  grid-template-columns: repeat(12, 1fr);
  gap: 1.15rem;
}

.portfolio-grid--featured .portfolio-card:nth-child(1) {
  grid-column: 1 / span 7;
  grid-row: 1 / span 2;
  display: flex;
  flex-direction: column;
}

.portfolio-grid--featured .portfolio-card:nth-child(1) .thumb {
  flex: 1;
  min-height: 220px;
}

.portfolio-grid--featured .portfolio-card:nth-child(2) {
  grid-column: 8 / span 5;
  grid-row: 1;
}

.portfolio-grid--featured .portfolio-card:nth-child(3) {
  grid-column: 8 / span 5;
  grid-row: 2;
}

.portfolio-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
  transition: transform 0.25s, border-color 0.25s;
}

.portfolio-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-hover);
}

.portfolio-card .thumb {
  aspect-ratio: 16 / 10;
  overflow: hidden;
}

.portfolio-grid--featured .portfolio-card:nth-child(1) .thumb {
  aspect-ratio: auto;
}

.portfolio-card .thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.portfolio-card:hover .thumb img {
  transform: scale(1.04);
}

.portfolio-card .body {
  padding: 1.35rem 1.4rem 1.6rem;
}

.portfolio-card .tag {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
}

/* ----- Page header ----- */
.page-hero {
  position: relative;
  padding: clamp(3rem, 8vw, 4.5rem) 0 2.25rem;
  overflow: hidden;
}

.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 212, 255, 0.06) 0%, transparent 70%);
  pointer-events: none;
}

.page-hero .container {
  position: relative;
}

.page-hero h1 {
  margin: 0 0 0.65rem;
  font-size: clamp(2rem, 4vw, 2.75rem);
  max-width: 18ch;
}

.page-hero .lead {
  font-size: 1.12rem;
  max-width: 52ch;
  line-height: 1.65;
}

.page-hero-line {
  width: 64px;
  height: 4px;
  background: linear-gradient(90deg, var(--accent), transparent);
  border-radius: 2px;
  margin-bottom: 1.25rem;
}

/* ----- Team ----- */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.25rem;
}

.team-card {
  padding: 1.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: border-color 0.2s;
}

.team-card:hover {
  border-color: var(--border-hover);
}

.team-card h3 {
  margin-bottom: 0.25rem;
}

.team-card .role {
  font-size: 0.88rem;
  color: var(--accent);
  font-weight: 600;
  margin: 0 0 0.5rem;
}

/* ----- Contact ----- */
.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: 2.5rem;
  align-items: start;
}

.contact-card-title {
  font-family: var(--font-heading);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--accent);
  margin: 0 0 1rem;
}

.contact-page-visual {
  margin-bottom: 1.25rem;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.contact-page-visual img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.contact-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
}

.contact-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.contact-list li {
  margin-bottom: 1rem;
  color: var(--text-muted);
}

.contact-list strong {
  display: block;
  font-family: var(--font-heading);
  color: var(--text);
  font-size: 0.82rem;
  margin-bottom: 0.25rem;
}

.form-group {
  margin-bottom: 1.1rem;
}

.form-group label {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 0.35rem;
  color: var(--text);
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 0.7rem 0.95rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-family: inherit;
  font-size: 1rem;
  background: var(--bg-muted);
  color: var(--text);
}

.form-group textarea {
  min-height: 130px;
  resize: vertical;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: 2px solid var(--accent-soft);
  border-color: var(--accent);
}

button[type="submit"] {
  cursor: pointer;
  border: none;
  font-family: var(--font-heading);
}

/* ----- Footer ----- */
.site-footer {
  padding: 3.25rem 0 1.5rem;
  background: linear-gradient(180deg, #020617 0%, #000 100%);
  color: rgba(255, 255, 255, 0.85);
  margin-top: 2rem;
  border-top: 1px solid rgba(0, 212, 255, 0.12);
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 2rem;
  align-items: start;
}

.site-footer .logo {
  color: #fff;
}

.site-footer .logo-mark {
  background: linear-gradient(135deg, var(--accent), #0066ff);
  color: #020617;
}

.site-footer .logo-text {
  color: #fff;
}

.footer-brand p {
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.95rem;
  margin: 0.75rem 0 0;
  max-width: 28ch;
}

.footer-contact p,
.footer-contact a {
  color: rgba(255, 255, 255, 0.78);
  text-decoration: none;
  margin: 0 0 0.35rem;
  font-size: 0.95rem;
}

.footer-contact a:hover {
  color: var(--accent);
  text-decoration: none;
}

.footer-contact strong {
  display: block;
  font-family: var(--font-heading);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(0, 212, 255, 0.65);
  margin-bottom: 0.4rem;
}

.footer-social {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.footer-social a {
  color: rgba(255, 255, 255, 0.85);
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
}

.footer-social a:hover {
  color: var(--accent);
  text-decoration: none;
}

.footer-social-label {
  display: block;
  width: 100%;
  margin-bottom: 0.5rem;
  font-family: var(--font-heading);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(0, 212, 255, 0.55);
}

.portfolio-card h3 {
  font-size: 1.15rem;
  margin: 0 0 0.5rem;
}

.footer-bottom {
  grid-column: 1 / -1;
  padding-top: 1.5rem;
  margin-top: 0.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.45);
  text-align: center;
}

/* ----- Page intro (split — alternativa al page-hero) ----- */
.page-intro {
  padding: clamp(2.5rem, 6vw, 4rem) 0 clamp(2rem, 4vw, 3rem);
}

.page-intro--split .page-intro__inner {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: end;
}

.page-intro__copy h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  margin: 0 0 1rem;
  max-width: 16ch;
}

.page-intro__copy .lead {
  font-size: 1.1rem;
  max-width: 42ch;
  margin: 0;
}

.page-intro__visual {
  border-radius: 20px 8px 20px 8px;
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  position: relative;
}

.page-intro__visual img {
  width: 100%;
  aspect-ratio: 3 / 4;
  max-height: 420px;
  object-fit: cover;
}

.page-intro__visual::after {
  content: "";
  position: absolute;
  inset: 0;
  box-shadow: inset 0 0 0 1px rgba(0, 212, 255, 0.12);
  pointer-events: none;
  border-radius: inherit;
}

/* ----- Pillar row (servizi) ----- */
.pillar-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-bottom: clamp(2.5rem, 5vw, 3.5rem);
}

.pillar-card {
  padding: 1.35rem 1.25rem;
  background: linear-gradient(180deg, var(--bg-card) 0%, rgba(0, 212, 255, 0.03) 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  text-align: left;
}

.pillar-card .num {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 800;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 0.5rem;
  opacity: 0.9;
}

.pillar-card h3 {
  font-size: 1rem;
  margin: 0 0 0.35rem;
}

.pillar-card p {
  font-size: 0.92rem;
  margin: 0;
}

/* ----- Cover hero (portfolio) ----- */
.page-cover {
  position: relative;
  min-height: min(52vh, 520px);
  display: flex;
  align-items: flex-end;
  margin-bottom: 0;
}

.portfolio-page-cover {
  margin-bottom: 0;
}

.page-cover__media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.page-cover__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.page-cover__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(5, 8, 13, 0.2) 0%,
    rgba(5, 8, 13, 0.75) 55%,
    rgba(5, 8, 13, 0.92) 100%
  );
  z-index: 1;
}

.page-cover__content {
  position: relative;
  z-index: 2;
  padding: clamp(2.5rem, 6vw, 4rem) 0 clamp(2rem, 4vw, 3rem);
  width: 100%;
}

.page-cover__content h1 {
  font-size: clamp(2.25rem, 5vw, 3.25rem);
  max-width: 16ch;
  margin: 0 0 0.75rem;
  text-shadow: 0 4px 24px rgba(0, 0, 0, 0.5);
}

.page-cover__content .lead {
  max-width: 48ch;
  margin: 0;
  color: rgba(226, 232, 240, 0.92);
  font-size: 1.1rem;
}

/* ----- Portfolio showcase (righe alternate) ----- */
.portfolio-showcase {
  display: flex;
  flex-direction: column;
  gap: clamp(2rem, 4vw, 3rem);
}

.portfolio-showcase__item {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  align-items: stretch;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.portfolio-showcase__item--reverse .portfolio-showcase__thumb {
  order: 2;
}

.portfolio-showcase__item--reverse .portfolio-showcase__body {
  order: 1;
}

.portfolio-showcase__thumb {
  min-height: 280px;
  overflow: hidden;
}

.portfolio-showcase__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 280px;
}

.portfolio-showcase__body {
  padding: clamp(1.5rem, 3vw, 2.25rem);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.portfolio-showcase__body .tag {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
  margin: 0 0 0.5rem;
}

.portfolio-showcase__body h2 {
  font-size: 1.35rem;
  margin: 0 0 0.75rem;
}

/* ----- Chi siamo: intro minimale + fascia + valori ----- */
.page-intro--minimal {
  text-align: center;
  padding: clamp(3.5rem, 10vw, 6rem) 0 clamp(2rem, 4vw, 3rem);
}

.page-intro--minimal .section-label {
  margin-bottom: 1rem;
}

.page-intro--minimal h1 {
  font-size: clamp(2rem, 4.5vw, 3.25rem);
  max-width: 20ch;
  margin: 0 auto 1rem;
}

.page-intro--minimal .lead {
  max-width: 42ch;
  margin: 0 auto;
  font-size: 1.12rem;
}

.band-stats {
  padding: clamp(2rem, 4vw, 2.75rem) 0;
  background: linear-gradient(90deg, rgba(0, 212, 255, 0.06) 0%, transparent 50%, rgba(0, 212, 255, 0.06) 100%);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}

.band-stats__inner {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  text-align: center;
}

.band-stats__inner strong {
  display: block;
  font-family: var(--font-heading);
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  color: var(--accent);
  font-weight: 800;
}

.band-stats__inner span {
  font-size: 0.85rem;
  color: var(--text-dim);
}

.values-stack {
  display: grid;
  gap: 1rem;
  padding: clamp(2rem, 4vw, 2.5rem);
  background: var(--bg-muted);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}

.values-stack h2 {
  margin-top: 0;
}

.values-stack ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.values-stack li {
  padding: 1rem 0;
  border-bottom: 1px solid var(--border);
  color: var(--text-muted);
}

.values-stack li:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.values-stack li strong {
  color: var(--text);
  display: block;
  font-family: var(--font-heading);
  margin-bottom: 0.25rem;
}

/* ----- Contatti: split form / aside ----- */
.contact-page--split .contact-page__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: clamp(2rem, 4vw, 3rem);
  align-items: start;
}

.contact-page--split .contact-form-panel {
  padding: clamp(1.75rem, 3vw, 2.25rem);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.contact-page--split .contact-aside {
  position: sticky;
  top: calc(var(--header-h) + 1rem);
}

.contact-page--split .contact-aside .contact-page-visual {
  margin-bottom: 1.5rem;
}

.contact-intro-section {
  padding-bottom: 0;
}

.contact-page__intro {
  margin-bottom: 1.75rem;
}

.contact-page__intro h1 {
  font-size: clamp(2rem, 4vw, 2.75rem);
  margin: 0 0 0.75rem;
}

.contact-page__intro .lead {
  margin: 0;
  max-width: 50ch;
}

/* ----- Responsive ----- */
@media (max-width: 1024px) {
  .services-bento .service-card:nth-child(1),
  .services-bento .service-card:nth-child(2),
  .services-bento .service-card:nth-child(3) {
    grid-column: span 12;
    grid-row: auto;
    min-height: auto;
  }

  .portfolio-grid--featured .portfolio-card:nth-child(1),
  .portfolio-grid--featured .portfolio-card:nth-child(2),
  .portfolio-grid--featured .portfolio-card:nth-child(3) {
    grid-column: span 12;
    grid-row: auto;
  }

  .portfolio-grid--featured .portfolio-card:nth-child(1) .thumb {
    aspect-ratio: 16 / 10;
    min-height: 0;
  }
}

@media (max-width: 900px) {
  .hero-inner {
    grid-template-columns: 1fr;
    min-height: unset;
  }

  .hero {
    min-height: unset;
  }

  .hero-visual {
    transform: none;
    border-radius: var(--radius-lg);
  }

  .hero-visual-deco {
    display: none;
  }

  .content-split,
  .content-split--reverse {
    grid-template-columns: 1fr;
  }

  .content-split--reverse .content-split__body,
  .content-split--reverse .content-split__visual {
    order: unset;
  }

  .stats-row {
    grid-template-columns: 1fr;
  }

  .contact-layout {
    grid-template-columns: 1fr;
  }

  .page-intro--split .page-intro__inner {
    grid-template-columns: 1fr;
  }

  .page-intro__visual img {
    aspect-ratio: 16 / 10;
    max-height: none;
  }

  .pillar-row {
    grid-template-columns: 1fr;
  }

  .portfolio-showcase__item,
  .portfolio-showcase__item--reverse {
    grid-template-columns: 1fr;
  }

  .portfolio-showcase__item--reverse .portfolio-showcase__thumb,
  .portfolio-showcase__item--reverse .portfolio-showcase__body {
    order: unset;
  }

  .band-stats__inner {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  .contact-page--split .contact-page__grid {
    grid-template-columns: 1fr;
  }

  .contact-page--split .contact-aside {
    position: static;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .footer-brand p {
    margin-inline: auto;
  }

  .footer-social {
    justify-content: center;
  }
}

@media (max-width: 768px) {
  .menu-toggle {
    display: flex;
  }

  .nav {
    position: fixed;
    inset: var(--header-h) 0 0 0;
    background: rgba(5, 8, 13, 0.97);
    backdrop-filter: blur(12px);
    padding: 1.5rem;
    transform: translateX(100%);
    transition: transform 0.25s ease;
    border-top: 1px solid var(--border);
    z-index: 99;
  }

  .nav.is-open {
    transform: translateX(0);
  }

  .nav ul {
    flex-direction: column;
    align-items: stretch;
    gap: 0.25rem;
  }

  .btn-nav {
    margin-left: 0;
    text-align: center;
  }
}

:root {
  --accent: #ee00ff !important;
  --accent-glow: #ee00ff33 !important;
  --color-primary: #ee00ff !important;
  --accent-dim: #ffffff !important;
  --color-secondary: #ffffff !important;
  --accent-soft: #0ae5f51f !important;
  --color-accent: #0ae5f5 !important;
  --bg: #ffffff !important;
  --color-background: #ffffff !important;
  --bg-elevated: #ffffff !important;
  --bg-card: #ffffff !important;
  --bg-muted: #f2f2f2 !important;
  --border: #d9d9d9 !important;
  --border-hover: #bfbfbf !important;
  --text: #111827 !important;
  --color-text: #111827 !important;
  --text-muted: #646973 !important;
  --text-dim: #888c93 !important;
}
