/* ========================================
   1. VARIABLES & RESET
   ======================================== */
:root {
  --deep-blue: #0b0f1a;
  --graphite: #111827;
  --violet: #2d1b3d;
  --petrol: #0f3d3e;
  --amber: #ffb86b;
  --cyan: #6ee7ff;
  --text-primary: #e8e6e3;
  --text-secondary: #9ca3af;
  --text-muted: #6b7280;
  --glass-bg: rgba(17, 24, 39, 0.6);
  --glass-border: rgba(110, 231, 255, 0.08);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scrollbar-width: thin;
  scrollbar-color: var(--amber) var(--graphite);
}

html::-webkit-scrollbar {
  width: 6px;
}

html::-webkit-scrollbar-track {
  background: var(--graphite);
}

html::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--amber), var(--violet));
  border-radius: 3px;
}

body {
  font-family:
    "Inter",
    -apple-system,
    BlinkMacSystemFont,
    sans-serif;
  background-color: var(--deep-blue);
  color: var(--text-primary);
  overflow-x: hidden;
  line-height: 1.7;
}

/* ========================================
   2. NAVIGATION
   ======================================== */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 1.2rem 3rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  backdrop-filter: blur(0px);
}

.nav.scrolled {
  padding: 0.8rem 3rem;
  -webkit-backdrop-filter: blur(20px) saturate(180%); /* ✅ AGGIUNGI QUESTO */
  backdrop-filter: blur(20px) saturate(180%);
  background: rgba(11, 15, 26, 0.85);
  border-bottom: 1px solid var(--glass-border);
}

.nav-logo {
  font-family: "Libre Baskerville", serif;
  font-size: 1.4rem;
  font-weight: 400;
  letter-spacing: 0.15em;
  color: var(--text-primary);
  text-decoration: none;
  text-transform: uppercase;
}

.nav-logo span {
  color: var(--amber);
}

.nav-links {
  display: flex;
  gap: 2.5rem;
  list-style: none;
  align-items: center;
}

.nav-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.8rem;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transition: color 0.3s ease;
  position: relative;
}

.nav-links a::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--cyan);
  transition: width 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.nav-links a:hover {
  color: var(--cyan);
}

.nav-links a:hover::after {
  width: 100%;
}

.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  z-index: 1001;
}

.nav-hamburger span {
  width: 24px;
  height: 1.5px;
  background: var(--text-primary);
  transition: all 0.3s ease;
}

.nav-hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 4px);
}

.nav-hamburger.active span:nth-child(2) {
  opacity: 0;
}

.nav-hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -4px);
}

.mobile-menu {
   display: none;
  position: fixed;
  inset: 0;
  background: rgba(11, 15, 26, 0.97);
  -webkit-backdrop-filter: blur(30px); 
  backdrop-filter: blur(30px);
  z-index: 999;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 2rem;
  opacity: 0;
  transition: opacity 0.5s ease;
}

.mobile-menu.active {
  display: flex;
  opacity: 1;
}

.mobile-menu a {
  color: var(--text-primary);
  text-decoration: none;
  font-family: "Libre Baskerville", serif;
  font-size: 2rem;
  font-weight: 400;
  letter-spacing: 0.1em;
  transition: color 0.3s ease;
}

.mobile-menu a:hover {
  color: var(--cyan);
}

