/* ═══════════════════════════════════════════════════════
   DESIGN SYSTEM & VARIABLES
═══════════════════════════════════════════════════════ */
:root {
  --color-bg:        #07111F;
  --color-bg-2:      #12324A;
  --color-accent:    #38BDF8;
  --color-teal:      #2DD4BF;
  --color-white:     #F8FAFC;
  --color-muted:     #CBD5E1;
  --color-gold:      #D6B46A;

  --card-bg:         rgba(255,255,255,0.04);
  --card-border:     rgba(255,255,255,0.10);
  --card-border-h:   rgba(56,189,248,0.35);

  --font-title: 'Space Grotesk', sans-serif;
  --font-body:  'Inter', sans-serif;

  --radius-sm:  8px;
  --radius-md:  14px;
  --radius-lg:  22px;
  --radius-xl:  32px;

  --shadow-card: 0 4px 32px rgba(0,0,0,0.35);
  --shadow-glow: 0 0 40px rgba(56,189,248,0.12);

  --transition: 0.28s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-fast: 0.16s cubic-bezier(0.4, 0, 0.2, 1);

  --section-gap: clamp(80px, 10vw, 140px);
  --container:   1180px;
}

/* ═══════════════════════════════════════════════════════
   RESET & BASE
═══════════════════════════════════════════════════════ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  background-color: var(--color-bg);
  color: var(--color-white);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
input, select, textarea { font-family: inherit; }

/* ═══════════════════════════════════════════════════════
   LAYOUT
═══════════════════════════════════════════════════════ */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 48px);
}

.section {
  padding: var(--section-gap) 0;
  position: relative;
}

/* Scroll-margin per navigazione cross-page con navbar fissa */
main section[id] {
  scroll-margin-top: 100px;
}

.hidden { display: none !important; }
.mt-2 { margin-top: 16px; }

/* ═══════════════════════════════════════════════════════
   SECTION HEADERS
═══════════════════════════════════════════════════════ */
.section-header {
  text-align: center;
  margin-bottom: clamp(40px, 6vw, 72px);
}

.section-tag {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-accent);
  background: rgba(56,189,248,0.1);
  border: 1px solid rgba(56,189,248,0.25);
  border-radius: 100px;
  padding: 4px 14px;
  margin-bottom: 18px;
}

.section-title {
  font-family: var(--font-title);
  font-size: clamp(1.9rem, 4vw, 3rem);
  font-weight: 700;
  line-height: 1.18;
  color: var(--color-white);
  margin-bottom: 16px;
}

.section-sub {
  font-size: 1.05rem;
  color: var(--color-muted);
  max-width: 640px;
  margin: 0 auto;
  line-height: 1.7;
}

/* ═══════════════════════════════════════════════════════
   BUTTONS
═══════════════════════════════════════════════════════ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  border-radius: 10px;
  padding: 12px 24px;
  transition: all var(--transition);
  cursor: pointer;
  border: 1.5px solid transparent;
  white-space: nowrap;
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0.06);
  opacity: 0;
  transition: opacity var(--transition-fast);
}
.btn:hover::before { opacity: 1; }

.btn--primary {
  background: linear-gradient(135deg, var(--color-accent), var(--color-teal));
  color: #07111F;
  border-color: transparent;
}
.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(56,189,248,0.35);
}
.btn--primary:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 3px;
}

.btn--outline {
  background: transparent;
  color: var(--color-white);
  border-color: var(--card-border);
}
.btn--outline:hover {
  border-color: var(--color-accent);
  color: var(--color-accent);
  transform: translateY(-2px);
}
.btn--outline:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 3px;
}

.btn--ghost {
  background: var(--card-bg);
  color: var(--color-muted);
  border-color: var(--card-border);
}
.btn--ghost:hover {
  color: var(--color-accent);
  border-color: var(--color-accent);
}

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

/* ═══════════════════════════════════════════════════════
   CARDS (base)
═══════════════════════════════════════════════════════ */
.card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  padding: clamp(24px, 3vw, 36px);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: border-color var(--transition), transform var(--transition), box-shadow var(--transition);
}
.card:hover {
  border-color: var(--card-border-h);
  transform: translateY(-4px);
  box-shadow: var(--shadow-card), var(--shadow-glow);
}

/* ═══════════════════════════════════════════════════════
   NAVBAR
═══════════════════════════════════════════════════════ */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 22px 0;
  background: rgba(7,17,31,0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255,255,255,0.05);
  transition: background var(--transition), backdrop-filter var(--transition), padding var(--transition), border-color var(--transition);
}

.navbar.scrolled {
  background: rgba(7,17,31,0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--card-border);
  padding: 14px 0;
}

.navbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.navbar__logo {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
  transition: opacity var(--transition-fast);
}
.navbar__logo:hover { opacity: 0.85; }
.navbar__logo:focus-visible { outline: 2px solid var(--color-accent); outline-offset: 4px; border-radius: 8px; }

.navbar__logo-img {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  transition: box-shadow var(--transition-fast);
}
.navbar__logo:hover .navbar__logo-img {
  box-shadow: 0 0 0 2px rgba(56,189,248,0.5), 0 0 16px rgba(56,189,248,0.3);
}

.navbar__logo-text {
  font-family: var(--font-title);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-white);
  letter-spacing: -0.01em;
  white-space: nowrap;
}

.navbar__nav {
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-link {
  font-size: 1rem;
  font-weight: 500;
  color: var(--color-muted);
  padding: 8px 18px;
  border-radius: 8px;
  transition: color var(--transition-fast), background var(--transition-fast);
}
.nav-link:hover, .nav-link.active {
  color: var(--color-accent);
  background: rgba(56,189,248,0.08);
}
.nav-link:focus-visible { outline: 2px solid var(--color-accent); outline-offset: 2px; }

.navbar__cta { flex-shrink: 0; font-size: 1rem; padding: 10px 24px; }

.navbar__hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  margin-left: auto;
  border-radius: 8px;
  transition: background var(--transition-fast);
}
.navbar__hamburger:hover { background: rgba(255,255,255,0.06); }
.navbar__hamburger:focus-visible { outline: 2px solid var(--color-accent); outline-offset: 2px; border-radius: 8px; }

.hamburger__bar {
  display: block;
  width: 22px;
  height: 1.8px;
  background: var(--color-white);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}

.navbar__hamburger.open .hamburger__bar:nth-child(1) { transform: translateY(6.8px) rotate(45deg); }
.navbar__hamburger.open .hamburger__bar:nth-child(2) { opacity: 0; }
.navbar__hamburger.open .hamburger__bar:nth-child(3) { transform: translateY(-6.8px) rotate(-45deg); }

/* Mobile menu */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 999;
  background: rgba(7,17,31,0.98);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 8px;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition);
}
.mobile-menu.open {
  opacity: 1;
  pointer-events: all;
}
.mobile-menu nav {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 32px 24px;
  max-height: 100vh;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch; /* scroll fluido su iOS Safari */
}
.mobile-link {
  font-family: var(--font-title);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--color-muted);
  padding: 12px 24px;
  border-radius: 12px;
  transition: color var(--transition-fast), background var(--transition-fast);
  width: 100%;
  text-align: center;
}
.mobile-link:hover { color: var(--color-white); background: rgba(255,255,255,0.04); }

/* ═══════════════════════════════════════════════════════
   HERO
═══════════════════════════════════════════════════════ */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 100px;
  position: relative;
  overflow: hidden;
}

.hero__bg-gradient {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 20% 40%, rgba(56,189,248,0.08) 0%, transparent 60%),
    radial-gradient(ellipse 60% 50% at 80% 60%, rgba(45,212,191,0.06) 0%, transparent 60%),
    radial-gradient(ellipse 40% 40% at 50% 0%, rgba(18,50,74,0.5) 0%, transparent 70%);
  pointer-events: none;
}

.hero__particles {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.particle {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  animation: particleFloat linear infinite;
}

@keyframes particleFloat {
  0%   { transform: translateY(0) translateX(0) scale(1); opacity: 0; }
  10%  { opacity: 1; }
  90%  { opacity: 0.5; }
  100% { transform: translateY(-120vh) translateX(30px) scale(0.5); opacity: 0; }
}

.hero__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 80px);
  align-items: center;
  padding-top: 40px;
  padding-bottom: 80px;
  width: 100%;
}

.hero__eyebrow {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: 18px;
}

.hero__headline {
  font-family: var(--font-title);
  font-size: clamp(2rem, 4.2vw, 3.4rem);
  font-weight: 700;
  line-height: 1.12;
  color: var(--color-white);
  margin-bottom: 22px;
  letter-spacing: -0.02em;
}

.hero__sub {
  font-size: clamp(0.95rem, 1.3vw, 1.1rem);
  color: var(--color-muted);
  line-height: 1.72;
  margin-bottom: 36px;
  max-width: 520px;
}

.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 48px;
}

.hero__stats {
  display: flex;
  gap: clamp(20px, 3vw, 40px);
  flex-wrap: wrap;
}

