/* ============================================================
   NORBERT CIUCCARIELLO — Personal Website
   style.css  |  Mobile-first, no external framework
   ============================================================ */

/* ── CUSTOM PROPERTIES ──────────────────────────────────────── */
:root {
  --color-primary:    #1d4e89;
  --color-accent:     #f09a15;
  --color-accent-dk:  #cd7e0e;
  --color-bg:         #ffffff;
  --color-bg-alt:     #f8f9fb;
  --color-text:       #2d2d2d;
  --color-text-light: #6b7280;
  --color-border:     #e5e7eb;
  --color-success:    #16a34a;
  --color-error:      #dc2626;

  --font-body:      'Inter', system-ui, sans-serif;
  --font-heading:   'Playfair Display', Georgia, serif;

  --max-width: 1140px;
  --nav-height: 120px;
  --section-py: 50px;
  --section-py-lg: 80px;

  --radius-sm:  6px;
  --radius-md:  12px;
  --radius-lg:  20px;
  --shadow-sm:  0 1px 3px rgba(0,0,0,.08), 0 1px 2px rgba(0,0,0,.06);
  --shadow-md:  0 4px 16px rgba(0,0,0,.10);
  --shadow-lg:  0 8px 32px rgba(0,0,0,.12);

  --transition: 0.25s ease;
}

/* ── RESET / BASE ────────────────────────────────────────────── */
*, *::before, *::after { max-width: 100%; box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-height);
  font-size: 16px;
  overflow-x: hidden;
  width: 100%;
}

body {
  font-family: var(--font-body);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  width: 100%;
}

img { max-width: 100%; display: block; }

a {
  color: var(--color-accent);
  text-decoration: none;
  transition: color var(--transition);
}
a:hover { color: var(--color-accent-dk); }

ul { list-style: none; }

address { font-style: normal; }

/* ── TYPOGRAPHY ─────────────────────────────────────────────── */
h1, h2, h3, h4 {
  font-family: var(--font-heading);
  color: var(--color-primary);
  line-height: 1.2;
}

h1 { font-size: clamp(2rem, 5vw, 3rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2rem); }
h3 { font-size: 1.2rem; }

p + p { margin-top: 1em; }