/* ========================================
   3. HERO SECTION
   ======================================== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.35) contrast(1.1) saturate(0.9);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(11, 15, 26, 0.9) 0%,
    rgba(45, 27, 61, 0.4) 50%,
    rgba(11, 15, 26, 0.8) 100%
  );
  z-index: 1;
}

.hero-grid-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  opacity: 0.03;
  background-image:
    linear-gradient(rgba(110, 231, 255, 0.3) 1px, transparent 1px),
    linear-gradient(90deg, rgba(110, 231, 255, 0.3) 1px, transparent 1px);
  background-size: 60px 60px;
  animation: gridMove 20s linear infinite;
}

.hero-waveform {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 120px;
  z-index: 2;
  opacity: 0.15;
}

.hero-content {
  position: relative;
  z-index: 3;
  padding: 0 5%;
  max-width: 1400px;
  margin: 0 auto;
  width: 100%;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-family: "Space Mono", monospace;
  font-size: clamp(0.6rem, 1.5vw, 0.7rem);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 1.5rem;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 1s 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.hero-tag::before {
  content: "";
  width: 40px;
  height: 1px;
  background: var(--cyan);
}

.hero-title {
  font-family: "Libre Baskerville", serif;
  font-size: clamp(2.8rem, 9vw, 7.5rem); /* ✅ Minimo 44.8px su qualsiasi mobile */
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin-bottom: 1.5rem;
  opacity: 0;
  transform: translateY(40px);
  animation: fadeUp 1.2s 0.7s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.hero-title .highlight {
  background: linear-gradient(135deg, var(--cyan), var(--amber));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-family: "Inter", sans-serif;
  font-size: clamp(0.85rem, 2vw, 1.15rem); /* ✅ Più leggibile su mobile */
  font-weight: 300;
  color: var(--text-secondary);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 2.5rem;
  opacity: 0;
  transform: translateY(30px);
  animation: fadeUp 1s 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.hero-subtitle span.separator {
  margin: 0 0.5rem;
  color: var(--amber);
  opacity: 0.6;
}

.hero-ctas {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  opacity: 0;
  transform: translateY(30px);
  animation: fadeUp 1s 1.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.hero-scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  opacity: 0;
  animation: fadeUp 1s 1.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.hero-scroll-indicator span {
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(180deg, var(--cyan), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}

/* ========================================
   4. BUTTONS
   ======================================== */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 2.2rem;
  background: linear-gradient(135deg, var(--cyan), #4fc3f7);
  color: var(--deep-blue);
  font-family: "Inter", sans-serif;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  border: none;
  border-radius: 2px;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
}

.btn-primary::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--amber), #ff9800);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.btn-primary:hover::before {
  opacity: 1;
}

.btn-primary span,
.btn-primary svg {
  position: relative;
  z-index: 1;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 40px rgba(110, 231, 255, 0.3);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 2.2rem;
  background: transparent;
  color: var(--text-primary);
  font-family: "Inter", sans-serif;
  font-size: 0.8rem;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  border: 1px solid rgba(232, 230, 227, 0.2);
  border-radius: 2px;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-secondary:hover {
  border-color: var(--cyan);
  color: var(--cyan);
  transform: translateY(-2px);
  box-shadow: 0 10px 40px rgba(110, 231, 255, 0.1);
}

/* ========================================
   5. SECTIONS COMMON
   ======================================== */
.section {
  padding: 4rem 5%;
  position: relative;
}

.section-container {
  max-width: 1400px;
  margin: 0 auto;
}

.section-header {
  margin-bottom: 0.5rem;
}

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-family: "Space Mono", monospace;
  font-size: 0.65rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 1.5rem;
}

.section-tag::before {
  content: "";
  width: 30px;
  height: 1px;
  background: var(--cyan);
}

.section-title {
  font-family: "Libre Baskerville", serif;
  font-size: clamp(2.2rem, 4vw, 3.5rem);
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: -0.01em;
  margin-bottom: 2rem;
}

.section-title .accent {
  color: var(--amber);
}

/* ========================================
   6. ABOUT SECTION
   ======================================== */
.about {
  background: linear-gradient(
    180deg,
    var(--deep-blue) 0%,
    var(--graphite) 50%,
    var(--deep-blue) 100%
  );
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 5rem;
  align-items: center;
}

.about-image-wrapper {
  position: relative;
  border-radius: 4px;
  overflow: hidden;
}

.about-image-wrapper::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: 4px;
  padding: 1px;
  background: linear-gradient(135deg, var(--cyan), var(--violet), var(--amber));
  -webkit-mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0.5;
  z-index: 1;
}

.about-image-wrapper img {
  width: 100%;
  height: 500px;
  object-fit: cover;
  display: block;
  filter: brightness(1.2) contrast(1);
  transition: filter 0.6s ease;
}

.about-image-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 2rem;
  background: linear-gradient(transparent, rgba(11, 15, 26, 0.9));
}

.about-stats {
  display: flex;
  justify-content: space-around;
  gap: 2rem;
  width: 100%;
}

.stat {
  text-align: center;
  flex: 1;
  min-width: 80px;
}

.stat-number {
  font-family: "Libre Baskerville", serif;
  font-size: 2rem;
  font-weight: 700;
  color: var(--amber);
  line-height: 1;
}

.stat-label {
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-secondary);
  margin-top: 0.3rem;
}

.about-text p {
  color: var(--text-secondary);
  font-size: 1rem;
  line-height: 1.8;
  margin-bottom: 1.5rem;
}

/* Enfasi visiva su nomi chiave */
.about-text strong {
  color: var(--text-primary);
  font-weight: 500;
}

.about-text em {
  color: var(--cyan);
  font-style: italic;
}

/* Prima lettera stilizzata (drop cap) - solo sul primo paragrafo */
.about-text p:first-of-type::first-letter {
  font-family: "Libre Baskerville", serif;
  font-size: 3.5rem;
  float: left;
  line-height: 1;
  margin-right: 0.5rem;
  margin-top: 0.2rem;
  color: var(--amber);
  font-weight: 700;
}

.about-skills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2rem;
}

.skill-tag {
  padding: 0.5rem 1.2rem;
  background: rgba(110, 231, 255, 0.05);
  border: 1px solid rgba(110, 231, 255, 0.1);
  border-radius: 2px;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  color: var(--text-secondary);
  transition: all 0.3s ease;
}

.skill-tag:hover {
  background: rgba(110, 231, 255, 0.1);
  border-color: rgba(110, 231, 255, 0.3);
  color: var(--cyan);
}

/* ========================================
   7. PRESS SECTION
   ======================================== */
.press {
  background: linear-gradient(
    180deg,
    var(--deep-blue) 0%,
    var(--graphite) 100%
  );
}