.stat {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.stat__number {
  font-family: var(--font-title);
  font-size: clamp(1.6rem, 2.5vw, 2.2rem);
  font-weight: 700;
  color: var(--color-accent);
  line-height: 1;
  display: inline;
}

.stat__suffix {
  font-family: var(--font-title);
  font-size: clamp(1.2rem, 2vw, 1.8rem);
  font-weight: 700;
  color: var(--color-accent);
}

.stat__label {
  font-size: 0.78rem;
  color: var(--color-muted);
  line-height: 1.3;
  max-width: 120px;
}

/* ── Profile card (hero right column) ── */
.hero__profile {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 480px;
}

/* Background rings */
.profile-bg-ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(56,189,248,0.08);
  pointer-events: none;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  animation: ringPulse 6s ease-in-out infinite;
}
.profile-bg-ring--1 { width: 340px; height: 340px; }
.profile-bg-ring--2 { width: 460px; height: 460px; animation-delay: 1s; border-color: rgba(45,212,191,0.05); }

@keyframes ringPulse {
  0%, 100% { opacity: 0.5; transform: translate(-50%, -50%) scale(1); }
  50%       { opacity: 1;   transform: translate(-50%, -50%) scale(1.03); }
}

/* Central card */
.profile-card {
  position: relative;
  z-index: 2;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(56,189,248,0.2);
  border-radius: 24px;
  padding: 32px 28px;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 24px 80px rgba(0,0,0,0.4), 0 0 0 1px rgba(56,189,248,0.08);
  animation: floatCard 5s ease-in-out infinite;
  min-width: 260px;
}

@keyframes floatCard {
  0%, 100% { transform: translateY(0px); }
  50%       { transform: translateY(-10px); }
}

.profile-card__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  text-align: center;
}

/* Photo */
.profile-card__photo {
  position: relative;
  width: 100px;
  height: 100px;
  flex-shrink: 0;
}

.profile-card__photo img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  object-position: center top;
  border: 2px solid rgba(56,189,248,0.4);
  display: block;
}

.profile-card__photo-ring {
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 1.5px solid transparent;
  background: linear-gradient(135deg, rgba(56,189,248,0.6), rgba(45,212,191,0.4), transparent 60%) border-box;
  -webkit-mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: destination-out;
  mask-composite: exclude;
  animation: rotateBorder 6s linear infinite;
  pointer-events: none;
}

@keyframes rotateBorder {
  0%   { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Info */
.profile-card__name {
  font-family: var(--font-title);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--color-white);
  line-height: 1.2;
  margin: 0;
}

.profile-card__role {
  font-size: 0.78rem;
  color: var(--color-muted);
  letter-spacing: 0.04em;
  margin: 0;
}

.profile-card__available {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--color-teal);
  background: rgba(45,212,191,0.08);
  border: 1px solid rgba(45,212,191,0.2);
  border-radius: 100px;
  padding: 4px 12px;
}

.profile-available-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-teal);
  box-shadow: 0 0 6px var(--color-teal);
  animation: pulse 2s ease-in-out infinite;
  flex-shrink: 0;
}

/* Quick links row */
.profile-card__links {
  display: flex;
  gap: 8px;
  margin-top: 4px;
}

.profile-card__link {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-muted);
  transition: color var(--transition-fast), border-color var(--transition-fast), background var(--transition-fast);
}
.profile-card__link:hover {
  color: var(--color-accent);
  border-color: rgba(56,189,248,0.4);
  background: rgba(56,189,248,0.08);
}

/* Glow behind card */
.profile-card__glow {
  position: absolute;
  inset: -30px;
  border-radius: 40px;
  background: radial-gradient(ellipse at center, rgba(56,189,248,0.1) 0%, transparent 70%);
  pointer-events: none;
  z-index: -1;
}

/* Floating badges */
.profile-badge {
  position: absolute;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--color-white);
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 100px;
  padding: 7px 13px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  white-space: nowrap;
  box-shadow: 0 4px 16px rgba(0,0,0,0.3);
}

/* Badge positions & individual float animations */
.profile-badge--tl {
  top: 6%;
  left: -4%;
  animation: floatBadge1 4.5s ease-in-out infinite;
  border-color: rgba(56,189,248,0.25);
  color: #7dd3fc;
}
.profile-badge--tr {
  top: 10%;
  right: -2%;
  animation: floatBadge2 5s ease-in-out infinite;
  border-color: rgba(45,212,191,0.25);
  color: #5eead4;
}
.profile-badge--ml {
  top: 42%;
  left: -8%;
  animation: floatBadge3 4s ease-in-out infinite;
  border-color: rgba(56,189,248,0.2);
  color: #7dd3fc;
}
.profile-badge--mr-pos {
  top: 38%;
  right: -6%;
  animation: floatBadge1 5.5s ease-in-out infinite 0.5s;
  border-color: rgba(244,114,182,0.25);
  color: #f9a8d4;
}
.profile-badge--bl {
  bottom: 14%;
  left: -2%;
  animation: floatBadge2 4.8s ease-in-out infinite 1s;
  border-color: rgba(45,212,191,0.25);
  color: #5eead4;
}
.profile-badge--br {
  bottom: 10%;
  right: -4%;
  animation: floatBadge3 5.2s ease-in-out infinite 0.8s;
  border-color: rgba(214,180,106,0.3);
  color: #D6B46A;
}

@keyframes floatBadge1 {
  0%, 100% { transform: translateY(0px) translateX(0px); }
  50%       { transform: translateY(-7px) translateX(3px); }
}
@keyframes floatBadge2 {
  0%, 100% { transform: translateY(0px) translateX(0px); }
  50%       { transform: translateY(-5px) translateX(-4px); }
}
@keyframes floatBadge3 {
  0%, 100% { transform: translateY(0px) translateX(0px); }
  33%       { transform: translateY(-8px) translateX(2px); }
  66%       { transform: translateY(-3px) translateX(-2px); }
}

/* Scroll hint */
.hero__scroll-hint {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  animation: fadeUpDown 2s ease-in-out infinite;
}

@keyframes fadeUpDown {
  0%, 100% { opacity: 0.4; transform: translateX(-50%) translateY(0); }
  50%       { opacity: 1; transform: translateX(-50%) translateY(6px); }
}

.scroll-line {
  width: 1.5px;
  height: 32px;
  background: linear-gradient(to bottom, transparent, var(--color-accent));
  border-radius: 2px;
}

.scroll-text {
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-muted);
}

/* ═══════════════════════════════════════════════════════
   ABOUT
═══════════════════════════════════════════════════════ */
.about { background: radial-gradient(ellipse 60% 50% at 90% 50%, rgba(45,212,191,0.04) 0%, transparent 60%); }

.about__grid {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: clamp(32px, 5vw, 72px);
  align-items: start;
  margin-bottom: clamp(40px, 5vw, 64px);
}

.about__photo-wrap {
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: sticky;
  top: 100px;
}

.about__photo {
  width: 240px;
  height: 280px;
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 1.5px solid rgba(56,189,248,0.3);
  background: rgba(18,50,74,0.4);
  position: relative;
  box-shadow:
    0 0 0 4px rgba(56,189,248,0.07),
    0 0 32px rgba(56,189,248,0.18),
    0 16px 48px rgba(0,0,0,0.45);
  transition: box-shadow var(--transition), border-color var(--transition);
}

.about__photo:hover {
  border-color: rgba(56,189,248,0.55);
  box-shadow:
    0 0 0 6px rgba(56,189,248,0.1),
    0 0 48px rgba(56,189,248,0.28),
    0 20px 56px rgba(0,0,0,0.5);
}

.about__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}

.about__img-placeholder {
  position: absolute;
  inset: 0;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background: linear-gradient(135deg, rgba(18,50,74,0.8), rgba(7,17,31,0.8));
}

.about__img-placeholder span {
  font-family: var(--font-title);
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--color-accent);
  letter-spacing: -0.02em;
}

.about__badge {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(45,212,191,0.08);
  border: 1px solid rgba(45,212,191,0.2);
  border-radius: 100px;
  padding: 6px 14px;
  font-size: 0.78rem;
  color: var(--color-teal);
  font-weight: 500;
  width: fit-content;
}

.badge__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--color-teal);
  box-shadow: 0 0 8px var(--color-teal);
  animation: pulse 2s ease-in-out infinite;
  flex-shrink: 0;
}

@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(45,212,191,0.5); }
  50%       { box-shadow: 0 0 0 5px rgba(45,212,191,0); }
}

.about__text {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding-top: 6px;
}

.about__lead {
  font-size: 1.1rem;
  color: var(--color-white);
  line-height: 1.7;
  font-weight: 400;
}

.about__text p {
  font-size: 0.97rem;
  color: var(--color-muted);
  line-height: 1.75;
}

.about__text em {
  color: var(--color-accent);
  font-style: normal;
}

.about__inline-link {
  color: var(--color-accent);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: rgba(56,189,248,0.4);
  transition: color var(--transition-fast), text-decoration-color var(--transition-fast);
}
.about__inline-link:hover {
  color: #7dd3fc;
  text-decoration-color: rgba(56,189,248,0.8);
}

.about__cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(16px, 2vw, 24px);
}

.about__cards .card {
  padding: clamp(20px, 2.5vw, 30px);
}

.card__icon {
  margin-bottom: 16px;
  width: 48px;
  height: 48px;
  background: rgba(56,189,248,0.08);
  border: 1px solid rgba(56,189,248,0.15);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.card__title {
  font-family: var(--font-title);
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-white);
  margin-bottom: 8px;
}

.card__text {
  font-size: 0.88rem;
  color: var(--color-muted);
  line-height: 1.65;
}