/* ── LAYOUT UTILITIES ────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin-inline: auto;
  padding-inline: 1.25rem;
  box-sizing: border-box;
}

.section {
  padding-block: var(--section-py);
  box-sizing: border-box;
}

.bg-alt { background: var(--color-bg-alt); }

.section-header {
  text-align: center;
  margin-bottom: 2.5rem;
}

.section-label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: 0.4rem;
}

.section-title {
  position: relative;
  display: inline-block;
  padding-bottom: 0.5rem;
}
.section-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 50px;
  height: 3px;
  background: var(--color-accent);
  border-radius: 2px;
}

/* ── BUTTONS ─────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.7rem 1.5rem;
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  border: 2px solid transparent;
  transition: background var(--transition), color var(--transition),
              border-color var(--transition), transform var(--transition),
              box-shadow var(--transition);
  text-decoration: none;
  line-height: 1;
}

.btn-accent {
  background: var(--color-accent);
  color: var(--color-primary);
  border-color: var(--color-accent);
}
.btn-accent:hover {
  background: var(--color-accent-dk);
  border-color: var(--color-accent-dk);
  color: var(--color-primary);
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(240,154,21,.35);
}

.btn-primary-outline {
  background: transparent;
  color: #fff;
  border-color: rgba(255,255,255,.7);
}
.btn-primary-outline:hover {
  background: rgba(255,255,255,.12);
  color: #fff;
  border-color: #fff;
  transform: translateY(-2px);
}

.btn-block {
  width: 100%;
  justify-content: center;
}

.btn-sm {
  padding: 0.45rem 1rem;
  font-size: 0.85rem;
}

.btn svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

/* ── ANIMATIONS ─────────────────────────────────────────────── */
.fade-in-section {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-in-section.visible {
  opacity: 1;
  transform: translateY(0);
}

/* stagger siblings */
.bio-pills .pill:nth-child(2) { transition-delay: 0.1s; }
.bio-pills .pill:nth-child(3) { transition-delay: 0.2s; }
.bio-pills .pill:nth-child(4) { transition-delay: 0.3s; }

.cards-grid .card:nth-child(2)    { transition-delay: 0.07s; }
.cards-grid .card:nth-child(3)    { transition-delay: 0.14s; }
.cards-grid .card:nth-child(4)    { transition-delay: 0.21s; }
.cards-grid .card:nth-child(5)    { transition-delay: 0.28s; }
.cards-grid .card:nth-child(6)    { transition-delay: 0.35s; }

.testate-grid .testata-card:nth-child(2) { transition-delay: 0.08s; }
.testate-grid .testata-card:nth-child(3) { transition-delay: 0.16s; }
.testate-grid .testata-card:nth-child(4) { transition-delay: 0.24s; }
.testate-grid .testata-card:nth-child(5) { transition-delay: 0.32s; }
.testate-grid .testata-card:nth-child(6) { transition-delay: 0.40s; }

/* ── COOKIE BANNER ───────────────────────────────────────────── */
.cookie-banner {
  position: fixed;
  bottom: 1rem;
  left: 1rem;
  right: 1rem;
  z-index: 9999;
  background: var(--color-primary);
  color: #fff;
  padding: 1rem 1.25rem;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  box-shadow: var(--shadow-lg);
  font-size: 0.875rem;
}
.cookie-banner p { flex: 1; min-width: 200px; }
.cookie-banner a { color: var(--color-accent); }
.cookie-banner a:hover { color: #fff; }
.cookie-banner.hidden { display: none; }

/* ── NAVBAR ──────────────────────────────────────────────────── */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--nav-height);
  transition: background var(--transition), box-shadow var(--transition), backdrop-filter var(--transition);
}
.site-header.scrolled {
  background: rgba(29, 78, 137, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 2px 20px rgba(0,0,0,.2);
}

.navbar {
  padding: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  gap: 1rem;
}

.nav-logo {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  line-height: 1.2;
  flex-shrink: 0;
}
.nav-logo-img {
  height: 50px;
  width: auto;
  object-fit: contain;
  flex-shrink: 0;
  filter: brightness(0) saturate(100%) invert(48%) sepia(25%) saturate(800%) hue-rotate(5deg);
}

.nav-logo-name {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 700;
  color: #fff;
  transition: color var(--transition);
}
.nav-logo-sub {
  font-size: 0.65rem;
  color: var(--color-accent);
  letter-spacing: 0.04em;
  font-weight: 500;
}
.nav-logo:hover .nav-logo-name { color: var(--color-accent); }

.nav-menu {
  display: none;
  flex-direction: column;
  position: fixed;
  top: var(--nav-height);
  left: 0;
  right: 0;
  background: var(--color-primary);
  padding: 1rem 1.25rem 2rem;
  gap: 0.25rem;
  border-top: 1px solid rgba(255,255,255,.1);
  max-height: calc(100vh - var(--nav-height));
  overflow-y: auto;
}
.nav-menu.open { display: flex; }

.nav-link {
  color: rgba(255,255,255,.85);
  font-size: 0.95rem;
  font-weight: 500;
  padding: 0.55rem 0;
  text-decoration: none;
  border-bottom: 1px solid rgba(255,255,255,.08);
  transition: color var(--transition);
}
.nav-link:hover,
.nav-link.active {
  color: var(--color-accent);
}
.nav-link.active {
  border-bottom-color: var(--color-accent);
}

.nav-cta {
  margin-top: 0.75rem;
  text-align: center;
}

/* Hamburger */
.hamburger {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  flex-shrink: 0;
}
.hamburger-line {
  display: block;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
  transform-origin: center;
}
.hamburger.open .hamburger-line:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open .hamburger-line:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.open .hamburger-line:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── HERO ────────────────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding-top: calc(var(--nav-height) + 2rem);
  padding-bottom: 5rem;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #0f2855 0%, #1d4e89 45%, #2560b8 70%, #0f2855 100%);
  z-index: 0;
}
.hero-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 80% 20%, rgba(240,154,21,.08) 0%, transparent 70%),
    radial-gradient(ellipse 40% 40% at 20% 80%, rgba(240,154,21,.05) 0%, transparent 60%);
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 820px;
}

.hero-pretitle {
  font-size: 2.78rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: 0.75rem;
}

.hero-title {
  color: #8b6e4b;
  margin-bottom: 1rem;
  font-weight: 700;
}

.hero-subtitle {
  font-size: clamp(0.95rem, 2vw, 1.15rem);
  color:  #8b6e4b;
  letter-spacing: 0.04em;
  margin-bottom: 2rem;
}