.press-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

.press-card {
  position: relative;
  display: block;
  padding: 2.5rem;
  background: rgba(17, 24, 39, 0.4);
  border: 1px solid rgba(110, 231, 255, 0.08);
  border-radius: 4px;
  text-decoration: none;
  color: var(--text-primary);
  overflow: hidden;
  transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
}

.press-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--cyan), var(--amber));
  transition: width 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.press-card:hover::before {
  width: 100%;
}

.press-card:hover {
  transform: translateY(-6px);
  border-color: rgba(110, 231, 255, 0.2);
  background: rgba(17, 24, 39, 0.7);
  box-shadow:
    0 20px 60px rgba(0, 0, 0, 0.4),
    0 0 40px rgba(110, 231, 255, 0.08);
}

.press-card-inner {
  position: relative;
  z-index: 1;
}

.press-glow {
  position: absolute;
  top: -50%;
  right: -20%;
  width: 300px;
  height: 300px;
  background: radial-gradient(
    circle,
    rgba(110, 231, 255, 0.08),
    transparent 70%
  );
  opacity: 0;
  transition: opacity 0.5s ease;
  pointer-events: none;
}

.press-card:hover .press-glow {
  opacity: 1;
}

.press-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(110, 231, 255, 0.08);
}

.press-source {
  font-family: "Space Mono", monospace;
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--cyan);
}

.press-date {
  font-family: "Space Mono", monospace;
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.press-title {
  font-family: "Libre Baskerville", serif;
  font-size: 1.8rem;
  font-weight: 400;
  line-height: 1.2;
  margin-bottom: 1rem;
  color: var(--text-primary);
  transition: color 0.3s ease;
}

.press-card:hover .press-title {
  color: var(--amber);
}

.press-subtitle {
  font-family: "Inter", sans-serif;
  font-size: 0.9rem;
  line-height: 1.7;
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
}

.press-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: "Inter", sans-serif;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--cyan);
  transition: gap 0.3s ease;
}

.press-card:hover .press-link {
  gap: 0.9rem;
}

.press-link svg {
  transition: transform 0.3s ease;
}

.press-card:hover .press-link svg {
  transform: translate(2px, -2px);
}

/* ========================================
   8. PORTFOLIO SECTION
   ======================================== */
.portfolio {
  background: var(--deep-blue);
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.portfolio-card {
  position: relative;
  border-radius: 4px;
  overflow: hidden;
  background: var(--graphite);
  border: 1px solid rgba(110, 231, 255, 0.05);
  transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
}

.portfolio-card:hover {
  transform: translateY(-8px);
  border-color: rgba(110, 231, 255, 0.15);
  box-shadow:
    0 20px 60px rgba(0, 0, 0, 0.4),
    0 0 40px rgba(110, 231, 255, 0.05);
}

.portfolio-card.featured {
  grid-column: span 2;
  grid-row: span 2;
}

.portfolio-thumbnail {
  position: relative;
  width: 100%;
  background-size: cover;
  aspect-ratio: 16/10;
  overflow: hidden;
}

.portfolio-card.featured .portfolio-thumbnail {
  aspect-ratio: 16/9;
}

.portfolio-thumbnail img,
.portfolio-thumbnail iframe {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition:
    transform 0.8s cubic-bezier(0.16, 1, 0.3, 1),
    filter 0.8s ease;
  filter: brightness(0.85) saturate(0.9);
  will-change: transform;
}

.portfolio-card:hover .portfolio-thumbnail img,
.portfolio-card:hover .portfolio-thumbnail iframe {
  transform: scale(1.05);
  filter: brightness(1) saturate(1);
}

.portfolio-thumbnail-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(transparent 40%, rgba(11, 15, 26, 0.95) 100%);
}

.portfolio-play-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.8);
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: rgba(110, 231, 255, 0.15);
  border: 1px solid rgba(110, 231, 255, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  backdrop-filter: blur(10px);
}

.portfolio-card:hover .portfolio-play-btn {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.portfolio-play-btn svg {
  fill: var(--cyan);
  width: 20px;
  height: 20px;
  margin-left: 3px;
}

.portfolio-info {
  padding: 1.5rem;
}

.portfolio-role {
  font-family: "Space Mono", monospace;
  font-size: 0.6rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 0.5rem;
}

.portfolio-title {
  font-family: "Libre Baskerville", serif;
  font-size: 1.3rem;
  font-weight: 400;
  margin-bottom: 0.5rem;
  line-height: 1.3;
}

.portfolio-card.featured .portfolio-title {
  font-size: 1.8rem;
}

.portfolio-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 1rem;
}

/* ========================================
   9. SERVICES + CAROUSEL
   ======================================== */
.services {
  background: linear-gradient(
    180deg,
    var(--deep-blue) 0%,
    var(--graphite) 100%
  );
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.carousel-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0 1rem;
}

.carousel-viewport {
  flex: 1;
  overflow: hidden;
  border-radius: 4px;
}