/* Card cliccabile */
a.card--link {
  display: block;
  text-decoration: none;
  cursor: pointer;
}
a.card--link:hover {
  border-color: rgba(56,189,248,0.35);
  transform: translateY(-5px);
  box-shadow: var(--shadow-card), 0 0 24px rgba(56,189,248,0.12);
}
a.card--link:hover .card__icon {
  background: rgba(56,189,248,0.14);
  border-color: rgba(56,189,248,0.3);
}
a.card--link:hover .card__cta {
  color: var(--color-accent);
  gap: 8px;
}
.card__cta {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-top: 14px;
  font-size: 0.8rem;
  font-weight: 600;
  color: rgba(56,189,248,0.6);
  transition: color var(--transition-fast), gap var(--transition-fast);
}

/* ═══════════════════════════════════════════════════════
   COSA FACCIO
═══════════════════════════════════════════════════════ */
.what-i-do {
  background: radial-gradient(ellipse 70% 60% at 10% 60%, rgba(56,189,248,0.05) 0%, transparent 55%);
}

.what__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(16px, 2vw, 28px);
}

.what-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  padding: clamp(24px, 3vw, 40px);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: border-color var(--transition), transform var(--transition), box-shadow var(--transition);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.what-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(56,189,248,0.4), transparent);
  opacity: 0;
  transition: opacity var(--transition);
}

.what-card:hover {
  border-color: var(--card-border-h);
  transform: translateY(-6px);
  box-shadow: var(--shadow-card), var(--shadow-glow);
}
.what-card:hover::before { opacity: 1; }

.what-card__number {
  position: absolute;
  top: 24px;
  right: 24px;
  font-family: var(--font-title);
  font-size: 3rem;
  font-weight: 700;
  color: rgba(255,255,255,0.04);
  line-height: 1;
  pointer-events: none;
  user-select: none;
}

.what-card__icon {
  width: 56px;
  height: 56px;
  background: rgba(56,189,248,0.07);
  border: 1px solid rgba(56,189,248,0.15);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  transition: background var(--transition), border-color var(--transition);
}

.what-card:hover .what-card__icon {
  background: rgba(56,189,248,0.12);
  border-color: rgba(56,189,248,0.3);
}

.what-card__title {
  font-family: var(--font-title);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--color-white);
  margin-bottom: 10px;
}

.what-card__text {
  font-size: 0.92rem;
  color: var(--color-muted);
  line-height: 1.7;
  margin-bottom: 22px;
}

.what-card__list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.what-card__list li {
  font-size: 0.85rem;
  color: var(--color-muted);
  padding-left: 16px;
  position: relative;
}

.what-card__list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--color-teal);
}

a.what-card--link {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  cursor: pointer;
}
a.what-card--link:hover {
  border-color: rgba(56,189,248,0.35);
  box-shadow: var(--shadow-card), 0 0 28px rgba(56,189,248,0.13);
}
a.what-card--link:hover .what-card__cta {
  color: var(--color-accent);
  gap: 8px;
}

.what-card__cta {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-top: auto;
  padding-top: 18px;
  font-size: 0.8rem;
  font-weight: 600;
  color: rgba(56,189,248,0.55);
  transition: color var(--transition-fast), gap var(--transition-fast);
}

/* ═══════════════════════════════════════════════════════
   SERVICES
═══════════════════════════════════════════════════════ */
.services {
  background: radial-gradient(ellipse 50% 60% at 80% 30%, rgba(214,180,106,0.04) 0%, transparent 60%);
  padding: clamp(56px, 7vw, 96px) 0;
}

.services__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(16px, 2vw, 24px);
  margin-bottom: clamp(28px, 4vw, 44px);
}

.service-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  padding: clamp(18px, 2.2vw, 26px);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: relative;
  transition: border-color var(--transition), transform var(--transition), box-shadow var(--transition);
}

.service-card:hover {
  border-color: var(--card-border-h);
  transform: translateY(-5px);
  box-shadow: var(--shadow-card), var(--shadow-glow);
}

.service-card--featured {
  border-color: rgba(56,189,248,0.3);
  background: rgba(56,189,248,0.04);
  box-shadow: 0 0 0 1px rgba(56,189,248,0.1), var(--shadow-card);
}

.service-card--complete {
  border-color: rgba(214,180,106,0.28);
  background: rgba(214,180,106,0.025);
  box-shadow: 0 0 0 1px rgba(214,180,106,0.08), var(--shadow-card);
}

.service-card--complete:hover {
  border-color: rgba(214,180,106,0.5);
  box-shadow: 0 0 0 1px rgba(214,180,106,0.15), 0 8px 32px rgba(214,180,106,0.12), var(--shadow-card);
}

.service-card--complete .list-check {
  color: var(--color-gold);
}

.services-hero-copy {
  max-width: 1002px;
  margin-inline: auto;
  margin-bottom: clamp(24px, 3.5vw, 44px);
}

.services-hero-copy .section-title {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
}

.services-hero-copy .section-sub {
  text-align: justify;
  max-width: none;
  margin: 0;
}

.service-card__badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, var(--color-accent), var(--color-teal));
  color: #07111F;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 4px 14px;
  border-radius: 100px;
  white-space: nowrap;
}

.service-card__top { display: flex; flex-direction: column; gap: 7px; }

.service-card__tag {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-teal);
}

.service-card__title {
  font-family: var(--font-title);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--color-white);
}

.service-card__desc {
  font-size: 0.9rem;
  color: var(--color-muted);
  line-height: 1.65;
}

.service-card__list {
  display: flex;
  flex-direction: column;
  gap: 7px;
  flex: 1;
}

.service-card__list li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.88rem;
  color: var(--color-muted);
}

.list-check {
  color: var(--color-teal);
  font-weight: 700;
  font-size: 0.9rem;
  flex-shrink: 0;
}

.service-card__cta { margin-top: auto; }

/* Device mockup */
.devices-mockup {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: clamp(16px, 3vw, 32px);
  padding: clamp(32px, 4vw, 56px) 0;
}

.device {
  background: rgba(18,50,74,0.6);
  border: 1px solid rgba(56,189,248,0.15);
  border-radius: var(--radius-md);
  overflow: hidden;
  position: relative;
}

.device--desktop { width: 480px; }
.device--tablet  { width: 220px; border-radius: var(--radius-sm); }
.device--mobile  { width: 120px; border-radius: 16px; }

.device__screen {
  background: rgba(7,17,31,0.9);
  aspect-ratio: auto;
}

.device--desktop .device__screen { height: 280px; }
.device--tablet  .device__screen { height: 200px; }
.device--mobile  .device__screen { height: 220px; }

.device__content { padding: 10px; display: flex; flex-direction: column; gap: 8px; }

.device__base {
  height: 16px;
  background: rgba(18,50,74,0.8);
  border-top: 1px solid rgba(255,255,255,0.05);
}

.d-mock-nav {
  height: 8px;
  background: rgba(255,255,255,0.06);
  border-radius: 4px;
}

.d-mock-hero { display: flex; flex-direction: column; gap: 5px; padding: 6px 0; }
.d-mock-h { height: 7px; background: rgba(255,255,255,0.2); border-radius: 4px; }
.d-mock-h--sm { width: 65%; height: 5px; background: rgba(255,255,255,0.1); }

.d-mock-btn {
  width: 60px;
  height: 14px;
  background: linear-gradient(90deg, rgba(56,189,248,0.5), rgba(45,212,191,0.5));
  border-radius: 4px;
}

.d-mock-row { display: flex; gap: 6px; }
.d-mock-box {
  flex: 1;
  height: 50px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 6px;
}

/* ═══════════════════════════════════════════════════════
   PROJECTS
═══════════════════════════════════════════════════════ */
.projects {
  background: radial-gradient(ellipse 70% 50% at 50% 0%, rgba(18,50,74,0.3) 0%, transparent 60%);
}

.projects__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(16px, 2vw, 24px);
}

.project-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: border-color var(--transition), transform var(--transition), box-shadow var(--transition);
}

.project-card:hover {
  border-color: var(--card-border-h);
  transform: translateY(-4px);
  box-shadow: var(--shadow-card), var(--shadow-glow);
}

/* Project visuals */
.project-card__visual {
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

/* Visual con immagine reale */
.project-card__visual--img {
  background: #07111F;
  padding: 0;
  height: 260px;
}
.project-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform 0.5s ease;
}
.project-card:hover .project-card__img {
  transform: scale(1.03);
}
/* Logo Star Castle: sfondo bianco, contain per mostrarlo per intero */
.project-card__visual--starcastle-img {
  background: #fff;
  padding: 24px;
}
.project-card__img--contain {
  object-fit: contain;
}
.project-card__visual--black {
  background: #000;
}

/* ─── University projects disclaimer ─── */
.uni-projects__disclaimer {
  margin-bottom: 3rem;
  padding: 1.5rem 2rem;
  font-size: 0.875rem;
  line-height: 1.75;
  color: var(--color-muted);
  border-color: rgba(56,189,248,0.22);
  background: rgba(56,189,248,0.025);
}
.uni-projects__disclaimer p + p {
  margin-top: 0.75rem;
}

/* ─── Projects → link to university section ─── */
.projects__uni-link {
  margin-top: 2.5rem;
  display: flex;
  justify-content: center;
}

.project-card__visual--web     { background: linear-gradient(135deg, rgba(56,189,248,0.08) 0%, rgba(18,50,74,0.4) 100%); }
.project-card__visual--event   { background: linear-gradient(135deg, rgba(45,212,191,0.08) 0%, rgba(18,50,74,0.4) 100%); }
.project-card__visual--marketing { background: linear-gradient(135deg, rgba(214,180,106,0.08) 0%, rgba(18,50,74,0.4) 100%); }
.project-card__visual--auto    { background: linear-gradient(135deg, rgba(56,189,248,0.06) 0%, rgba(7,17,31,0.8) 100%); }
.project-card__visual--corporate { background: linear-gradient(135deg, rgba(214,180,106,0.06) 0%, rgba(18,50,74,0.4) 100%); }
.project-card__visual--digital { background: linear-gradient(135deg, rgba(45,212,191,0.06) 0%, rgba(7,17,31,0.8) 100%); }