.hero-quote {
  display: inline-block;
  border-left: 3px solid var(--color-accent);
  padding: 0.75rem 1.25rem;
  margin: 0 auto 2.5rem;
  text-align: left;
  background: rgba(240,154,21,.06);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  max-width: 540px;
}
.hero-quote p {
  font-family: var(--font-heading);
  font-style: italic;
  font-size: clamp(1rem, 2.5vw, 1.2rem);
  color: rgba(255,255,255,.9);
  line-height: 1.5;
}

.hero-ctas {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.hero-scroll-cue {
  position: absolute;
  bottom: 1.75rem;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255,255,255,.5);
  animation: bounce 2s ease-in-out infinite;
  z-index: 1;
  transition: color var(--transition);
}
.hero-scroll-cue:hover { color: var(--color-accent); }

@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%       { transform: translateX(-50%) translateY(8px); }
}

/* ── BIO ─────────────────────────────────────────────────────── */
.bio-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
}

.bio-photo {
  width: 100%;
  max-height: 360px;
  object-fit: cover;
  object-position: top center;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  border: 3px solid var(--color-accent);
}

.bio-sidebar {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.bio-text p {
  color: var(--color-text);
}

.bio-pills {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.pill {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 1rem 1.25rem;
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition), transform var(--transition), border-color var(--transition);
}
.pill:hover {
  box-shadow: var(--shadow-md);
  transform: translateX(4px);
  border-color: var(--color-accent);
}

.pill-icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  background: rgba(240,154,21,.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.pill-icon svg {
  width: 22px;
  height: 22px;
  stroke: var(--color-accent);
}

.pill-body {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.pill-value {
  font-weight: 700;
  font-size: 1rem;
  color: var(--color-primary);
  font-family: var(--font-heading);
}
.pill-label {
  font-size: 0.8rem;
  color: var(--color-text-light);
}

/* ── ACTIVITY CARDS ──────────────────────────────────────────── */
.cards-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

.card {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 1.75rem 1.5rem;
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition), transform var(--transition), border-color var(--transition);
}
.card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-5px);
  border-color: var(--color-accent);
}

.card-icon {
  width: 52px;
  height: 52px;
  background: linear-gradient(135deg, rgba(29,78,137,.07) 0%, rgba(240,154,21,.12) 100%);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.1rem;
}
.card-icon svg {
  width: 26px;
  height: 26px;
  stroke: var(--color-primary);
}

.card-title {
  font-size: 1.05rem;
  color: var(--color-primary);
  margin-bottom: 0.6rem;
}

.card-text {
  font-size: 0.9rem;
  color: var(--color-text-light);
  line-height: 1.6;
}

/* ── STUDIO ──────────────────────────────────────────────────── */
.studio-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
}

.studio-disclaimer {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(240,154,21,.08);
  border: 1px solid rgba(240,154,21,.25);
  border-radius: var(--radius-sm);
  padding: 0.75rem 1rem;
  font-size: 0.875rem;
  color: var(--color-primary);
  font-weight: 600;
  margin-bottom: 1.5rem;
}
.studio-disclaimer svg {
  width: 18px;
  height: 18px;
  stroke: var(--color-accent);
  flex-shrink: 0;
}

.studio-text h3 {
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
  font-size: 1.05rem;
}

.service-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.service-list li {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.9rem;
  color: var(--color-text);
}
.service-list li svg {
  width: 16px;
  height: 16px;
  stroke: var(--color-accent);
  flex-shrink: 0;
}

.studio-info-box {
  background: var(--color-primary);
  color: #fff;
  border-radius: var(--radius-md);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
.studio-info-box h3 {
  color: var(--color-accent);
  font-size: 1.1rem;
  border-bottom: 1px solid rgba(255,255,255,.1);
  padding-bottom: 0.75rem;
  margin-bottom: 0.25rem;
}

.contact-list {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}
.contact-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.9rem;
}
.contact-list li svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  margin-top: 2px;
}
.studio-info-box .contact-list li svg { stroke: var(--color-accent); }
.studio-info-box .contact-list a {
  color: rgba(255,255,255,.85);
}
.studio-info-box .contact-list a:hover { color: var(--color-accent); }

/* ── EDITORIA ────────────────────────────────────────────────── */
.testate-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

.testata-card {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  transition: box-shadow var(--transition), transform var(--transition), border-color var(--transition);
}
.testata-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
  border-color: var(--color-accent);
}