.carousel-track {
  display: flex;
  gap: 2rem;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform;
}

.carousel-slide {
  flex: 0 0 calc((100% - 4rem) / 3);
  min-width: 0;
}

.carousel-btn {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid rgba(110, 231, 255, 0.2);
  background: rgba(17, 24, 39, 0.6);
  color: var(--cyan);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  flex-shrink: 0;
  backdrop-filter: blur(10px);
}

.carousel-btn:hover {
  background: rgba(110, 231, 255, 0.1);
  border-color: var(--cyan);
  transform: scale(1.1);
}

.carousel-btn:disabled {
  opacity: 0.3;
  cursor: not-allowed;
  transform: none;
}

.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 2rem;
}

.carousel-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(110, 231, 255, 0.2);
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  padding: 0;
}

.carousel-dot.active {
  background: var(--cyan);
  width: 24px;
  border-radius: 4px;
  box-shadow: 0 0 10px rgba(110, 231, 255, 0.5);
}

.service-card {
  padding: 3rem 2rem;
  background: rgba(17, 24, 39, 0.4);
  border: 1px solid rgba(110, 231, 255, 0.05);
  border-radius: 4px;
  text-align: center;
  transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--cyan), var(--amber));
  transition: width 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.service-card:hover::before {
  width: 100%;
}

.service-card:hover {
  transform: translateY(-5px);
  border-color: rgba(110, 231, 255, 0.1);
  background: rgba(17, 24, 39, 0.6);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.service-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 1.5rem;
  border-radius: 50%;
  background: rgba(110, 231, 255, 0.05);
  border: 1px solid rgba(110, 231, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.4s ease;
}

.service-card:hover .service-icon {
  background: rgba(110, 231, 255, 0.1);
  border-color: rgba(110, 231, 255, 0.2);
  box-shadow: 0 0 30px rgba(110, 231, 255, 0.1);
}

.service-icon img {
  width: 40px;
  height: 40px;
  object-fit: contain;
  filter: brightness(0.9) saturate(0.8);
}

.service-title {
  font-family: "Libre Baskerville", serif;
  font-size: 1.5rem;
  font-weight: 400;
  margin-bottom: 1rem;
}

.service-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.7;
}

/* ========================================
   10. TEACHING SECTION
   ======================================== */
.teaching {
  background: var(--graphite);
  position: relative;
  overflow: hidden;
}

.teaching::before {
  content: "";
  position: absolute;
  top: -50%;
  right: -20%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(45, 27, 61, 0.3), transparent 70%);
  pointer-events: none;
}

.teaching-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 5rem;
  align-items: center;
}

.teaching-content .section-header {
  margin-bottom: 2rem;
}

.teaching-features {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-top: 2rem;
}

.teaching-feature {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.feature-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(110, 231, 255, 0.08);
  border: 1px solid rgba(110, 231, 255, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 1rem;
}

.feature-text h4 {
  font-family: "Inter", sans-serif;
  font-size: 0.95rem;
  font-weight: 500;
  margin-bottom: 0.3rem;
}

.feature-text p {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.teaching-image-wrapper {
  position: relative;
  border-radius: 4px;
  overflow: hidden;
}

.teaching-image-wrapper img {
  width: 100%;
  height: 450px;
  object-fit: cover;
  display: block;
  filter: brightness(0.75) contrast(1.05);
}

.teaching-image-wrapper::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(11, 15, 26, 0.3), transparent);
}

/* ========================================
   11. CONTACT SECTION
   ======================================== */
.contact {
  position: relative;
  background: var(--deep-blue);
  overflow: hidden;
}

.contact-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.contact-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.2) blur(2px);
}

.contact-content {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
}

.contact-info h2 {
  font-family: "Libre Baskerville", serif;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 400;
  margin-bottom: 1.5rem;
  line-height: 1.2;
}

.contact-info p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.8;
  margin-bottom: 2rem;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 2rem;
}