/* Pv mockup web */
.pv-mockup {
  width: 80%;
  background: rgba(7,17,31,0.8);
  border: 1px solid rgba(56,189,248,0.2);
  border-radius: 8px;
  overflow: hidden;
}

.pv-bar {
  display: flex;
  gap: 5px;
  padding: 7px 10px;
  background: rgba(18,50,74,0.6);
  border-bottom: 1px solid rgba(255,255,255,0.05);
}
.pv-bar span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(255,255,255,0.2);
}
.pv-bar span:nth-child(1) { background: #FF5F57; }
.pv-bar span:nth-child(2) { background: #FEBC2E; }
.pv-bar span:nth-child(3) { background: #28C840; }

.pv-content { padding: 10px; display: flex; flex-direction: column; gap: 7px; }
.pv-h { height: 6px; background: rgba(255,255,255,0.2); border-radius: 3px; }
.pv-h--sm { width: 60%; height: 5px; background: rgba(255,255,255,0.1); }
.pv-row { display: flex; gap: 6px; }
.pv-row div { flex: 1; height: 24px; background: rgba(56,189,248,0.1); border: 1px solid rgba(56,189,248,0.1); border-radius: 4px; }

/* Pv event */
.pv-event {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  width: 80%;
}

.pv-event__dot {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--color-teal), var(--color-accent));
  box-shadow: 0 0 20px rgba(45,212,191,0.4);
}

.pv-event__lines { display: flex; flex-direction: column; gap: 5px; width: 100%; align-items: center; }
.pv-event__lines div { height: 4px; border-radius: 2px; background: rgba(255,255,255,0.1); }
.pv-event__lines div:nth-child(1) { width: 80%; }
.pv-event__lines div:nth-child(2) { width: 60%; }
.pv-event__lines div:nth-child(3) { width: 70%; }

.pv-event__badges { display: flex; gap: 6px; flex-wrap: wrap; justify-content: center; }
.pv-event__badges span {
  font-size: 0.62rem;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 100px;
  background: rgba(45,212,191,0.12);
  border: 1px solid rgba(45,212,191,0.25);
  color: var(--color-teal);
}

.pv-event__reels {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 4px;
}

.pv-reel {
  font-size: 0.6rem;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 100px;
  background: rgba(214,90,140,0.15);
  border: 1px solid rgba(214,90,140,0.35);
  color: #f472b6;
  letter-spacing: 0.04em;
}

.pv-reel--2 {
  background: rgba(168,85,247,0.12);
  border-color: rgba(168,85,247,0.3);
  color: #c084fc;
}

/* Reel link buttons */
.project-card__reel-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 6px;
}

.btn--reel {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  font-weight: 600;
  padding: 7px 14px;
  border-radius: 100px;
  background: rgba(214,90,140,0.08);
  border: 1px solid rgba(214,90,140,0.3);
  color: #f472b6;
  transition: background var(--transition-fast), border-color var(--transition-fast), transform var(--transition-fast), box-shadow var(--transition-fast);
  white-space: nowrap;
}

.btn--reel:hover {
  background: rgba(214,90,140,0.16);
  border-color: rgba(214,90,140,0.55);
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(214,90,140,0.2);
}

.btn--reel:focus-visible {
  outline: 2px solid #f472b6;
  outline-offset: 2px;
}

.btn--reel-big {
  font-size: 0.88rem;
  padding: 10px 20px;
  background: rgba(214,90,140,0.12);
  border-color: rgba(214,90,140,0.4);
  box-shadow: 0 2px 10px rgba(214,90,140,0.1);
}
.btn--reel-big:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(214,90,140,0.3);
}

.project-card__reel-cta {
  margin-bottom: 10px;
}
.reel-cta__label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #f472b6;
  background: rgba(214,90,140,0.08);
  border: 1px solid rgba(214,90,140,0.2);
  border-radius: 100px;
  padding: 4px 12px;
}

/* Pv chart */
.pv-chart { width: 80%; display: flex; flex-direction: column; gap: 10px; align-items: center; }

.pv-chart__bars {
  display: flex;
  align-items: flex-end;
  gap: 6px;
  height: 70px;
  width: 100%;
  padding: 0 8px;
}

.pv-chart__bars span {
  flex: 1;
  background: linear-gradient(to top, rgba(214,180,106,0.6), rgba(214,180,106,0.2));
  border-radius: 3px 3px 0 0;
  transition: height 0.3s ease;
}

.pv-chart__label {
  font-size: 0.7rem;
  color: var(--color-muted);
  text-align: center;
}

/* Pv auto */
.pv-auto {
  width: 85%;
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: center;
}
.pv-auto__label { font-size: 0.7rem; color: var(--color-muted); }

/* Pv corporate */
.pv-corporate { display: flex; flex-direction: column; align-items: center; gap: 8px; }

.pv-corp__rings { position: relative; width: 80px; height: 80px; }

.ring {
  position: absolute;
  border-radius: 50%;
  border: 1.5px solid;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}
.ring--1 { width: 80px; height: 80px; border-color: rgba(214,180,106,0.5); }
.ring--2 { width: 54px; height: 54px; border-color: rgba(214,180,106,0.35); }
.ring--3 { width: 28px; height: 28px; background: rgba(214,180,106,0.15); border-color: rgba(214,180,106,0.6); }

.pv-corp__label { font-size: 0.7rem; color: var(--color-muted); }

/* Pv digital */
.pv-digital { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.pv-digital__nodes { position: relative; width: 90px; height: 70px; }

.node {
  position: absolute;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--color-teal);
  box-shadow: 0 0 8px rgba(45,212,191,0.5);
}
.node--center { width: 14px; height: 14px; top: 50%; left: 50%; transform: translate(-50%, -50%); background: var(--color-accent); box-shadow: 0 0 12px rgba(56,189,248,0.6); }
.node--tl { top: 5px; left: 5px; }
.node--tr { top: 5px; right: 5px; }
.node--bl { bottom: 5px; left: 5px; }
.node--br { bottom: 5px; right: 5px; }

.pv-digital__label { font-size: 0.7rem; color: var(--color-muted); }

/* Star Castle visual */
.project-card__visual--starcastle {
  background: linear-gradient(160deg, #0a0f1e 0%, #0d1a35 50%, #0a1628 100%);
  position: relative;
  overflow: hidden;
}

.pv-starcastle {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 16px;
  position: relative;
}

/* Globe background effect */
.pv-sc__globe {
  position: absolute;
  width: 130px;
  height: 130px;
  border-radius: 50%;
  border: 1px solid rgba(180,150,60,0.2);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  box-shadow:
    0 0 0 20px rgba(180,150,60,0.05),
    0 0 0 40px rgba(180,150,60,0.03),
    inset 0 0 30px rgba(180,150,60,0.08);
}
.pv-sc__globe::before {
  content: '';
  position: absolute;
  inset: -20px;
  border-radius: 50%;
  border: 1px solid rgba(180,150,60,0.1);
}
.pv-sc__globe::after {
  content: '';
  position: absolute;
  inset: -40px;
  border-radius: 50%;
  border: 1px solid rgba(180,150,60,0.06);
}

/* Shield logo */
.pv-sc__logo {
  position: relative;
  z-index: 2;
  margin-bottom: 4px;
}

.pv-sc__shield {
  width: 32px;
  height: 36px;
  background: linear-gradient(160deg, #c8a840, #8b6914);
  clip-path: polygon(50% 0%, 100% 15%, 100% 70%, 50% 100%, 0% 70%, 0% 15%);
  box-shadow: 0 0 14px rgba(200,168,64,0.5);
}

/* Mini nav */
.pv-sc__nav {
  display: flex;
  align-items: center;
  gap: 6px;
  position: absolute;
  top: 10px;
  left: 10px;
  right: 10px;
  z-index: 3;
}

.pv-sc__nav span {
  width: 22px;
  height: 4px;
  background: rgba(255,255,255,0.15);
  border-radius: 2px;
}

.pv-sc__cta {
  margin-left: auto !important;
  width: 36px !important;
  height: 14px !important;
  background: linear-gradient(90deg, #c8a840, #8b6914) !important;
  border-radius: 3px !important;
}

/* Headline text mockup */
.pv-sc__text {
  display: flex;
  flex-direction: column;
  gap: 5px;
  align-items: center;
  position: relative;
  z-index: 2;
}

.pv-sc__h {
  height: 5px;
  width: 90px;
  background: rgba(255,255,255,0.35);
  border-radius: 3px;
}

.pv-sc__h--gold {
  background: linear-gradient(90deg, rgba(200,168,64,0.8), rgba(200,168,64,0.4));
  width: 110px;
}

.pv-sc__sub {
  height: 3px;
  width: 70px;
  background: rgba(255,255,255,0.15);
  border-radius: 2px;
  margin-top: 2px;
}

/* Live badge & link */
.project-card--live {
  border-color: rgba(45,212,191,0.2);
}

.project-card__live-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-teal);
}

.live-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--color-teal);
  box-shadow: 0 0 6px var(--color-teal);
  animation: pulse 2s ease-in-out infinite;
  flex-shrink: 0;
}