.testata-header {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.testata-icon {
  width: 46px;
  height: 46px;
  background: rgba(29,78,137,.06);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.testata-icon svg {
  width: 22px;
  height: 22px;
  stroke: var(--color-primary);
}

.testata-name {
  font-size: 1rem;
  color: var(--color-primary);
  margin-bottom: 2px;
}
.testata-since {
  font-size: 0.75rem;
  color: var(--color-accent);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.07em;
}
.testata-desc {
  font-size: 0.875rem;
  color: var(--color-text-light);
  flex: 1;
  line-height: 1.6;
}

.testata-link {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-accent);
  text-decoration: none;
  align-self: flex-start;
  transition: gap var(--transition), color var(--transition);
}
.testata-link:hover {
  gap: 0.5rem;
  color: var(--color-primary);
}
.testata-link svg {
  width: 14px;
  height: 14px;
}
.testata-link-placeholder {
  color: var(--color-text-light);
  font-size: 0.85rem;
  font-style: italic;
  cursor: default;
}

.legal-note {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.78rem;
  color: var(--color-text-light);
  margin-top: 2rem;
  border-top: 1px solid var(--color-border);
  padding-top: 1.25rem;
}
.legal-note svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  stroke: var(--color-text-light);
}

/* ── CONTATTI ────────────────────────────────────────────────── */
.contatti-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
}

.contatti-intro {
  font-size: 1.05rem;
  color: var(--color-text);
  margin-bottom: 1.5rem;
  line-height: 1.7;
}

.contact-list-spaced {
  gap: 1.1rem;
  margin-bottom: 1.5rem;
}
.contact-list-spaced svg {
  stroke: var(--color-accent);
}

.contatti-studio-ref {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-left: 4px solid var(--color-accent);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 1rem 1.25rem;
  font-size: 0.875rem;
}
.contatti-studio-ref p { line-height: 1.8; }
.contatti-studio-ref a { color: var(--color-primary); font-weight: 500; }
.contatti-studio-ref a:hover { color: var(--color-accent); }

/* ── FORM ────────────────────────────────────────────────────── */
.contatti-form {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 2rem 1.5rem;
  box-shadow: var(--shadow-sm);
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin-bottom: 1.25rem;
}
.form-group:last-child { margin-bottom: 0; }

.form-group label {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-primary);
}

.required-mark { color: var(--color-accent); }

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.65rem 0.9rem;
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: var(--color-text);
  background: var(--color-bg);
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
}
.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(240,154,21,.15);
}
.form-group input.invalid,
.form-group textarea.invalid {
  border-color: var(--color-error);
}
.form-group textarea { resize: vertical; min-height: 120px; }

.form-group-check {
  flex-direction: column;
  gap: 0.4rem;
}
.checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  cursor: pointer;
  font-size: 0.82rem;
  color: var(--color-text);
  font-weight: 400 !important;
  line-height: 1.5;
}
.checkbox-label input[type="checkbox"] {
  width: 18px;
  height: 18px;
  min-width: 18px;
  accent-color: var(--color-accent);
  cursor: pointer;
  margin-top: 1px;
  padding: 0;
  border: none;
}

.field-error {
  font-size: 0.78rem;
  color: var(--color-error);
  min-height: 1em;
}

.form-feedback {
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 1rem;
  display: none;
}
.form-feedback.success {
  display: block;
  background: rgba(22,163,74,.1);
  border: 1px solid rgba(22,163,74,.3);
  color: var(--color-success);
}
.form-feedback.error {
  display: block;
  background: rgba(220,38,38,.08);
  border: 1px solid rgba(220,38,38,.25);
  color: var(--color-error);
}

/* Submit button states */
#submit-btn {
  position: relative;
}
.btn-spinner {
  display: none;
  width: 18px;
  height: 18px;
  border: 2px solid rgba(29,78,137,.3);
  border-top-color: var(--color-primary);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}
#submit-btn.loading .btn-text { opacity: 0.6; }
#submit-btn.loading .btn-spinner { display: inline-block; }
#submit-btn:disabled { opacity: 0.7; cursor: not-allowed; transform: none !important; }

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ── FOOTER ──────────────────────────────────────────────────── */
.site-footer {
  background: var(--color-primary);
  color: rgba(255,255,255,.7);
  padding-block: 2.5rem;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.875rem;
}

.footer-logo {
  height: 50px;
  width: auto;
  object-fit: contain;
  flex-shrink: 0;
  filter: brightness(0) invert(1);
  opacity: 0.9;
}