.contact-detail {
  display: flex;
  align-items: center;
  gap: 1rem;
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.contact-detail svg {
  width: 18px;
  height: 18px;
  fill: var(--cyan);
  opacity: 0.7;
}

.social-links {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.social-link {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid rgba(232, 230, 227, 0.15);
  background: rgba(17, 24, 39, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  text-decoration: none;
  position: relative;
  overflow: hidden;
}

.social-link::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.social-link svg {
  width: 20px;
  height: 20px;
  fill: rgba(232, 230, 227, 0.7);
  transition: all 0.4s ease;
  position: relative;
  z-index: 1;
}

/* Social brand colors */
.social-link.instagram::before {
  background: radial-gradient(
    circle at 30% 107%,
    #fdf497 0%,
    #fdf497 5%,
    #fd5949 45%,
    #d6249f 60%,
    #285aeb 90%
  );
}
.social-link.instagram:hover {
  border-color: rgba(214, 36, 159, 0.6);
  transform: translateY(-4px);
  box-shadow: 0 8px 25px rgba(214, 36, 159, 0.35);
}
.social-link.instagram:hover::before {
  opacity: 1;
}
.social-link.instagram:hover svg {
  fill: #ffffff;
  transform: scale(1.15);
}

.social-link.soundcloud::before {
  background: radial-gradient(
    circle at center,
    rgba(255, 85, 0, 0.25),
    transparent 70%
  );
}
.social-link.soundcloud:hover {
  border-color: rgba(255, 85, 0, 0.6);
  background: rgba(255, 85, 0, 0.1);
  transform: translateY(-4px);
  box-shadow: 0 8px 25px rgba(255, 85, 0, 0.35);
}
.social-link.soundcloud:hover::before {
  opacity: 1;
}
.social-link.soundcloud:hover svg {
  fill: #ff5500;
  transform: scale(1.15);
}

.social-link.linkedin::before {
  background: radial-gradient(
    circle at center,
    rgba(10, 102, 194, 0.25),
    transparent 70%
  );
}
.social-link.linkedin:hover {
  border-color: rgba(10, 102, 194, 0.6);
  background: rgba(10, 102, 194, 0.1);
  transform: translateY(-4px);
  box-shadow: 0 8px 25px rgba(10, 102, 194, 0.35);
}
.social-link.linkedin:hover::before {
  opacity: 1;
}
.social-link.linkedin:hover svg {
  fill: #0a66c2;
  transform: scale(1.15);
}

.social-link.youtube::before {
  background: radial-gradient(
    circle at center,
    rgba(255, 0, 0, 0.25),
    transparent 70%
  );
}
.social-link.youtube:hover {
  border-color: rgba(255, 0, 0, 0.6);
  background: rgba(255, 0, 0, 0.1);
  transform: translateY(-4px);
  box-shadow: 0 8px 25px rgba(255, 0, 0, 0.35);
}
.social-link.youtube:hover::before {
  opacity: 1;
}
.social-link.youtube:hover svg {
  fill: #ff0000;
  transform: scale(1.15);
}

/* ========================================
   12. CONTACT FORM
   ======================================== */
.contact-form {
  background: rgba(17, 24, 39, 0.5);
  -webkit-backdrop-filter: blur(20px); /* ✅ AGGIUNGI QUESTO */
  backdrop-filter: blur(20px);
  border: 1px solid rgba(110, 231, 255, 0.08);
  border-radius: 4px;
  padding: 2.5rem;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 0.9rem 1rem;
  background: rgba(11, 15, 26, 0.6);
  border: 1px solid rgba(110, 231, 255, 0.08);
  border-radius: 2px;
  color: var(--text-primary);
  font-family: "Inter", sans-serif;
  font-size: 0.9rem;
  transition: all 0.3s ease;
  outline: none;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: rgba(110, 231, 255, 0.3);
  box-shadow: 0 0 20px rgba(110, 231, 255, 0.05);
}

.form-group textarea {
  min-height: 120px;
  resize: vertical;
}

.form-group select {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%239CA3AF' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
}

.form-group select option {
  background: var(--graphite);
  color: var(--text-primary);
}

.form-submit {
  width: 100%;
  padding: 1rem;
  background: linear-gradient(135deg, var(--cyan), #4fc3f7);
  color: var(--deep-blue);
  font-family: "Inter", sans-serif;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border: none;
  border-radius: 2px;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.form-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 40px rgba(110, 231, 255, 0.3);
}

/* ========================================
   13. FOOTER
   ======================================== */
.footer {
  padding: 2rem 5%;
  border-top: 1px solid rgba(110, 231, 255, 0.05);
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--deep-blue);
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-text {
  font-size: 0.75rem;
  color: var(--text-muted);
  letter-spacing: 0.05em;
}

.footer-text span {
  color: var(--amber);
}

.footer-credits {
  font-size: 0.75rem;
  color: var(--text-muted);
  letter-spacing: 0.05em;
  text-align: center;
}

.footer-credits a {
  color: var(--cyan);
  text-decoration: none;
  font-weight: 500;
  position: relative;
  transition: color 0.3s ease;
}

.footer-credits a::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--amber);
  transition: width 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.footer-credits a:hover {
  color: var(--amber);
}

.footer-credits a:hover::after {
  width: 100%;
}

.footer-links {
  display: flex;
  gap: 2rem;
}

.footer-links a {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-decoration: none;
  letter-spacing: 0.05em;
  transition: color 0.3s ease;
}

.footer-links a:hover {
  color: var(--cyan);
}

/* ========================================
   14. REVEAL ANIMATIONS
   ======================================== */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 {
  transition-delay: 0.1s;
}
.reveal-delay-2 {
  transition-delay: 0.2s;
}
.reveal-delay-3 {
  transition-delay: 0.3s;
}
.reveal-delay-4 {
  transition-delay: 0.4s;
}

/* ========================================
   15. CUSTOM CURSOR
   ======================================== */
.cursor-dot,
.cursor-ring {
  position: fixed;
  top: 0;
  left: 0;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
}

.cursor-dot {
  width: 6px;
  height: 6px;
  background: var(--amber);
  border-radius: 50%;
  transition:
    width 0.3s ease,
    height 0.3s ease,
    background 0.3s ease,
    opacity 0.3s ease;
  box-shadow: 0 0 10px rgba(255, 184, 107, 0.6);
}

.cursor-ring {
  width: 36px;
  height: 36px;
  border: 1px solid rgba(110, 231, 255, 0.5);
  border-radius: 50%;
  z-index: 9998;
  transition:
    width 0.4s cubic-bezier(0.16, 1, 0.3, 1),
    height 0.4s cubic-bezier(0.16, 1, 0.3, 1),
    border-color 0.4s ease,
    background 0.4s ease,
    opacity 0.3s ease;
}

.cursor-dot.hover {
  width: 0;
  height: 0;
  opacity: 0;
}

.cursor-ring.hover {
  width: 60px;
  height: 60px;
  border-color: var(--amber);
  background: rgba(255, 184, 107, 0.08);
  box-shadow: 0 0 20px rgba(255, 184, 107, 0.2);
}

.cursor-dot.text {
  width: 2px;
  height: 20px;
  border-radius: 1px;
  background: var(--cyan);
  box-shadow: 0 0 8px rgba(110, 231, 255, 0.6);
  animation: textBlink 1s ease-in-out infinite;
}

.cursor-ring.text {
  opacity: 0;
}

/* Nasconde cursore nativo solo su desktop con mouse */
@media (hover: hover) and (pointer: fine) {
  *,
  *::before,
  *::after {
    cursor: none !important;
  }
}

/* ========================================
   16. LOADING SCREEN
   ======================================== */
.loader {
  position: fixed;
  inset: 0;
  background: var(--deep-blue);
  z-index: 10000;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition:
    opacity 0.8s ease,
    visibility 0.8s ease;
}

.loader.hidden {
  opacity: 0;
  visibility: hidden;
}

.loader-text {
  font-family: "Libre Baskerville", serif;
  font-size: 1.5rem;
  font-weight: 400;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--text-primary);
  margin-bottom: 2rem;
}

.loader-bar {
  width: 200px;
  height: 1px;
  background: rgba(110, 231, 255, 0.1);
  position: relative;
  overflow: hidden;
}

.loader-bar::after {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--cyan), var(--amber));
  animation: loadBar 2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* ========================================
   17. PARTICLES CANVAS
   ======================================== */
#particles-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  opacity: 0.4;
}