.project-card__link {
  margin-top: 4px;
  align-self: flex-start;
  font-size: 0.82rem;
  padding: 8px 16px;
}

/* Project card body */
.project-card__body { padding: clamp(18px, 2.5vw, 28px); display: flex; flex-direction: column; gap: 12px; }

.project-card__cat {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-accent);
}

.project-card__title {
  font-family: var(--font-title);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--color-white);
  line-height: 1.3;
}

.project-card__desc {
  font-size: 0.87rem;
  color: var(--color-muted);
  line-height: 1.65;
}

.project-card__tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }

.tag {
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--color-muted);
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 100px;
  padding: 3px 10px;
  transition: color var(--transition-fast), border-color var(--transition-fast);
}

.tag--gold {
  color: var(--color-gold);
  background: rgba(214,180,106,0.08);
  border-color: rgba(214,180,106,0.2);
}

/* ═══════════════════════════════════════════════════════
   METHOD / TIMELINE
═══════════════════════════════════════════════════════ */
.method {
  background: radial-gradient(ellipse 60% 70% at 90% 50%, rgba(56,189,248,0.04) 0%, transparent 60%);
}

/* ─── Method tabs ─── */
.method__tabs {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin-bottom: clamp(20px, 2.5vw, 32px); /* tabs più vicine alla timeline */
}

.method__tab {
  flex: 0 0 auto;
  padding: 11px 32px;
  border-radius: 100px;
  font-family: var(--font-body);
  font-size: 0.88rem;
  font-weight: 600;
  border: 1.5px solid rgba(255,255,255,0.18); /* più leggibile della card-border (10%) */
  color: var(--color-muted);
  background: var(--card-bg);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  cursor: pointer;
  transition: color var(--transition), background var(--transition), border-color var(--transition), box-shadow var(--transition), filter var(--transition-fast);
  text-align: center;
  line-height: 1.4;
  white-space: nowrap;
}

.method__tab:hover {
  color: var(--color-white);
  border-color: rgba(56,189,248,0.35);
  background: rgba(56,189,248,0.06);
}

.method__tab--active {
  background: linear-gradient(135deg, var(--color-accent), var(--color-teal));
  color: var(--color-bg);
  border-color: transparent;
  box-shadow: 0 4px 20px rgba(56,189,248,0.3);
}

.method__tab--active:hover {
  color: var(--color-bg);
  filter: brightness(1.06);
  border-color: transparent;
  background: linear-gradient(135deg, var(--color-accent), var(--color-teal));
}

.method__tab:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 3px;
}

.timeline {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: clamp(12px, 2vw, 24px);
  position: relative;
  align-items: stretch; /* forza tutti gli step alla stessa altezza */
}

.timeline::before {
  content: '';
  position: absolute;
  top: 28px;
  left: 28px;
  right: 28px;
  height: 1px;
  background: linear-gradient(90deg, var(--color-accent), rgba(56,189,248,0.1));
  z-index: 0;
}

.timeline__step {
  display: flex;
  flex-direction: column;
  gap: 16px; /* numero più vicino alla card → connessione visiva più netta */
  position: relative;
}

.timeline__marker {
  display: flex;
  align-items: center;
  flex-direction: column;
  gap: 8px;
  position: relative;
  z-index: 1;
}

.timeline__number {
  font-family: var(--font-title);
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--color-bg);
  background: linear-gradient(135deg, var(--color-accent), var(--color-teal));
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: box-shadow var(--transition);
}

.timeline__step.visible .timeline__number {
  box-shadow: 0 0 0 8px rgba(56,189,248,0.1), 0 0 24px rgba(56,189,248,0.25);
}

.timeline__content {
  flex: 1;                        /* sale fino a riempire l'altezza dello step */
  display: flex;
  flex-direction: column;
  justify-content: flex-start;   /* testo ancorato in alto */
  min-height: 160px;             /* altezza minima morbida desktop */
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-md);
  padding: clamp(18px, 2vw, 24px);
  backdrop-filter: blur(12px);
  transition: border-color var(--transition), transform var(--transition), box-shadow var(--transition), opacity 0.18s ease;
}

.timeline__content:hover {
  border-color: var(--card-border-h);
  transform: translateY(-3px);
  box-shadow: var(--shadow-card), var(--shadow-glow);
}

.timeline.switching .timeline__content {
  opacity: 0.35;
}

.timeline__step.visible .timeline__content {
  border-color: rgba(56,189,248,0.2);
}

.timeline__title {
  font-family: var(--font-title);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--color-white);
  margin-bottom: 8px;
}

.timeline__text {
  font-size: 0.83rem;
  color: var(--color-muted);
  line-height: 1.6;
}

/* ═══════════════════════════════════════════════════════
   SKILLS — Orbital layout
═══════════════════════════════════════════════════════ */
.skills {
  background: radial-gradient(ellipse 60% 50% at 20% 50%, rgba(45,212,191,0.04) 0%, transparent 60%);
}

/* ─── Orbital container (desktop) ─── */
.skills__solar {
  position: relative;
  max-width: 800px;
  height: 740px;
  margin: 0 auto;
}

/* ─── SVG connector lines ─── */
.skills__connectors {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  overflow: visible;
}

/* stroke-width in CSS px; vector-effect keeps it device-pixel-sharp when SVG scales */
.skills__ray {
  stroke: rgba(56, 189, 248, 0.16);
  stroke-width: 1px;
  vector-effect: non-scaling-stroke;
  stroke-dasharray: 3 6;
}

/* ─── Orbital rings ─── */
.skills__orbit-ring {
  position: absolute;
  top: 50%;
  left: 50%;
  border-radius: 50%;
  pointer-events: none;
}

.skills__orbit-ring--inner {
  width: 190px;
  height: 190px;
  transform: translate(-50%, -50%);
  border: 1.5px solid rgba(56,189,248,0.18);
  animation: orbitSpin 24s linear infinite;
}

.skills__orbit-ring--outer {
  width: 594px;
  height: 594px;
  transform: translate(-50%, -50%);
  border: 1px dashed rgba(56,189,248,0.08);
  animation: orbitSpin 80s linear infinite reverse;
}

@keyframes orbitSpin {
  from { transform: translate(-50%, -50%) rotate(0deg); }
  to   { transform: translate(-50%, -50%) rotate(360deg); }
}

/* ─── Center hub ─── */
.skills__hub {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 3;
  pointer-events: none;
}

.skills__hub-outer {
  width: 148px;
  height: 148px;
  border-radius: 50%;
  border: 1px solid rgba(56,189,248,0.22);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: hubGlow 4s ease-in-out infinite;
}

.skills__hub-inner {
  width: 116px;
  height: 116px;
  border-radius: 50%;
  background: radial-gradient(circle at 40% 35%,
    rgba(56,189,248,0.14) 0%,
    rgba(7,17,31,0.9) 65%);
  border: 1.5px solid rgba(56,189,248,0.32);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  box-shadow: inset 0 0 20px rgba(56,189,248,0.06), 0 0 0 8px rgba(56,189,248,0.03);
}

.skills__hub-eyebrow {
  font-size: 0.55rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(56,189,248,0.5);
  display: block;
}

.skills__hub-label {
  font-family: var(--font-title);
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--color-accent);
  letter-spacing: 0.05em;
  text-align: center;
  line-height: 1.2;
}

@keyframes hubGlow {
  0%, 100% { box-shadow: 0 0 0 0 rgba(56,189,248,0), 0 0 20px rgba(56,189,248,0.08); }
  50%       { box-shadow: 0 0 0 10px rgba(56,189,248,0.04), 0 0 36px rgba(56,189,248,0.16); }
}

/* ─── Planet cards — absolute orbital positions ───────────────
   Container 800 × 740  •  Center (50%, 50%)  •  Radius 294px
   θ=  0° → top  9.6%, left 50%    (12 h)
   θ= 72° → top 37.8%, left 84.9%  ( 2 h)
   θ=144° → top 82.9%, left 71.6%  ( 5 h)
   θ=216° → top 82.9%, left 28.4%  ( 7 h)
   θ=288° → top 37.8%, left 15.1%  (10 h)
──────────────────────────────────────────────────────────── */
.skill-planet {
  position: absolute;
  width: 200px;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  padding: 18px 20px 20px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  cursor: pointer;
  text-align: left;
  font-family: inherit;
  color: inherit;
  z-index: 2;
  transition:
    border-color var(--transition),
    box-shadow var(--transition);
}

.skill-planet--1 { top:  9.6%; left: 50%;   }
.skill-planet--2 { top: 37.8%; left: 84.9%; }
.skill-planet--3 { top: 82.9%; left: 71.6%; }
.skill-planet--4 { top: 82.9%; left: 28.4%; }
.skill-planet--5 { top: 37.8%; left: 15.1%; }

/* Reveal animation: keep centering transform */
.skill-planet.reveal-up         { transform: translate(-50%, -50%) translateY(24px); }
.skill-planet.reveal-up.visible { transform: translate(-50%, -50%); }

/* Hover/focus: lift — keep centering transform */
@media (hover: hover) {
  .skill-planet:hover {
    border-color: rgba(56,189,248,0.4);
    box-shadow: 0 8px 32px rgba(0,0,0,0.4), 0 0 20px rgba(56,189,248,0.12);
    transform: translate(-50%, -50%) translateY(-4px);
  }
}