.footer-brand .footer-name {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  color: #fff;
  display: block;
  margin-bottom: 0.25rem;
}
.footer-tagline {
  font-size: 0.78rem;
  color: rgba(255,255,255,.5);
  letter-spacing: 0.04em;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
}
.footer-nav a {
  color: rgba(255,255,255,.65);
  font-size: 0.85rem;
  transition: color var(--transition);
}
.footer-nav a:hover { color: var(--color-accent); }

.footer-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: rgba(255,255,255,.07);
  border-radius: 50%;
  color: rgba(255,255,255,.7);
  transition: background var(--transition), color var(--transition);
}
.footer-social a:hover {
  background: var(--color-accent);
  color: var(--color-primary);
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  padding-top: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-size: 0.8rem;
  color: rgba(255,255,255,.45);
}
.footer-credit a {
  color: var(--color-accent);
}
.footer-credit a:hover { color: #fff; }


/* ── GALLERY ──────────────────────────────────────────────────── */

.gallery-wrap {
  overflow: hidden;
  width: 100%;
  cursor: grab;
  user-select: none;
  padding: 1rem 0;
}

.gallery-wrap:active {
  cursor: grabbing;
}

.gallery-track {
  display: flex;
  gap: 12px;
  width: max-content;
  animation: gallery-scroll 15s linear infinite;
}

.gallery-track:hover,
.gallery-track.paused {
  animation-play-state: paused;
}

.gallery-track img {
  height: clamp(250px, 45vw, 400px);
  width: 300px;
  border-radius: 12px;
  object-fit: cover;
  flex-shrink: 0;
  pointer-events: none;
  display: block;
}


@keyframes gallery-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(calc(-260px * 14 - 12px * 14)); }
}


/* ── RESPONSIVE — SMARTPHONE ( 480px) ──────────────────────────── */

@media (min-width: 481px) {
  .gallery-track {
    animation-duration: 10s;
  }
}
@media (max-width: 480px) {
  
@keyframes gallery-scroll {
    from { transform: translateX(0); }
    to   { transform: translateX(calc(-220px * 14 - 12px * 14)); }
  }

  .gallery-track {
    animation-duration: 30s;
  }
  
  .gallery-track img {
    height: 300px;
    width: 300px;
  }
  .studio-info-box {
    width: 100%;
    box-sizing: border-box;
    padding: 1.2rem;
  }
}

/* ── RESPONSIVE — TABLET (≥ 640px) ──────────────────────────── */
@media (min-width: 640px) {

  /* header */
  .nav-logo-img {
    height: 80px;
    width: auto;
}
  .cards-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .testate-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .bio-pills {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }
  .footer-inner {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
  }
  .footer-bottom {
    width: 100%;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
}



/* ── RESPONSIVE — DESKTOP (≥ 900px) ─────────────────────────── */
@media (min-width: 900px) {

  .section { padding-block: var(--section-py-lg); }

  /* header */
  .nav-logo-img {
    height: 110px;
    width: auto;
}

  /* Navbar desktop */
  .hamburger { display: none; }
  .nav-menu {
    display: flex !important;
    flex-direction: row;
    position: static;
    background: transparent;
    padding: 0;
    border: none;
    align-items: center;
    gap: 0.25rem;
    max-height: none;
    overflow: visible;
  }
  .nav-link {
    padding: 0.35rem 0.7rem;
    border-bottom: 2px solid transparent;
    border-radius: 0;
    font-size: 0.88rem;
  }
  .nav-link:hover, .nav-link.active {
    border-bottom-color: var(--color-accent);
  }
  .nav-cta { margin-top: 0; }

  /* Bio */
  .bio-layout {
    grid-template-columns: 3fr 2fr;
    align-items: start;
  }
  .bio-sidebar .bio-pills {
    grid-template-columns: 1fr;
  }

  /* Cards */
  .cards-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  /* Studio */
  .studio-layout {
    grid-template-columns: 3fr 2fr;
    align-items: start;
  }

  /* Testate */
  .testate-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  /* Contatti */
  .contatti-layout {
    grid-template-columns: 1fr 1.3fr;
    align-items: start;
  }
}

/* ── RESPONSIVE — WIDE (≥ 1100px) ───────────────────────────── */
@media (min-width: 1100px) {
  .container { padding-inline: 2rem; }
  .testate-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ── ACCESSIBILITY ───────────────────────────────────────────── */
:focus-visible {
  outline: 3px solid var(--color-accent);
  outline-offset: 3px;
  border-radius: 3px;
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  .fade-in-section { opacity: 1; transform: none; }
}