/* ========================================
   18. ENTER OVERLAY
   ======================================== */
.enter-overlay {
  position: fixed;
  inset: 0;
  background: rgba(11, 15, 26, 0.97);
  -webkit-backdrop-filter: blur(20px); 
  backdrop-filter: blur(20px);
  z-index: 9998;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2.5rem;
  cursor: pointer;
  opacity: 1;
  visibility: visible;
  transition:
    opacity 1.2s cubic-bezier(0.16, 1, 0.3, 1),
    visibility 1.2s;
}

.enter-overlay.fade-out {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.enter-overlay-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
  text-align: center;
}

.enter-icon {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  border: 1px solid rgba(110, 231, 255, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  animation: pulseGlow 2.5s ease-in-out infinite;
}

.enter-icon::before {
  content: "";
  position: absolute;
  inset: -8px;
  border-radius: 50%;
  border: 1px solid rgba(110, 231, 255, 0.1);
  animation: pulseRing 2.5s ease-in-out infinite;
}

.enter-icon::after {
  content: "";
  position: absolute;
  inset: -18px;
  border-radius: 50%;
  border: 1px solid rgba(110, 231, 255, 0.05);
  animation: pulseRing 2.5s ease-in-out infinite 0.3s;
}

.enter-icon svg {
  width: 32px;
  height: 32px;
  fill: var(--cyan);
  margin-left: 4px;
  filter: drop-shadow(0 0 20px rgba(110, 231, 255, 0.5));
}

.enter-text {
  font-family: "Libre Baskerville", serif;
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 400;
  letter-spacing: 0.05em;
  color: var(--text-primary);
  line-height: 1.2;
}

.enter-text .accent {
  color: var(--amber);
  font-style: italic;
}

.enter-subtitle {
  font-family: "Space Mono", monospace;
  font-size: 0.7rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 1rem;
}

.enter-subtitle::before,
.enter-subtitle::after {
  content: "";
  width: 40px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--cyan), transparent);
}

.enter-hint {
  font-family: "Inter", sans-serif;
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--cyan);
  opacity: 0.7;
  animation: hintBlink 2s ease-in-out infinite;
}

.enter-overlay:hover .enter-icon {
  border-color: rgba(110, 231, 255, 0.6);
  transform: scale(1.05);
  transition: all 0.4s ease;
}

.enter-overlay:hover .enter-text {
  color: var(--amber);
  transition: color 0.4s ease;
}

.enter-overlay:hover .enter-hint {
  opacity: 1;
}