.skill-planet:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 3px;
  border-color: rgba(56,189,248,0.4);
  transform: translate(-50%, -50%) translateY(-4px);
}

.skill-planet[aria-expanded="true"] {
  border-color: rgba(56,189,248,0.35);
  box-shadow: 0 6px 24px rgba(0,0,0,0.35), 0 0 16px rgba(56,189,248,0.1);
}

/* ─── Card head: always visible ─── */
.skill-planet__head {
  display: flex;
  align-items: center;
  gap: 10px;
}

.skill-planet__icon {
  width: 32px;
  height: 32px;
  background: rgba(56,189,248,0.07);
  border: 1px solid rgba(56,189,248,0.12);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background var(--transition), border-color var(--transition);
}

@media (hover: hover) {
  .skill-planet:hover .skill-planet__icon { background: rgba(56,189,248,0.14); border-color: rgba(56,189,248,0.28); }
}
.skill-planet[aria-expanded="true"] .skill-planet__icon { background: rgba(56,189,248,0.14); border-color: rgba(56,189,248,0.28); }

.skill-planet__title {
  font-family: var(--font-title);
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--color-white);
  line-height: 1.25;
  margin: 0;
}

/* ─── Card body: collapsible pills ─── */
.skill-planet__body {
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  padding-top: 0;
  transition:
    max-height 0.32s cubic-bezier(0.4, 0, 0.2, 1),
    opacity 0.24s ease,
    padding-top 0.28s ease;
}

/* Hover expand — only real-hover devices */
@media (hover: hover) {
  .skill-planet:hover .skill-planet__body {
    max-height: 150px;
    opacity: 1;
    padding-top: 12px;
  }
}

/* Focus + click (aria-expanded) expand — all devices */
.skill-planet:focus-visible .skill-planet__body,
.skill-planet[aria-expanded="true"] .skill-planet__body {
  max-height: 150px;
  opacity: 1;
  padding-top: 12px;
}

/* ─── Pills ─── */
.skill-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.pill {
  font-size: 0.76rem;
  font-weight: 500;
  color: var(--color-muted);
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.09);
  border-radius: 100px;
  padding: 4px 11px;
  transition: color var(--transition-fast), background var(--transition-fast), border-color var(--transition-fast);
  cursor: default;
  user-select: none;
}

.pill:hover {
  color: var(--color-white);
  background: rgba(56,189,248,0.08);
  border-color: rgba(56,189,248,0.25);
}

.pill--accent {
  color: var(--color-teal);
  background: rgba(45,212,191,0.07);
  border-color: rgba(45,212,191,0.2);
}

/* ─── Reduced motion ─── */
@media (prefers-reduced-motion: reduce) {
  .skills__orbit-ring,
  .skills__hub-outer { animation: none !important; }
  .skill-planet__body { transition: none !important; }
}

/* ═══════════════════════════════════════════════════════
   EXPERIENCE TIMELINE
═══════════════════════════════════════════════════════ */
.experience {
  background: radial-gradient(ellipse 60% 60% at 80% 40%, rgba(56,189,248,0.04) 0%, transparent 60%);
}

.exp-timeline {
  display: flex;
  flex-direction: column;
  gap: 0;
  max-width: 840px;
  margin: 0 auto;
}

.exp-item {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 32px;
  align-items: start;
}

.exp-item__left {
  text-align: right;
  padding-top: 22px;
  position: relative;
}

.exp-item__year {
  font-family: var(--font-title);
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--color-accent);
  display: block;
}

.exp-item__line {
  position: absolute;
  top: 44px;
  right: -17px;
  bottom: -44px;
  width: 1px;
  background: linear-gradient(to bottom, var(--card-border), transparent);
}

.exp-item:last-child .exp-item__line { display: none; }

.exp-item__right {
  margin-bottom: 24px;
}

.exp-item__header {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 12px;
}

.exp-item__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
  margin-top: 5px;
}

.exp-item__dot--work { background: var(--color-accent); box-shadow: 0 0 8px rgba(56,189,248,0.5); }
.exp-item__dot--edu  { background: var(--color-teal);   box-shadow: 0 0 8px rgba(45,212,191,0.5); }

.exp-item__type {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-muted);
  display: block;
  margin-bottom: 2px;
}

.exp-item__org {
  font-family: var(--font-title);
  font-size: 1.02rem;
  font-weight: 700;
  color: var(--color-white);
}

.exp-item__desc {
  font-size: 0.88rem;
  color: var(--color-muted);
  line-height: 1.65;
  margin-bottom: 14px;
}

.exp-item__tags { display: flex; flex-wrap: wrap; gap: 6px; }

/* ═══════════════════════════════════════════════════════
   CV SECTION
═══════════════════════════════════════════════════════ */
.cv-section {
  background: radial-gradient(ellipse 70% 60% at 30% 50%, rgba(56,189,248,0.06) 0%, transparent 60%);
}

.cv-inner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: clamp(40px, 6vw, 80px);
  align-items: center;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-xl);
  padding: clamp(40px, 5vw, 64px);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  overflow: hidden;
  position: relative;
}

.cv-inner::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--color-accent), var(--color-teal), transparent);
}

.cv-text { display: flex; flex-direction: column; gap: 16px; }

.cv-text .section-title { text-align: left; margin-bottom: 0; }

.cv-text__sub {
  font-size: 1rem;
  color: var(--color-muted);
  line-height: 1.7;
  max-width: 480px;
}

.cv-text__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }

/* ── Glow download button ── */
.btn--glow {
  background: linear-gradient(135deg, var(--color-accent), var(--color-teal));
  color: #07111F;
  border-color: transparent;
  position: relative;
  overflow: hidden;
  font-size: 1rem;
  padding: 15px 32px;
  border-radius: 12px;
  font-weight: 700;
  letter-spacing: 0.02em;
  box-shadow:
    0 0 0 0 rgba(56,189,248,0),
    0 4px 20px rgba(56,189,248,0.25);
  animation: glowPulse 3s ease-in-out infinite;
  transition: transform 0.22s cubic-bezier(0.4,0,0.2,1),
              box-shadow 0.22s cubic-bezier(0.4,0,0.2,1),
              filter 0.22s;
}

.btn--glow::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.18), rgba(255,255,255,0));
  opacity: 0;
  transition: opacity 0.2s;
}

.btn--glow:hover {
  transform: translateY(-3px) scale(1.03);
  box-shadow:
    0 0 0 6px rgba(56,189,248,0.18),
    0 8px 32px rgba(56,189,248,0.45),
    0 0 60px rgba(45,212,191,0.2);
  filter: brightness(1.08);
  animation: none;
}

.btn--glow:hover::before { opacity: 1; }

.btn--glow:active {
  transform: translateY(-1px) scale(0.98);
  box-shadow:
    0 0 0 10px rgba(56,189,248,0.08),
    0 4px 16px rgba(56,189,248,0.5),
    0 0 80px rgba(45,212,191,0.3);
  filter: brightness(1.15);
  animation: glowBurst 0.4s ease-out forwards;
}

/* Ripple on click */
.btn--glow::after {
  content: '';
  position: absolute;
  inset: 50% 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255,255,255,0.3);
  transform: translate(-50%, -50%);
  transition: width 0.5s ease, height 0.5s ease, opacity 0.5s ease;
  opacity: 0;
}

.btn--glow:active::after {
  width: 300px;
  height: 300px;
  opacity: 0;
}

@keyframes glowPulse {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(56,189,248,0.0), 0 4px 20px rgba(56,189,248,0.25);
  }
  50% {
    box-shadow: 0 0 0 8px rgba(56,189,248,0.10), 0 4px 32px rgba(56,189,248,0.4), 0 0 40px rgba(45,212,191,0.15);
  }
}

@keyframes glowBurst {
  0%   { box-shadow: 0 0 0 0 rgba(56,189,248,0.5),  0 4px 16px rgba(56,189,248,0.5); }
  100% { box-shadow: 0 0 0 20px rgba(56,189,248,0.0), 0 4px 40px rgba(56,189,248,0.15); }
}

/* CV card */
.cv-preview { position: relative; }

.cv-card {
  position: relative;
  transform: rotate(3deg);
  transition: transform var(--transition);
}

.cv-card:hover { transform: rotate(0deg) scale(1.03); }

.cv-card__paper {
  width: 200px;
  min-height: 280px;
  background: rgba(18,50,74,0.7);
  border: 1px solid rgba(56,189,248,0.15);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(0,0,0,0.6);
  position: relative;
}

.cv-card__paper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cv-card__placeholder {
  padding: 20px 16px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.cvp-header { display: flex; flex-direction: column; gap: 6px; }
.cvp-name { height: 10px; background: rgba(248,250,252,0.85); border-radius: 5px; width: 70%; }
.cvp-title { height: 6px; background: #38BDF8; border-radius: 3px; width: 50%; }

.cvp-section { display: flex; flex-direction: column; gap: 5px; }
.cvp-section-label { height: 6px; background: rgba(56,189,248,0.4); border-radius: 3px; width: 45%; margin-bottom: 3px; }
.cvp-line { height: 5px; background: rgba(255,255,255,0.2); border-radius: 3px; }
.cvp-line--sm { width: 80%; }
.cvp-line--xs { width: 60%; }

.cv-card__glow {
  position: absolute;
  inset: -20px;
  background: radial-gradient(ellipse, rgba(56,189,248,0.15) 0%, transparent 70%);
  pointer-events: none;
  z-index: -1;
}

/* ═══════════════════════════════════════════════════════
   CONTACT
═══════════════════════════════════════════════════════ */

/* Justify via CSS (sovrascrivibile da media query mobile) */
.contact .section-sub { text-align: justify; }

.contact {
  background: radial-gradient(ellipse 60% 60% at 50% 40%, rgba(56,189,248,0.04) 0%, transparent 60%);
}

/* ── Three contact buttons ── */
.contact-service-banner {
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: 680px;
  margin: 0 auto 20px;
  padding: 10px 16px;
  background: rgba(56,189,248,0.07);
  border: 1px solid rgba(56,189,248,0.25);
  border-radius: 10px;
  font-size: 0.85rem;
  color: var(--color-muted);
}
.contact-service-banner svg { color: var(--color-accent); flex-shrink: 0; }
.contact-service-banner strong { color: var(--color-accent); }
.contact-service-banner[hidden] { display: none; }
#contact-service-clear {
  margin-left: auto;
  background: none;
  border: none;
  color: var(--color-muted);
  font-size: 1.2rem;
  cursor: pointer;
  line-height: 1;
  padding: 0 2px;
  transition: color var(--transition-fast);
}
#contact-service-clear:hover { color: var(--color-white); }

.contact-buttons {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 680px;
  margin: 0 auto 40px;
}

.contact-btn {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 22px 28px;
  border-radius: var(--radius-lg);
  border: 1.5px solid;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  text-decoration: none;
  position: relative;
  overflow: hidden;
  transition: transform 0.25s cubic-bezier(0.4,0,0.2,1),
              box-shadow 0.25s cubic-bezier(0.4,0,0.2,1),
              border-color 0.25s,
              background 0.25s;
}

/* Shine sweep on hover */
.contact-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 60%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.07), transparent);
  transition: left 0.5s ease;
  pointer-events: none;
}
.contact-btn:hover::before { left: 160%; }

.contact-btn:hover {
  transform: translateY(-4px) scale(1.01);
}

.contact-btn:active { transform: translateY(-1px) scale(0.99); }

.contact-btn:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 3px;
}

/* ─ Email — azzurro ─ */
.contact-btn--email {
  background: rgba(56,189,248,0.05);
  border-color: rgba(56,189,248,0.22);
  color: #7dd3fc;
  animation: glowEmail 4s ease-in-out infinite;
}
.contact-btn--email:hover {
  background: rgba(56,189,248,0.1);
  border-color: rgba(56,189,248,0.5);
  box-shadow: 0 0 0 4px rgba(56,189,248,0.08),
              0 8px 32px rgba(56,189,248,0.25),
              0 0 60px rgba(56,189,248,0.1);
}
@keyframes glowEmail {
  0%,100% { box-shadow: 0 0 0 0 rgba(56,189,248,0), 0 4px 16px rgba(56,189,248,0.1); }
  50%      { box-shadow: 0 0 0 6px rgba(56,189,248,0.07), 0 4px 24px rgba(56,189,248,0.2); }
}

/* ─ WhatsApp — verde ─ */
.contact-btn--whatsapp {
  background: rgba(37,211,102,0.05);
  border-color: rgba(37,211,102,0.22);
  color: #4ade80;
  animation: glowWA 4s ease-in-out infinite 0.8s;
}
.contact-btn--whatsapp:hover {
  background: rgba(37,211,102,0.1);
  border-color: rgba(37,211,102,0.5);
  box-shadow: 0 0 0 4px rgba(37,211,102,0.08),
              0 8px 32px rgba(37,211,102,0.25),
              0 0 60px rgba(37,211,102,0.1);
}
@keyframes glowWA {
  0%,100% { box-shadow: 0 0 0 0 rgba(37,211,102,0), 0 4px 16px rgba(37,211,102,0.1); }
  50%      { box-shadow: 0 0 0 6px rgba(37,211,102,0.07), 0 4px 24px rgba(37,211,102,0.2); }
}

/* ─ LinkedIn — blu ─ */
.contact-btn--linkedin {
  background: rgba(10,102,194,0.07);
  border-color: rgba(10,102,194,0.3);
  color: #60a5fa;
  animation: glowLI 4s ease-in-out infinite 1.6s;
}
.contact-btn--linkedin:hover {
  background: rgba(10,102,194,0.12);
  border-color: rgba(10,102,194,0.55);
  box-shadow: 0 0 0 4px rgba(10,102,194,0.08),
              0 8px 32px rgba(10,102,194,0.25),
              0 0 60px rgba(10,102,194,0.1);
}
@keyframes glowLI {
  0%,100% { box-shadow: 0 0 0 0 rgba(10,102,194,0), 0 4px 16px rgba(10,102,194,0.1); }
  50%      { box-shadow: 0 0 0 6px rgba(10,102,194,0.08), 0 4px 24px rgba(10,102,194,0.2); }
}

/* Icon wrapper */
.contact-btn__icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background var(--transition-fast), border-color var(--transition-fast);
}
.contact-btn:hover .contact-btn__icon {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.15);
}

/* Text */
.contact-btn__text {
  display: flex;
  flex-direction: column;
  gap: 3px;
  flex: 1;
  min-width: 0;
}

.contact-btn__label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  opacity: 0.7;
}

.contact-btn__value {
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-white);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Arrow */
.contact-btn__arrow {
  flex-shrink: 0;
  opacity: 0.4;
  transition: opacity var(--transition-fast), transform var(--transition-fast);
}
.contact-btn:hover .contact-btn__arrow {
  opacity: 1;
  transform: translateX(4px);
}

/* Quote note */
.contact-note {
  font-size: 0.92rem;
  color: var(--color-muted);
  line-height: 1.7;
  font-style: italic;
  padding: clamp(20px, 2.5vw, 32px);
  max-width: 680px;
  margin: 0 auto;
  text-align: center;
}

.contact-note em { color: var(--color-accent); font-style: italic; }

.contact-note__author {
  display: block;
  margin-top: 12px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--color-accent);
  font-style: normal;
}

/* Responsive contact */
@media (max-width: 480px) {
  .contact-btn { padding: 18px 20px; gap: 14px; }
  .contact-btn__icon { width: 44px; height: 44px; }
  .contact-btn__value { font-size: 0.88rem; }
}

/* ═══════════════════════════════════════════════════════
   FOOTER
═══════════════════════════════════════════════════════ */
.footer {
  border-top: 1px solid var(--card-border);
  padding-top: 56px;
}

.footer__inner {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 40px;
  align-items: center;
  padding-bottom: 40px;
}

.footer__logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-title);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--color-white);
  margin-bottom: 6px;
  transition: opacity var(--transition-fast);
}
.footer__logo:hover { opacity: 0.8; }

.footer__logo-img {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.footer__tagline {
  font-size: 0.83rem;
  color: var(--color-muted);
}

.footer__nav {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
}

.footer__link {
  font-size: 0.85rem;
  color: var(--color-muted);
  padding: 6px 12px;
  border-radius: 8px;
  transition: color var(--transition-fast), background var(--transition-fast);
}
.footer__link:hover { color: var(--color-white); background: rgba(255,255,255,0.05); }

.footer__social { display: flex; gap: 10px; }

.footer__social-link {
  width: 38px;
  height: 38px;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-muted);
  transition: color var(--transition-fast), border-color var(--transition-fast), background var(--transition-fast);
}
.footer__social-link:hover {
  color: var(--color-accent);
  border-color: rgba(56,189,248,0.3);
  background: rgba(56,189,248,0.06);
}
.footer__social-link:focus-visible { outline: 2px solid var(--color-accent); outline-offset: 2px; border-radius: 10px; }

.footer__bottom {
  border-top: 1px solid rgba(255,255,255,0.05);
  padding: 20px 0;
}

.footer__bottom p {
  font-size: 0.78rem;
  color: rgba(203,213,225,0.4);
  text-align: center;
}

/* ═══════════════════════════════════════════════════════
   REVEAL ANIMATIONS
═══════════════════════════════════════════════════════ */
.reveal-up,
.reveal-left,
.reveal-right {
  opacity: 0;
  transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1),
              transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: opacity, transform;
}

.reveal-up    { transform: translateY(32px); }
.reveal-left  { transform: translateX(-28px); }
.reveal-right { transform: translateX(28px); }

.reveal-up.visible,
.reveal-left.visible,
.reveal-right.visible {
  opacity: 1;
  transform: translate(0);
}

.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.22s; }
.delay-3 { transition-delay: 0.34s; }
.delay-4 { transition-delay: 0.46s; }