.enter-volume {
  position: absolute;
  bottom: 3rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: "Space Mono", monospace;
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.enter-volume svg {
  width: 14px;
  height: 14px;
  fill: var(--cyan);
  opacity: 0.6;
}

/* ========================================
   19. LANGUAGE SWITCHER
   ======================================== */
.lang-switcher {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  margin-left: 1rem;
  padding: 0.3rem;
  background: rgba(17, 24, 39, 0.4);
  border: 1px solid rgba(110, 231, 255, 0.1);
  border-radius: 20px;
  backdrop-filter: blur(10px);
}

a.lang-btn {
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.lang-btn {
  padding: 0.3rem 0.7rem;
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-family: "Space Mono", monospace;
  font-size: 0.7rem;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  border-radius: 15px;
  transition: all 0.3s ease;
  position: relative;
}

.lang-btn:hover {
  color: var(--text-primary);
}

.lang-btn.active {
  background: rgba(110, 231, 255, 0.15);
  color: var(--amber);
  font-weight: 700;
}

.lang-divider {
  width: 1px;
  height: 14px;
  background: rgba(110, 231, 255, 0.2);
}

/* ========================================
   20. KEYFRAMES (tutti insieme)
   ======================================== */
@keyframes gridMove {
  0% {
    transform: translate(0, 0);
  }
  100% {
    transform: translate(60px, 60px);
  }
}

@keyframes scrollPulse {
  0%,
  100% {
    opacity: 0.3;
    transform: scaleY(0.5);
  }
  50% {
    opacity: 1;
    transform: scaleY(1);
  }
}

@keyframes fadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes textBlink {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.3;
  }
}

@keyframes loadBar {
  to {
    width: 100%;
  }
}

@keyframes pulseGlow {
  0%,
  100% {
    box-shadow:
      0 0 30px rgba(110, 231, 255, 0.2),
      inset 0 0 20px rgba(110, 231, 255, 0.05);
  }
  50% {
    box-shadow:
      0 0 50px rgba(110, 231, 255, 0.4),
      inset 0 0 30px rgba(110, 231, 255, 0.1);
  }
}

@keyframes pulseRing {
  0%,
  100% {
    transform: scale(1);
    opacity: 0.5;
  }
  50% {
    transform: scale(1.08);
    opacity: 1;
  }
}

@keyframes hintBlink {
  0%,
  100% {
    opacity: 0.4;
  }
  50% {
    opacity: 1;
  }
}

/* ========================================
   21. RESPONSIVE - SEMPLIFICATO
   ======================================== */

/* ===== TABLET / LAPTOP (max 1024px) ===== */
@media (max-width: 1024px) {
  /* Navbar: hamburger */
  .nav { padding: 1rem 1.5rem; }
  .nav.scrolled { padding: 0.7rem 1.5rem; }
  .nav-links { display: none; }
  .nav-hamburger { display: flex; }

  /* Hero: padding ridotto */
  .hero-content { padding: 0 3%; }

  /* Grids: 1 colonna */
  .about-grid,
  .teaching-grid,
  .contact-content {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  /* Press: 1 colonna */
  .press-grid { grid-template-columns: 1fr; }
  .press-card { padding: 2rem 1.5rem; }
  .press-title { font-size: 1.5rem; }

  /* Portfolio: 2 colonne */
  .portfolio-grid { grid-template-columns: repeat(2, 1fr); }
  .portfolio-card.featured { grid-column: span 2; grid-row: span 1; }

  /* Carousel: 2 card */
  .carousel-slide { flex: 0 0 calc((100% - 2rem) / 2); }

  /* Services: 2 colonne */
  .services-grid { grid-template-columns: repeat(2, 1fr); }

  /* Immagini */
  .teaching-image-wrapper img { height: 400px; }
  .about-image-wrapper img { height: 450px; }

  /* Form */
  .contact-form { padding: 2rem; }
}

/* ===== MOBILE (max 768px) ===== */
@media (max-width: 768px) {
  /* Sezioni */
  .section { padding: 4rem 1.5rem; }

  /* Hero */
  .hero-content { padding: 0 1.5rem; }
  .hero-tag { margin-bottom: 1.2rem; }
  .hero-title { margin-bottom: 1rem; }
  .hero-subtitle {
    margin-bottom: 2rem;
    letter-spacing: 0.08em;
  }
  .hero-subtitle span.separator {
    margin: 0 0.2rem;
  }

  /* Hero CTAs: impilati */
  .hero-ctas {
    flex-direction: column;
    align-items: stretch;
    gap: 1rem;
  }
  .btn-primary,
  .btn-secondary {
    justify-content: center;
    width: 100%;
  }

  /* Hero scroll indicator */
  .hero-scroll-indicator {
    bottom: 1.5rem;
  }

  /* Cursore nativo */
  *, *::before, *::after { cursor: auto !important; }
  .cursor-dot, .cursor-ring { display: none; }

  /* Enter overlay */
  .enter-icon { width: 80px; height: 80px; }
  .enter-icon svg { width: 24px; height: 24px; }
  .enter-volume { bottom: 2rem; }

  /* About */
  .about-image-wrapper img { height: 380px; }
  .about-stats { justify-content: center; }

  /* Portfolio: 1 colonna */
  .portfolio-grid { grid-template-columns: 1fr; }
  .portfolio-card.featured { grid-column: span 1; }

  /* Carousel: 1 card */
  .carousel-slide { flex: 0 0 100%; }
  .carousel-btn { width: 40px; height: 40px; }
  .carousel-wrapper { gap: 0.5rem; }

  /* Service cards: altezza uniforme */
  .carousel-viewport { min-height: 420px; }
  .carousel-slide { display: flex; }
  .service-card {
    display: flex;
    flex-direction: column;
    width: 100%;
    min-height: 400px;
  }
  .service-desc { flex-grow: 1; }

  /* Services grid: 1 colonna */
  .services-grid { grid-template-columns: 1fr; }

  /* Contact: layout "chill" */
  .contact-info { text-align: left; }
  .contact-details { align-items: flex-start; }
  .contact-info .section-tag { justify-content: flex-start; }
  .social-links {
    justify-content: center;
    width: 100%;
    margin-top: 1rem;
  }
  .contact-form { padding: 1.5rem; }

  /* Footer */
  .footer {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }

  /* Lang switcher */
  .lang-switcher { margin: 1rem 0 0 0; }

  /* Mobile menu */
  .mobile-menu a { font-size: 1.8rem; }
  .mobile-menu { gap: 1.5rem; }
}

/* ===== MOBILE SMALL (max 480px) ===== */
@media (max-width: 480px) {
  /* Sezioni */
  .section { padding: 3.5rem 1rem; }

  /* Hero: più compatto ma titolo GRANDE */
  .hero-content { padding: 0 1rem; }
  .hero-tag {
    font-size: 0.6rem;
    gap: 0.5rem;
    margin-bottom: 1rem;
  }
  .hero-tag::before { width: 25px; }

  .hero-title {
    font-size: clamp(2.5rem, 12vw, 3.5rem); /* ✅ Titolo GRANDE anche su mobile piccolo */
    margin-bottom: 0.8rem;
  }

  .hero-subtitle {
    font-size: clamp(0.7rem, 2.5vw, 0.85rem);
    margin-bottom: 1.5rem;
    line-height: 1.6;
  }

  /* Section titles */
  .section-title { font-size: clamp(1.8rem, 6vw, 2.2rem); }
  .section-tag { font-size: 0.6rem; margin-bottom: 1rem; }

  /* About */
  .about-image-wrapper img { height: 320px; }
  .about-text p:first-of-type::first-letter { font-size: 2.8rem; }
  .stat-number { font-size: 1.6rem; }
  .stat-label { font-size: 0.6rem; }
  .about-stats { gap: 1rem; }

  /* Press */
  .press-card { padding: 1.5rem 1rem; }
  .press-title { font-size: 1.3rem; }
  .press-subtitle { font-size: 0.85rem; }

  /* Portfolio */
  .portfolio-info { padding: 1.2rem; }
  .portfolio-title { font-size: 1.1rem; }
  .portfolio-desc { font-size: 0.8rem; }

  /* Service cards */
  .service-card { padding: 2rem 1.5rem; min-height: 350px; }
  .service-icon { width: 65px; height: 65px; }
  .service-title { font-size: 1.3rem; }
  .service-desc { font-size: 0.85rem; }

  /* Teaching */
  .teaching-image-wrapper img { height: 300px; }
  .teaching-grid { gap: 2rem; }

  /* Contact */
  .contact-info h2 { font-size: clamp(1.8rem, 6vw, 2.2rem); }
  .contact-form { padding: 1.2rem; }
  .form-group input,
  .form-group textarea,
  .form-group select { padding: 0.8rem; font-size: 0.85rem; }

  /* Social */
  .social-link { width: 42px; height: 42px; }
  .social-link svg { width: 18px; height: 18px; }

  /* Footer */
  .footer { padding: 1.5rem 1rem; }
  .footer-text,
  .footer-credits,
  .footer-links a { font-size: 0.7rem; }
  .footer-links { gap: 1.5rem; }
}

/* ===== MOBILE TINY (max 380px) ===== */
@media (max-width: 380px) {
  .hero-title {
    font-size: 2.3rem; /* ✅ Minimo assoluto: comunque leggibile */
  }
  .hero-subtitle {
    font-size: 0.65rem;
    letter-spacing: 0.06em;
  }
  .about-stats {
    flex-wrap: wrap;
    gap: 1.5rem;
  }
  .stat {
    flex: 0 0 calc(50% - 0.75rem);
  }
  .service-card {
    padding: 1.5rem 1rem;
    min-height: 320px;
  }
  .service-icon { width: 60px; height: 60px; }
  .service-title { font-size: 1.2rem; }
  .mobile-menu a { font-size: 1.3rem; }
}

/* ========================================
   22. GLOBAL FIXES
   ======================================== */
html,
body {
  overflow-x: hidden;
  max-width: 100%;
}

img {
  max-width: 100%;
  height: auto;
}