/* ═══════════════════════════════════════════════════════
   RESPONSIVE — TABLET
═══════════════════════════════════════════════════════ */
@media (max-width: 1024px) {
  .hero__inner {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero__sub { max-width: 100%; }
  .hero__cta { justify-content: center; }
  .hero__stats { justify-content: center; }

  .hero__profile {
    order: -1;
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
    min-height: 380px;
  }

  .about__grid {
    grid-template-columns: 1fr;
  }

  .about__photo-wrap {
    position: static;
    flex-direction: row;
    align-items: center;
    gap: 24px;
  }

  .about__photo { width: 140px; height: 160px; }

  .about__cards { grid-template-columns: repeat(2, 1fr); }
  .about__cards .card:last-child:nth-child(odd) { grid-column: 1 / -1; max-width: calc(50% - 12px); margin: 0 auto; width: 100%; }
  .what__grid   { grid-template-columns: 1fr 1fr; }
  .what__grid .what-card:last-child:nth-child(odd) { grid-column: 1 / -1; max-width: calc(50% - 12px); margin: 0 auto; width: 100%; }
  .services__grid { grid-template-columns: 1fr 1fr; }
  .services__grid .service-card:last-child { grid-column: 1 / -1; max-width: 480px; margin: 0 auto; width: 100%; }
  .projects__grid { grid-template-columns: 1fr; }
  .project-card__visual--img { height: clamp(200px, 26vw, 260px); }
  /* skills__solar rimane orbitale su tablet — nessuna modifica */
  .contact__grid { grid-template-columns: 1fr; }

  .timeline {
    grid-template-columns: 1fr 1fr;
    gap: 24px;
  }
  .timeline::before { display: none; }
  /* 5° step solo in riga 3 → centralo */
  .timeline__step:last-child:nth-child(odd) {
    grid-column: 1 / -1;
    max-width: calc(50% - 12px);
    margin: 0 auto;
  }

  .cv-inner { grid-template-columns: 1fr; text-align: center; }
  .cv-text .section-title { text-align: center; }
  .cv-text__cta { justify-content: center; }
  .cv-preview { display: flex; justify-content: center; }

  .footer__inner { grid-template-columns: 1fr; gap: 24px; text-align: center; }
  .footer__nav { justify-content: center; }
  .footer__social { justify-content: center; }
}

/* ═══════════════════════════════════════════════════════
   RESPONSIVE — MOBILE
═══════════════════════════════════════════════════════ */
@media (max-width: 768px) {
  /* Riduce lo spazio verticale tra sezioni su mobile */
  :root { --section-gap: 56px; }

  .navbar__nav,
  .navbar__cta { display: none; }

  .navbar__hamburger { display: flex; }

  /* Hero */
  .hero { padding-top: 72px; }
  .hero__inner {
    padding-top: 20px;
    padding-bottom: 48px;
  }
  .hero__headline { font-size: clamp(1.7rem, 7vw, 2.4rem); }
  .hero__cta {
    margin-bottom: 28px;
    flex-direction: column;
    align-items: center;
  }

  /* Touch targets — minimo 44px per tutti i bottoni */
  .btn { min-height: 44px; }

  /* Hero profile: nasconde decorazioni che causano overflow */
  .hero__profile {
    min-height: auto;
    overflow: hidden;
  }
  .profile-bg-ring { display: none; }
  .profile-badge   { display: none; }
  .profile-card    { min-width: 0; width: 240px; }

  /* About */
  .about__cards { grid-template-columns: 1fr; }
  .about__photo-wrap {
    flex-direction: column;
    align-items: center;
  }
  .about__photo { width: 180px; height: 220px; }

  /* Cosa faccio */
  .what__grid { grid-template-columns: 1fr; }
  .what__grid .what-card:last-child:nth-child(odd) { grid-column: auto; max-width: 100%; margin: 0; }
  .about__cards .card:last-child:nth-child(odd)    { grid-column: auto; max-width: 100%; margin: 0; }

  /* Servizi */
  .services__grid { grid-template-columns: 1fr; }
  .services__grid .service-card:last-child { max-width: 100%; }
  .service-card {
    gap: 16px;
    padding: 20px;
  }
  .service-card__cta {
    width: 100%;
    justify-content: center;
    white-space: normal;
    text-align: center;
  }

  /* Competenze — layout verticale */
  .skills__solar {
    position: static;
    height: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
  }
  .skills__connectors,
  .skills__orbit-ring { display: none; }
  .skills__hub {
    position: static;
    transform: none;
    margin-bottom: 8px;
  }
  .skills__hub-outer { width: 110px; height: 110px; }
  .skills__hub-inner { width: 88px; height: 88px; }
  .skills__hub-eyebrow { font-size: 0.5rem; }
  .skills__hub-label { font-size: 0.72rem; }
  .skill-planet {
    position: static !important;
    width: 100% !important;
    transform: none !important;
  }
  .skill-planet.reveal-up        { transform: translateY(28px) !important; }
  .skill-planet.reveal-up.visible { transform: none !important; }
  .skill-planet[aria-expanded="true"] .skill-planet__body {
    max-height: 200px;
    opacity: 1;
    padding-top: 12px;
  }

  /* Metodo — timeline e tab */
  .timeline { grid-template-columns: 1fr; }
  .timeline__content { min-height: 0; }
  .timeline__step:last-child:nth-child(odd) {
    grid-column: auto;
    max-width: none;
    margin: 0;
  }
  .method__tabs { flex-direction: column; align-items: stretch; }
  .method__tab  { flex: 0 0 auto; white-space: normal; text-align: center; }

  /* CV */
  .devices-mockup { flex-direction: column; align-items: center; }
  .device--desktop { width: 100%; max-width: 380px; }
  .device--tablet,
  .device--mobile { display: none; }
  .exp-item { grid-template-columns: 72px 1fr; gap: 12px; }

  /* Immagini progetti: aspect-ratio 16/9 per evitare crop su mobile */
  .project-card__visual--img {
    height: auto;
    aspect-ratio: 16 / 9;
  }

  /* Contatti */
  .form-row { grid-template-columns: 1fr; }
  .contact__grid { grid-template-columns: 1fr; }

  /* Testo giustificato: rimuovere su mobile — crea fiumi bianchi su schermi stretti */
  .services-hero-copy .section-sub { text-align: left; }
  .contact .section-sub            { text-align: center; }
}

@media (max-width: 480px) {
  .section-title { font-size: 1.6rem; }
  .hero__headline { font-size: clamp(1.55rem, 8vw, 2rem); }

  /* Bottoni hero affiancati su mobile piccolo → stack */
  .hero__cta { flex-direction: column; align-items: stretch; }
  .hero__cta .btn { width: 100%; justify-content: center; }

  /* Skill pills più piccole */
  .pill { font-size: 0.72rem; padding: 4px 9px; }
}

/* ═══════════════════════════════════════════════
   EMAIL MODAL
═══════════════════════════════════════════════ */

.email-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(7, 17, 31, 0.72);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 0 12px 12px;
  opacity: 0;
  transition: opacity 0.25s ease;
}

.email-modal-overlay:not([hidden]) {
  display: flex;
}

.email-modal-overlay[hidden] {
  display: none;
}

.email-modal-overlay.is-visible {
  opacity: 1;
}

.email-modal {
  width: 100%;
  max-width: 480px;
  background: #0e1e30;
  border: 1.5px solid rgba(56,189,248,0.18);
  border-radius: 20px;
  padding: 28px 20px 20px;
  transform: translateY(24px);
  transition: transform 0.3s cubic-bezier(0.34,1.56,0.64,1);
  box-shadow: 0 -4px 40px rgba(0,0,0,0.5), 0 0 0 1px rgba(56,189,248,0.06);
}

.email-modal-overlay.is-visible .email-modal {
  transform: translateY(0);
}

.email-modal__title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-muted);
  text-align: center;
  margin: 0 0 20px;
  letter-spacing: 0.01em;
}

.email-modal__options {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.email-modal__option {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1.5px solid rgba(255,255,255,0.07);
  background: rgba(255,255,255,0.03);
  text-decoration: none;
  color: var(--color-white);
  cursor: pointer;
  transition: background 0.18s, border-color 0.18s, transform 0.15s;
  width: 100%;
  text-align: left;
  font-family: inherit;
}

.email-modal__option:hover,
.email-modal__option:focus-visible {
  background: rgba(56,189,248,0.07);
  border-color: rgba(56,189,248,0.28);
  transform: translateY(-1px);
  outline: none;
}

.email-modal__option:active { transform: scale(0.98); }

.email-modal__option--copy {
  font-size: inherit;
}

.email-modal__opt-icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(255,255,255,0.04);
  display: flex;
  align-items: center;
  justify-content: center;
}

.email-modal__opt-text {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.email-modal__opt-label {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--color-white);
}

.email-modal__opt-sub {
  font-size: 0.78rem;
  color: var(--color-muted);
}

.email-modal__opt-arrow {
  flex-shrink: 0;
  color: var(--color-muted);
  opacity: 0.5;
  transition: opacity 0.15s, transform 0.15s;
}

.email-modal__option:hover .email-modal__opt-arrow {
  opacity: 1;
  transform: translateX(2px);
}

.email-modal__cancel {
  display: block;
  width: 100%;
  margin-top: 12px;
  padding: 13px;
  border-radius: 12px;
  border: none;
  background: rgba(255,255,255,0.05);
  color: var(--color-muted);
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.18s, color 0.18s;
}

.email-modal__cancel:hover { background: rgba(255,255,255,0.09); color: var(--color-white); }
.email-modal__cancel:focus-visible { outline: 2px solid var(--color-accent); outline-offset: 2px; }

/* Desktop: modal centrato invece di bottom sheet */
@media (min-width: 640px) {
  .email-modal-overlay {
    align-items: center;
    padding: 20px;
  }
  .email-modal {
    transform: scale(0.95) translateY(0);
  }
  .email-modal-overlay.is-visible .email-modal {
    transform: scale(1) translateY(0);
  }
}

/* ─── Services microcopy ─── */
.services__microcopy,
.services__note {
  text-align: center;
  max-width: 56ch;
  margin-inline: auto;
}

.services__microcopy {
  margin-top: 40px;
  font-size: 0.92rem;
  color: var(--color-text);
  opacity: 0.72;
  line-height: 1.6;
}

.services__note {
  margin-top: 10px;
  font-size: 0.82rem;
  color: var(--color-muted);
  opacity: 0.6;
  line-height: 1.6;
}
