:root {
  --blue: #649aba;
  --ink: #1a4054;
  --crimson: #840b1a;
  --white: #ffffff;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; overflow-x: hidden; }
body {
  font-family: 'Inter', system-ui, sans-serif;
  color: var(--white);
  background: #000;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  line-height: 1.6;
  font-size: 16px;
}

/* Testo più grande e "cicciotto" per paragrafi ed elenchi */
p, li {
  font-weight: 500;
  font-size: 17px;
  line-height: 1.7;
}

.profile-description p, .experience-card p, .education-card p, 
.timeline-card p, .education-extra-card p, .skill-modern-card p,
.cta-portfolio-container p, .cta-contact-content p {
  font-weight: 500;
  font-size: 18px;
  line-height: 1.8;
}

/* CV text, certificazioni e features */
.cv-text p {
  font-size: 17px !important;
  font-weight: 500;
  line-height: 1.7;
}

.cert-item {
  font-size: 15px !important;
  font-weight: 500;
}

.feature-item span {
  font-size: 16px !important;
  font-weight: 500;
}

.extra-description {
  font-size: 17px !important;
  font-weight: 500;
  line-height: 1.7;
}

.hero-subtitle {
  font-weight: 500;
}

.bg-layer {
  position: fixed;
  inset: 0;
  z-index: 0;
  background: 
    radial-gradient(ellipse 120% 100% at 10% -10%, rgba(132,11,26,0.08), transparent 60%),
    radial-gradient(ellipse 100% 80% at 90% 50%, rgba(26,64,84,0.08), transparent 65%),
    radial-gradient(ellipse 130% 100% at 50% 110%, rgba(100,154,186,0.12), transparent 70%),
    linear-gradient(180deg, #649aba 0%, #5a8ba8 50%, #6fa3bf 100%);
  animation: bgShift 20s ease infinite;
}
@keyframes bgShift {
  0%, 100% { filter: hue-rotate(0deg) brightness(1); }
  50% { filter: hue-rotate(1deg) brightness(1.02); }
}

.grain {
  position: fixed;
  inset: 0;
  z-index: 1;
  opacity: 0.02;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 400 400' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='2' numOctaves='3' /%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' /%3E%3C/svg%3E");
  animation: grainAnim 8s steps(10) infinite;
}
@keyframes grainAnim { 
  0%, 100% { transform: translate(0, 0); } 
  10% { transform: translate(-5%, -5%); }
  20% { transform: translate(-10%, 5%); }
  30% { transform: translate(5%, -10%); }
  40% { transform: translate(-5%, 15%); }
  50% { transform: translate(-10%, 5%); }
  60% { transform: translate(15%, 0); }
  70% { transform: translate(0, 10%); }
  80% { transform: translate(-15%, 0); }
  90% { transform: translate(10%, 5%); }
}

/* NAVBAR FISSA CON PROGRESS BAR */
.navbar { 
  position: fixed; 
  top: 0; 
  left: 0; 
  right: 0; 
  z-index: 1000; 
  padding: 16px 32px 0;
  background: transparent;
}

.nav-progress-container {
  width: 100%;
  height: 4px;
  background: rgba(26,64,84,0.2);
  position: absolute;
  top: 0;
  left: 0;
  border-radius: 0;
}

.nav-progress-bar {
  height: 100%;
  background: var(--ink);
  width: 0%;
  transition: width 0.1s ease;
  border-radius: 0;
}

.nav-wrap { 
  background: rgba(132,11,26,0.95); 
  backdrop-filter: blur(20px); 
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 20px; 
  padding: 16px 28px; 
  box-shadow: 0 8px 32px rgba(0,0,0,0.3), inset 0 1px 0 rgba(255,255,255,0.1); 
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--white);
  font-family: 'Space Grotesk', sans-serif; font-weight: 700; font-size: 20px; letter-spacing: -0.02em; }

/* Logo container */
.logo-container {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
}

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

.nav-links { display: flex; gap: 8px; align-items: center; position: relative; }
.nav-links a { color: rgba(255,255,255,0.85); text-decoration: none; font-weight: 600; font-size: 15px;
  padding: 10px 18px; border-radius: 12px; transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); position: relative; }
.nav-links a::before { content: ''; position: absolute; inset: 0; background: rgba(255,255,255,0.1);
  border-radius: 12px; opacity: 0; transition: opacity 0.3s; }
.nav-links a:hover::before { opacity: 1; }
.nav-links a:hover { color: var(--white); transform: translateY(-1px); }
.nav-cta { background: var(--white) !important; color: var(--crimson) !important; font-weight: 700;
  box-shadow: 0 4px 16px rgba(0,0,0,0.2); }
.nav-cta:hover { transform: translateY(-2px) scale(1.02); box-shadow: 0 6px 20px rgba(0,0,0,0.3); }

/* Dropdown Styles */
.dropdown {
  position: relative;
  display: inline-block;
}

.dropdown-toggle::after {
  content: ' ▼';
  font-size: 10px;
  margin-left: 4px;
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background: rgba(132,11,26,0.98);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 12px;
  padding: 8px;
  min-width: 200px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.3s ease;
  z-index: 1000;
  box-shadow: 0 8px 32px rgba(0,0,0,0.3);
}

.dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-menu a {
  display: block;
  padding: 10px 16px;
  color: rgba(255,255,255,0.85);
  text-decoration: none;
  border-radius: 8px;
  transition: all 0.3s ease;
  font-size: 14px;
}

.dropdown-menu a:hover {
  background: rgba(255,255,255,0.1);
  color: var(--white);
}

.nav-toggle { display: none; background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.2);
  color: var(--white); padding: 10px 14px; border-radius: 10px; font-weight: 600; cursor: pointer; }

@media (max-width: 960px) {
  .navbar {
    padding: 16px 24px 0;
  }
  .nav-links { 
    display: none; 
    position: absolute; 
    left: 28px; 
    right: 28px; 
    top: 72px; 
    background: rgba(132,11,26,0.98);
    flex-direction: column; 
    padding: 12px; 
    border-radius: 16px; 
    border: 1px solid rgba(255,255,255,0.1); 
    gap: 4px; 
  }
  .nav-links a { width: 100%; text-align: left; }
  
  /* Mobile dropdown */
  .dropdown-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    background: transparent;
    border: none;
    box-shadow: none;
    padding: 8px 0 8px 16px;
    display: none;
  }
  
  .dropdown-open .dropdown-menu {
    display: block;
  }
  
  .dropdown-toggle::after {
    content: ' ▶';
  }
  
  .dropdown-open .dropdown-toggle::after {
    content: ' ▼';
  }
  
  .nav-toggle { display: block; }
  .nav-open .nav-links { display: flex; }
}

.hero {
  position: relative;
  min-height: 50vh; /* Ridotto da 70vh a 50vh per ridurre spazio */
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 100px 32px 0; /* Eliminato padding-bottom */
  overflow: hidden;
}

.hero-content {
  position: relative;
  z-index: 10;
  max-width: 1400px;
  width: 100%;
  text-align: center;
  padding: 20px 0 10px; /* Ridotto drasticamente i padding */
}

h1 {
  font-family: 'Inter', sans-serif;
  font-size: clamp(42px, 8vw, 80px);
  font-weight: 900;
  line-height: 0.95;
  letter-spacing: -0.04em;
  margin-bottom: 24px; /* Ridotto margine */
  text-shadow: 0 0 80px rgba(132,11,26,0.4);
  position: relative;
}

.hero-word {
  display: block;
  position: relative;
  font-weight: 900;
  letter-spacing: -0.04em;
  color: var(--crimson);
  padding-bottom: 16px; /* Ridotto padding */
  animation: wordPulse 3s ease-in-out infinite;
}

.hero-word:nth-child(1) { animation-delay: 0s; }
.hero-word:nth-child(3) { animation-delay: 1s; }
.hero-word:nth-child(5) { animation-delay: 2s; }

@keyframes wordPulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.05); opacity: 0.9; }
}

.hero-word::after {
  content: '.';
  color: #1a4054;
}

.hero-word::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 30%;
  height: 2px;
  background: linear-gradient(90deg, transparent 0%, #1a4054 50%, transparent 100%);
  background-size: 200% 100%;
  animation: lineMove 3s linear infinite;
}

.hero-word:nth-child(1)::before { animation-delay: 0s; }
.hero-word:nth-child(3)::before { animation-delay: 1s; }
.hero-word:nth-child(5)::before { animation-delay: 2s; }

@keyframes lineMove {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

.hero-subtitle {
  font-size: clamp(16px, 2.2vw, 18px);
  line-height: 1.7;
  color: rgba(255,255,255,0.8);
  max-width: 850px;
  margin: 0 auto 10px; /* Ridotto da 30px a 10px */
  font-weight: 400;
}

.hero-subtitle strong {
  color: rgba(255,255,255,0.95);
  font-weight: 600;
}

.hero-cta {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 40px; /* Ridotto margine */
  align-items: center; /* Allinea verticalmente i bottoni allo stesso livello */
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 16px 32px;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 600;
  font-size: 16px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  cursor: pointer;
  border: 2px solid transparent;
}

.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at var(--x, 50%) var(--y, 50%), rgba(255,255,255,0.2), transparent 50%);
  opacity: 0;
  transition: opacity 0.3s;
}
.btn:hover::before { opacity: 1; }

.btn-primary {
  background: linear-gradient(135deg, var(--crimson) 0%, #a01020 100%);
  color: var(--white);
  box-shadow: 0 4px 20px rgba(132,11,26,0.3);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(132,11,26,0.4);
}

.btn-secondary {
  background: #1a4054;
  color: var(--white);
  border-color: #1a4054;
  backdrop-filter: blur(10px);
}
.btn-secondary:hover {
  background: #2a5064;
  transform: translateY(-2px);
  border-color: #1a4054;
  box-shadow: 0 8px 30px rgba(26,64,84,0.4);
}

.btn-blue {
  background: var(--blue) !important;
  color: var(--white) !important;
  box-shadow: 0 4px 20px rgba(100, 154, 186, 0.3);
}
.btn-blue:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(100, 154, 186, 0.4);
}

.market-animation {
  position: absolute;
  inset: 0;
  z-index: 5;
  pointer-events: none;
  overflow: hidden;
}

.ticker-tape {
  position: absolute;
  left: 0;
  right: 0;
  height: 40px;
  display: flex;
  align-items: center;
  gap: 40px;
  white-space: nowrap;
  font-family: 'Space Grotesk', monospace;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.5px;
  opacity: 0.15;
}

.ticker-tape.top {
  top: 15%;
  animation: scrollLeft 40s linear infinite;
}

.ticker-tape.bottom {
  bottom: 15%;
  animation: scrollRight 45s linear infinite;
}

@keyframes scrollLeft {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

@keyframes scrollRight {
  from { transform: translateX(-50%); }
  to { transform: translateX(0); }
}

.ticker-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  background: rgba(255,255,255,0.03);
  border-radius: 6px;
  border: 1px solid rgba(255,255,255,0.08);
}

.ticker-symbol { color: rgba(255,255,255,0.6); font-weight: 700; }
.ticker-price { color: rgba(255,255,255,0.5); }
.ticker-change { font-size: 12px; }
.ticker-change.up { color: #22c55e; }
.ticker-change.down { color: var(--crimson); }

.candlestick-container {
  position: absolute;
  right: 5%;
  top: 50%;
  transform: translateY(-50%);
  width: 300px;
  height: 200px;
  display: flex;
  align-items: flex-end;
  gap: 12px;
  opacity: 0.1;
}

.candlestick {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  animation: candleGrow 2s ease-out forwards;
}

.candle-wick {
  width: 2px;
  background: rgba(255,255,255,0.4);
  margin-bottom: -1px;
}

.candle-body {
  width: 100%;
  border-radius: 2px;
  position: relative;
}

.candle-body.bullish {
  background: rgba(34,197,94,0.6);
  border: 1px solid #22c55e;
}

.candle-body.bearish {
  background: rgba(132,11,26,0.6);
  border: 1px solid var(--crimson);
}

@keyframes candleGrow {
  from { opacity: 0; transform: scaleY(0); }
  to { opacity: 1; transform: scaleY(1); }
}

.candlestick:nth-child(1) { animation-delay: 0s; }
.candlestick:nth-child(2) { animation-delay: 0.1s; }
.candlestick:nth-child(3) { animation-delay: 0.2s; }
.candlestick:nth-child(4) { animation-delay: 0.3s; }
.candlestick:nth-child(5) { animation-delay: 0.4s; }
.candlestick:nth-child(6) { animation-delay: 0.5s; }
.candlestick:nth-child(7) { animation-delay: 0.6s; }

.line-chart {
  position: absolute;
  left: 5%;
  top: 50%;
  transform: translateY(-50%);
  width: 280px;
  height: 180px;
  opacity: 0.1;
}

.line-chart svg {
  width: 100%;
  height: 100%;
}

.chart-line {
  fill: none;
  stroke: var(--blue);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-dasharray: 1000;
  stroke-dashoffset: 1000;
  animation: drawLine 3s ease-out forwards;
}

@keyframes drawLine {
  to { stroke-dashoffset: 0; }
}

.chart-dot {
  fill: var(--crimson);
  animation: dotPulse 2s ease-in-out infinite;
}

@keyframes dotPulse {
  0%, 100% { opacity: 0.8; r: 4; }
  50% { opacity: 1; r: 5; }
}

@media (max-width: 1024px) {
  .candlestick-container,
  .line-chart {
    display: none;
  }
}

.orbit-container {
  position: absolute;
  inset: 0;
  z-index: 5;
  pointer-events: none;
}

.orbit {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  animation: rotate 20s linear infinite;
}

.orbit.orbit-1 { width: 600px; height: 600px; animation-duration: 25s; }
.orbit.orbit-2 { width: 800px; height: 800px; animation-duration: 35s; animation-direction: reverse; }
.orbit.orbit-3 { width: 1000px; height: 1000px; animation-duration: 45s; }

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

.orbit-dot {
  position: absolute;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--ink), transparent);
  filter: blur(2px);
  opacity: 0.6;
}

.orbit-1 .orbit-dot { top: 0; left: 50%; transform: translateX(-50%); }
.orbit-2 .orbit-dot { top: 0; left: 50%; transform: translateX(-50%); }
.orbit-3 .orbit-dot { top: 0; left: 50%; transform: translateX(-50%); }

.scroll-indicator {
  display: none;
}

.services {
  position: relative;
  padding: 60px 32px; /* Ridotto padding */
  max-width: 1600px;
  margin: 0 auto;
}

.section-intro {
  text-align: center;
  max-width: 1200px;
  margin: 0 auto 60px; /* Ridotto margine */
}

.section-tag {
  display: inline-block;
  background: rgba(132,11,26,0.2);
  border: 1px solid rgba(132,11,26,0.4);
  color: rgba(255,255,255,0.9);
  padding: 10px 24px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 30px; /* Ridotto margine */
}

/* TITOLO SERVIZI CON LINEE PIÙ CORTE */
.services-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(42px, 6vw, 60px);
  font-weight: 900;
  line-height: 0.95;
  letter-spacing: -0.02em;
  margin-bottom: 40px; /* Ridotto margine */
  text-align: center;
  position: relative;
  color: var(--crimson);
  padding: 0 20px 25px;
}

.services-title::before {
  content: '';
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 40%;
  height: 4px;
  background: linear-gradient(90deg, transparent 0%, var(--ink) 50%, transparent 100%);
  background-size: 200% 100%;
  animation: lineMove 4s linear infinite;
  border-radius: 4px;
}

.services-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 40%;
  height: 4px;
  background: linear-gradient(90deg, transparent 0%, var(--ink) 50%, transparent 100%);
  background-size: 200% 100%;
  animation: lineMove 4s linear infinite reverse;
  border-radius: 4px;
}

.services-subtitle {
  font-size: clamp(18px, 2.5vw, 22px);
  line-height: 1.5;
  color: rgba(255,255,255,0.9);
  max-width: 800px;
  margin: 40px auto 0; /* Ridotto margine */
  font-weight: 500;
  text-align: center;
  position: relative;
  padding: 20px 0; /* Ridotto padding */
}

.services-subtitle::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 150px;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--blue), transparent);
}

.services-layout {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  max-width: 1400px;
  margin: 0 auto;
}

@media (max-width: 1200px) {
  .services-layout {
    grid-template-columns: 1fr;
    gap: 50px; /* Ridotto gap */
  }
}

/* SERVIZI SENZA RIQUADRI */
.service-item {
  display: flex;
  flex-direction: column;
  gap: 20px;
  position: relative;
  padding: 0;
  background: none;
  border: none;
  text-align: left;
  height: 100%; /* Occupa tutta l'altezza disponibile */
}

.service-header {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.service-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  padding: 6px 16px;
  background: rgba(26,64,84,0.15);
  border: 1px solid rgba(26,64,84,0.3);
  border-radius: 100px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: var(--ink);
}

.service-tag::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--ink);
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(0.8); }
}

/* TITOLI DEI SERVIZI SENZA RIQUADRI */
.service-header h3 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(28px, 3vw, 38px);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 0;
  color: var(--crimson);
  display: inline-block;
  position: relative;
  padding-bottom: 12px;
}

/* LINEA INK ANIMATA SOTTO I TITOLI DEI SERVIZI */
.service-header h3::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, transparent 0%, var(--ink) 50%, transparent 100%);
  background-size: 200% 100%;
  animation: lineMove 3s linear infinite;
}

.service-content {
  display: flex;
  flex-direction: column;
  gap: 18px;
  align-items: flex-start; /* Impedisce ai figli di espandersi a tutta la larghezza */
  flex-grow: 1; /* Fa espandere il contenuto per riempire lo spazio disponibile */
}

/* Wrapper per contenuto (paragrafo + features) */
.service-content > p,
.service-content > .service-features {
  margin-bottom: 0;
}

/* Il bottone va sempre in fondo */
.service-content > .btn {
  margin-top: auto; /* Spinge il bottone in fondo */
}

/* Freccia per i pulsanti nella sezione servizi */
.service-content .btn-primary::after {
  content: '';
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cline x1='5' y1='12' x2='19' y2='12'%3E%3C/line%3E%3Cpolyline points='12 5 19 12 12 19'%3E%3C/polyline%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  margin-left: 8px;
}

.service-content .btn-primary:hover::after {
  transform: translateX(4px);
}

.service-content p {
  font-size: clamp(15px, 1.5vw, 17px);
  line-height: 1.6;
  color: rgba(255,255,255,0.8);
  margin-bottom: 25px;
}

.service-features {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-bottom: 25px;
}

.service-features .feature-item {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  font-size: 17px !important;
  color: rgba(255,255,255,0.95);
  font-weight: 500;
  line-height: 1.7;
  padding-bottom: 18px;
  margin-bottom: 18px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.service-features .feature-item:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.service-features .feature-item::before {
  content: '';
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  margin-top: 2px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231a4054' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cline x1='5' y1='12' x2='19' y2='12'%3E%3C/line%3E%3Cpolyline points='12 5 19 12 12 19'%3E%3C/polyline%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  filter: drop-shadow(0 0 6px rgba(26,64,84,0.4));
}

.service-features .feature-item:hover::before {
  transform: translateX(6px) scale(1.1);
  filter: drop-shadow(0 0 10px rgba(26,64,84,0.6));
  flex-shrink: 0;
  margin-top: 0;
}

.service-cta {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 16px 32px;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 600;
  font-size: 16px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  cursor: pointer;
  border: 2px solid transparent;
  background: linear-gradient(135deg, var(--crimson) 0%, #a01020 100%);
  color: var(--white);
  box-shadow: 0 4px 20px rgba(132,11,26,0.3);
}

.service-cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at var(--x, 50%) var(--y, 50%), rgba(255,255,255,0.2), transparent 50%);
  opacity: 0;
  transition: opacity 0.3s;
}

.service-cta:hover::before { 
  opacity: 1; 
}

.service-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(132,11,26,0.4);
}

/* Regola specifica per i pulsanti nella sezione servizi */
.service-content .btn {
  width: auto; /* Si adatta al contenuto del testo */
  min-width: fit-content; /* Assicura che il pulsante sia almeno largo quanto il testo */
  white-space: nowrap; /* Impedisce che il testo vada a capo */
}

/* SEZIONE: Perché scegliere me */
.why-me {
  position: relative;
  padding: 80px 32px; /* Ridotto padding */
  background: linear-gradient(135deg, var(--crimson) 0%, #a01020 100%);
  overflow: hidden;
}

.why-me::before {
  content: '';
  position: absolute;
  inset: 0;
  background: 
    radial-gradient(circle at 20% 80%, rgba(255,255,255,0.1) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(255,255,255,0.05) 0%, transparent 50%);
}

.why-me-content {
  position: relative;
  z-index: 10;
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
}

/* TITOLO PERCHÉ SCEGLIERE ME CON LINEA PIÙ CORTA */
.why-me h2 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(42px, 6vw, 60px);
  font-weight: 900;
  color: var(--white);
  margin-bottom: 50px; /* Ridotto margine */
  position: relative;
  letter-spacing: -0.02em;
  padding-bottom: 25px;
}

.why-me h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 30%;
  height: 4px;
  background: linear-gradient(90deg, transparent 0%, var(--ink) 50%, transparent 100%);
  background-size: 200% 100%;
  animation: lineMove 3s linear infinite;
  border-radius: 4px;
}

.why-me-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 30px; /* Ridotto gap */
}

.why-me-item {
  background: rgba(255,255,255,0.08);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 24px;
  padding: 30px 25px; /* Ridotto padding */
  text-align: center;
  transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
  position: relative;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0,0,0,0.2);
  cursor: pointer;
}

.why-me-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--blue), var(--crimson));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s ease;
}

.why-me-item::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
}

/* EFFETTO HOVER E ACTIVE - INGRANDIMENTO E CAMBIO COLORE */
.why-me-item:hover,
.why-me-item:active {
  transform: translateY(-10px) scale(1.03);
  background: var(--ink);
  box-shadow: 0 20px 40px rgba(0,0,0,0.4);
}

.why-me-item:hover::before,
.why-me-item:active::before {
  transform: scaleX(1);
}

.why-me-icon {
  width: 80px; /* Ridotto dimensione */
  height: 80px; /* Ridotto dimensione */
  margin: 0 auto 20px; /* Ridotto margine */
  background: rgba(255,255,255,0.1);
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--white);
  border: 2px solid rgba(255,255,255,0.2);
  transition: all 0.5s ease;
  position: relative;
  overflow: hidden;
}

.why-me-item:hover .why-me-icon,
.why-me-item:active .why-me-icon {
  background: rgba(255,255,255,0.15);
  transform: scale(1.1) rotate(5deg);
  box-shadow: 0 10px 25px rgba(0,0,0,0.2);
}

.why-me-icon svg {
  width: 40px; /* Ridotto dimensione */
  height: 40px; /* Ridotto dimensione */
  transition: all 0.5s ease;
}

.why-me-item:hover .why-me-icon svg,
.why-me-item:active .why-me-icon svg {
  transform: scale(1.1);
}

.why-me-item h3 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 24px; /* Ridotto dimensione */
  font-weight: 700;
  margin-bottom: 15px; /* Ridotto margine */
  color: var(--white);
  position: relative;
  padding-bottom: 12px; /* Ridotto padding */
}

.why-me-item h3::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 40px;
  height: 2px;
  background: rgba(255,255,255,0.5);
  transition: width 0.5s ease;
}

.why-me-item:hover h3::after,
.why-me-item:active h3::after {
  width: 80px;
}

.why-me-item p {
  color: rgba(255,255,255,0.85);
  line-height: 1.8;
  font-size: 16px; /* Ridotto dimensione */
  font-weight: 400;
}

.why-me-cta {
  margin-top: 50px; /* Ridotto margine */
  text-align: center;
}

@media (max-width: 768px) {
  .why-me {
    padding: 60px 24px; /* Ridotto padding */
  }
  
  .why-me-grid {
    grid-template-columns: 1fr;
    gap: 25px; /* Ridotto gap */
  }

  .why-me-item {
    padding: 25px 20px; /* Ridotto padding */
  }
  
  /* Miglioramento per dispositivi touch */
  .why-me-item:active {
    transform: translateY(-5px) scale(1.02);
    transition: transform 0.2s ease;
  }
}

/* Animazioni per le icone SVG */
.strategy-icon path,
.strategy-icon circle {
  stroke-dasharray: 100;
  stroke-dashoffset: 100;
  animation: drawStroke 1.5s ease forwards;
}

.custom-icon path {
  stroke-dasharray: 150;
  stroke-dashoffset: 150;
  animation: drawStroke 2s ease forwards 0.3s;
}

.results-icon path {
  stroke-dasharray: 200;
  stroke-dashoffset: 200;
  animation: drawStroke 2.5s ease forwards 0.6s;
}

@keyframes drawStroke {
  to {
    stroke-dashoffset: 0;
  }
}

/* Effetto particelle di sfondo */
.why-me-particles {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

.particle {
  position: absolute;
  background: rgba(255,255,255,0.1);
  border-radius: 50%;
  animation: float 15s infinite linear;
}

@keyframes float {
  0% {
    transform: translateY(0) rotate(0deg);
    opacity: 0;
  }
  10% {
    opacity: 1;
  }
  90% {
    opacity: 1;
  }
  100% {
    transform: translateY(-100px) rotate(360deg);
    opacity: 0;
  }
}

/* SEZIONE CONTATTI */
.contacts {
  position: relative;
  padding: 80px 32px; /* Ridotto padding */
  background: rgba(0,0,0,0.3);
  overflow: hidden;
}

.contacts::before {
  content: '';
  position: absolute;
  inset: -50%;
  background: radial-gradient(circle, rgba(132,11,26,0.15), transparent 60%);
  animation: ctaRotate 20s linear infinite;
}

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

.contacts-container {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
}

/* TITOLO CONTATTI CON LINEA ANIMATA */
.contacts h2 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(42px, 6vw, 60px);
  font-weight: 900;
  color: var(--crimson);
  margin-bottom: 20px;
  letter-spacing: -0.02em;
  position: relative;
  padding-bottom: 25px;
}

.contacts h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 30%;
  height: 4px;
  background: linear-gradient(90deg, transparent 0%, var(--ink) 50%, transparent 100%);
  background-size: 200% 100%;
  animation: lineMove 3s linear infinite;
  border-radius: 4px;
}

.contacts-subtitle {
  font-size: 18px;
  line-height: 1.7;
  color: rgba(255,255,255,0.75);
  max-width: 700px;
  margin: 0 auto 50px; /* Ridotto margine */
}

.contacts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 32px;
  margin-bottom: 60px; /* Ridotto margine */
}

.contact-card {
  background: rgba(255,255,255,0.05);
  border: 2px solid var(--crimson);
  border-radius: 20px;
  padding: 40px 30px;
  text-decoration: none;
  transition: all 0.4s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.contact-card:hover {
  background: rgba(255,255,255,0.08);
  border-color: var(--blue);
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.4);
}

.contact-icon {
  width: 70px;
  height: 70px;
  color: var(--blue);
  transition: transform 0.3s ease;
}

.contact-card:hover .contact-icon {
  transform: scale(1.1);
}

.contact-icon svg {
  width: 100%;
  height: 100%;
}

.contact-card h3 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 24px;
  font-weight: 700;
  color: var(--white);
  margin: 0;
}

.contact-card p {
  font-size: 16px;
  color: rgba(255,255,255,0.8);
  margin: 0;
}

/* Social Section - TORNATO ALLA VERSIONE PRECEDENTE */
.social-section {
  margin-top: 50px; /* Ridotto margine */
}

.social-section h3 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 28px;
  font-weight: 700;
  color: var(--crimson);
  margin-bottom: 40px;
}

.social-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 24px;
  max-width: 900px;
  margin: 0 auto;
}

.social-card {
  background: rgba(255,255,255,0.05);
  border: 2px solid var(--crimson);
  border-radius: 16px;
  padding: 28px 20px;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  transition: all 0.4s ease;
  color: var(--crimson); /* Colore di default crimson */
}

.social-card svg {
  width: 50px;
  height: 50px;
  transition: transform 0.3s ease;
}

.social-card span {
  font-size: 15px;
  font-weight: 600;
  color: rgba(255,255,255,0.8);
  transition: color 0.3s ease;
}

/* Colori specifici per ogni social al hover */
.social-card.instagram:hover {
  background: rgba(228, 64, 95, 0.1);
  border-color: #E4405F;
  transform: translateY(-5px);
  color: #E4405F;
}

.social-card.linkedin:hover {
  background: rgba(10, 102, 194, 0.1);
  border-color: #0A66C2;
  transform: translateY(-5px);
  color: #0A66C2;
}

.social-card.github:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: #ffffff;
  transform: translateY(-5px);
  color: #ffffff;
}

.social-card.fiverr:hover {
  background: rgba(29, 191, 115, 0.1);
  border-color: #1DBF73;
  transform: translateY(-5px);
  color: #1DBF73;
}

.social-card.youtube:hover {
  background: rgba(255, 0, 0, 0.1);
  border-color: #FF0000;
  transform: translateY(-5px);
  color: #FF0000;
}

.social-card:hover svg {
  transform: scale(1.15);
}

.social-card:hover span {
  color: var(--white);
}

/* Responsive */
@media (max-width: 768px) {
  .contacts-grid {
    grid-template-columns: 1fr;
  }
  
  .social-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .social-grid {
    grid-template-columns: 1fr;
  }
}

/* FOOTER */
footer {
  position: relative;
  padding: 60px 32px 30px; /* Ridotto padding */
  max-width: 100%;
  margin: 0 auto;
  background: linear-gradient(180deg, rgba(26,64,84,0.3) 0%, var(--ink) 40%);
  color: var(--white);
  overflow: hidden;
}

footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--crimson) 20%, var(--blue) 50%, var(--crimson) 80%, transparent);
  opacity: 0.6;
}

footer::after {
  content: '';
  position: absolute;
  top: -200px;
  right: -200px;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(132,11,26,0.15), transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 60px; /* Aumentato gap per centrare meglio le 3 colonne */
  margin-bottom: 50px;
  max-width: 1400px;
  margin-left: auto;
  margin-right: auto;
  position: relative;
  z-index: 1;
  justify-content: center;
}

.footer-column {
  background: rgba(255,255,255,0.02);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.05);
  border-radius: 16px;
  padding: 25px; /* Ridotto padding */
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.footer-column::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--crimson), var(--blue));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
}

.footer-column:hover {
  background: rgba(255,255,255,0.04);
  border-color: rgba(255,255,255,0.1);
  transform: translateY(-4px);
}

.footer-column:hover::before {
  transform: scaleX(1);
}

.footer-brand {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 28px;
  font-weight: 800;
  color: var(--white);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.footer-brand::before {
  content: '';
  width: 8px;
  height: 8px;
  background: var(--crimson);
  border-radius: 50%;
  animation: pulse 2s ease-in-out infinite;
}

.footer-column p {
  color: rgba(255,255,255,0.6);
  font-size: 15px;
  line-height: 1.8;
  margin-bottom: 24px;
}

footer h4 {
  color: var(--white);
  font-size: 16px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 24px;
  position: relative;
  padding-bottom: 12px;
}

footer h4::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 2px;
  background: linear-gradient(90deg, var(--crimson), transparent);
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-links a {
  color: rgba(255,255,255,0.6);
  font-size: 15px;
  text-decoration: none;
  transition: all 0.3s ease;
  padding: 8px 0;
  display: flex;
  align-items: center;
  gap: 8px;
  position: relative;
}

.footer-links a::before {
  content: '→';
  opacity: 0;
  transform: translateX(-10px);
  transition: all 0.3s ease;
  color: var(--crimson);
  font-weight: 700;
}

.footer-links a:hover {
  color: var(--white);
  padding-left: 20px;
}

.footer-links a:hover::before {
  opacity: 1;
  transform: translateX(0);
}

/* Footer Social Grid - Icone quadrate come nella sezione Contattami */
.footer-social-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(50px, 50px));
  gap: 12px;
  margin-top: 24px;
  justify-content: start;
}

.footer-social-icon {
  width: 50px;
  height: 50px;
  border-radius: 12px;
  background: rgba(255,255,255,0.05);
  border: 2px solid rgba(100,154,186,0.3);
  display: grid;
  place-items: center;
  color: var(--blue);
  text-decoration: none;
  transition: all 0.4s ease;
  padding: 10px;
  position: relative;
  overflow: hidden;
}

.footer-social-icon::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(100,154,186,0.2), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.footer-social-icon:hover::before {
  opacity: 1;
}

.footer-social-icon:hover {
  background: rgba(100,154,186,0.15);
  border-color: var(--blue);
  transform: translateY(-4px) scale(1.05);
  box-shadow: 0 8px 20px rgba(100,154,186,0.3);
}

.footer-social-icon svg {
  width: 100%;
  height: 100%;
  transition: transform 0.3s ease;
}

.footer-social-icon:hover svg {
  transform: scale(1.1);
}

.newsletter-form {
  display: flex;
  gap: 8px;
  margin-top: 16px;
}

.newsletter-input {
  flex: 1;
  padding: 14px 18px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 10px;
  color: var(--white);
  font-size: 14px;
  transition: all 0.3s ease;
  outline: none;
}

.newsletter-input::placeholder {
  color: rgba(255,255,255,0.4);
}

.newsletter-input:focus {
  background: rgba(255,255,255,0.08);
  border-color: var(--crimson);
}

.newsletter-btn {
  padding: 14px 24px;
  background: var(--crimson);
  border: none;
  border-radius: 10px;
  color: var(--white);
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.newsletter-btn:hover {
  background: #a01020;
  transform: scale(1.05);
}

.copyright {
  border-top: 1px solid rgba(255,255,255,0.05);
  padding-top: 30px; /* Ridotto padding */
  text-align: center;
  color: rgba(255,255,255,0.4);
  font-size: 14px;
  max-width: 1600px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: center;
}

.copyright-text {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
}

.copyright-divider {
  color: rgba(255,255,255,0.2);
}

.copyright a {
  color: var(--blue);
  text-decoration: none;
  transition: color 0.3s ease;
}

.copyright a:hover {
  color: var(--white);
}

@media (max-width: 1024px) {
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
  }
}

@media (max-width: 600px) {
  footer {
    padding: 50px 24px 25px; /* Ridotto padding */
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .footer-column {
    padding: 20px; /* Ridotto padding */
  }

  .newsletter-form {
    flex-direction: column;
  }

  .copyright-text {
    flex-direction: column;
    gap: 4px;
  }

  .copyright-divider {
    display: none;
  }
}

.fade-up {
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

.stagger-1 { transition-delay: 0.1s; }
.stagger-2 { transition-delay: 0.2s; }
.stagger-3 { transition-delay: 0.3s; }

/* PROFILE SECTION WITH PHOTO AND BUSINESS CARD */
.profile-section {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 60px;
  align-items: start;
  margin-top: 40px;
}

.profile-image-container {
  position: relative;
  width: 300px;
  height: 300px;
  display: flex;
  justify-content: flex-start;
  align-items: center;
}

.profile-image {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 5px solid var(--crimson);
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(132, 11, 26, 0.4),
              0 0 0 1px rgba(255, 255, 255, 0.1);
  position: relative;
  background: rgba(132, 11, 26, 0.1);
  transition: all 0.4s ease;
}

.profile-image:hover {
  transform: scale(1.05);
  box-shadow: 0 25px 80px rgba(132, 11, 26, 0.5),
              0 0 0 2px var(--crimson);
}

.profile-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.profile-content {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.profile-description h2 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 36px;
  font-weight: 800;
  color: var(--crimson);
  margin-bottom: 20px;
  letter-spacing: -0.02em;
}

.profile-description p {
  color: rgba(255, 255, 255, 0.85);
  font-size: 18px;
  line-height: 1.8;
  margin-bottom: 16px;
}

.profile-description strong {
  color: var(--white);
  font-weight: 600;
}

/* BUSINESS CARD - FLIPPABLE */
.business-card-wrapper {
  perspective: 1000px;
  width: 100%;
  max-width: 480px;
}

.business-card {
  position: relative;
  width: 100%;
  height: 280px;
  cursor: pointer;
  transform-style: preserve-3d;
  transition: transform 0.6s;
}

.business-card.flipped {
  transform: rotateY(180deg);
}

.card-front,
.card-back {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  border-radius: 16px;
  padding: 30px;
  background: linear-gradient(135deg, var(--crimson) 0%, #a01020 100%);
  box-shadow: 0 10px 40px rgba(132, 11, 26, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.card-back {
  transform: rotateY(180deg);
  background: linear-gradient(135deg, #a01020 0%, var(--crimson) 100%);
}

.card-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
}

.card-logo {
  width: 50px;
  height: 50px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  font-weight: 900;
  color: var(--white);
  border: 2px solid rgba(255, 255, 255, 0.2);
}

.card-name h3 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 24px;
  font-weight: 800;
  color: var(--white);
  margin: 0;
  letter-spacing: -0.02em;
}

.card-name p {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.7);
  margin: 4px 0 0 0;
  font-weight: 500;
}

.card-divider {
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.3), rgba(255, 255, 255, 0.1));
  margin-bottom: 20px;
}

.card-info {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 20px;
}

.card-item {
  display: flex;
  align-items: center;
  gap: 12px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 14px;
}

.card-item svg {
  width: 20px;
  height: 20px;
  color: rgba(255, 255, 255, 0.7);
}

.card-footer {
  position: absolute;
  bottom: 20px;
  left: 30px;
  right: 30px;
  text-align: center;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.5);
  font-style: italic;
}

/* CARD BACK */
.card-header-back {
  margin-bottom: 20px;
}

.card-header-back h3 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 20px;
  font-weight: 700;
  color: var(--white);
  text-align: center;
  margin: 0;
}

.card-social-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
  justify-content: center;
}

.card-social-item {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 12px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  color: var(--white);
  text-decoration: none;
  font-size: 12px;
  font-weight: 600;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.card-social-item:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}

.card-social-item svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.card-footer-back {
  position: absolute;
  bottom: 20px;
  left: 30px;
  right: 30px;
  text-align: center;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.5);
  font-style: italic;
}

/* CV DOWNLOAD SECTION */
.cv-download-section {
  margin-top: 60px;
}

.cv-download-card {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 30px;
  align-items: center;
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 30px;
  transition: all 0.4s ease;
}

.cv-download-card:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--crimson);
  transform: translateY(-4px);
  box-shadow: 0 10px 40px rgba(132, 11, 26, 0.3);
}

.cv-icon {
  width: 80px;
  height: 80px;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--crimson) 0%, #a01020 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.cv-icon svg {
  width: 40px;
  height: 40px;
  color: var(--white);
}

.cv-text h3 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 24px;
  font-weight: 800;
  color: var(--white);
  margin: 0 0 8px 0;
}

.cv-text p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 15px;
  line-height: 1.6;
  margin: 0;
}

/* EXPERIENCE CARDS */
.experience-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-top: 40px;
}

.experience-card {
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 28px;
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
}

.experience-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--crimson), var(--ink));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
}

.experience-card:hover::before {
  transform: scaleX(1);
}

.experience-card:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(132, 11, 26, 0.5);
  transform: translateY(-4px);
  box-shadow: 0 10px 30px rgba(132, 11, 26, 0.2);
}

.experience-header {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 16px;
}

.experience-icon {
  width: 48px;
  height: 48px;
  min-width: 48px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--crimson) 0%, #a01020 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.experience-icon svg {
  width: 24px;
  height: 24px;
  color: var(--white);
}

.experience-title-block {
  flex: 1;
}

.experience-card h3 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 20px;
  font-weight: 700;
  color: var(--white);
  margin: 0 0 6px 0;
  letter-spacing: -0.01em;
}

.experience-company {
  font-size: 14px;
  color: var(--crimson);
  font-weight: 600;
  margin: 0;
}

.experience-period {
  font-size: 13px;
  color: var(--ink);
  font-weight: 600;
  margin: 0 0 12px 0;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.experience-description {
  font-size: 15px;
  color: rgba(255, 255, 255, 0.75);
  line-height: 1.7;
  margin: 0;
}

/* EDUCATION CARDS */
.education-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-top: 40px;
}

.education-card {
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 28px;
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
}

.education-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--ink), var(--blue));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
}

.education-card:hover::before {
  transform: scaleX(1);
}

.education-card:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(26, 64, 84, 0.5);
  transform: translateY(-4px);
  box-shadow: 0 10px 30px rgba(26, 64, 84, 0.2);
}

.education-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.education-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--ink) 0%, var(--blue) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}

.education-icon svg {
  width: 24px;
  height: 24px;
  color: var(--white);
}

.education-badge {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 6px 12px;
  border-radius: 20px;
  background: rgba(132, 11, 26, 0.2);
  color: var(--crimson);
  border: 1px solid rgba(132, 11, 26, 0.3);
}

.education-badge.completed {
  background: rgba(100, 154, 186, 0.2);
  color: var(--blue);
  border-color: rgba(100, 154, 186, 0.3);
}

.education-badge.active {
  background: rgba(26, 64, 84, 0.2);
  color: var(--ink);
  border-color: rgba(26, 64, 84, 0.3);
}

.education-badge.ongoing {
  background: rgba(132, 11, 26, 0.15);
  color: rgba(255, 255, 255, 0.8);
  border-color: rgba(255, 255, 255, 0.2);
}

.education-card h3 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 20px;
  font-weight: 700;
  color: var(--white);
  margin: 0 0 10px 0;
  letter-spacing: -0.01em;
}

.education-institution {
  font-size: 14px;
  color: var(--ink);
  font-weight: 600;
  margin: 0 0 6px 0;
}

.education-period {
  font-size: 13px;
  color: var(--blue);
  font-weight: 600;
  margin: 0 0 12px 0;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.education-description {
  font-size: 15px;
  color: rgba(255, 255, 255, 0.75);
  line-height: 1.7;
  margin: 0;
}

.certifications-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.cert-item {
  font-size: 13px;
  padding: 6px 12px;
  background: rgba(26, 64, 84, 0.15);
  border: 1px solid rgba(26, 64, 84, 0.3);
  border-radius: 8px;
  color: rgba(255, 255, 255, 0.8);
  font-weight: 500;
  transition: all 0.3s ease;
}

.cert-item:hover {
  background: rgba(26, 64, 84, 0.25);
  border-color: var(--ink);
  color: var(--white);
}

/* ABOUT PAGE CONTAINERS AND SPACING */
.about-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 60px;
}

.about-section {
  padding: 100px 0;
}

/* Prima sezione about (dopo hero) con meno spazio */
.about-section:first-of-type {
  padding-top: 30px;
}

/* LARGE SECTION TITLES */
.section-title-large {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 900;
  color: var(--crimson);
  text-align: center;
  margin-bottom: 60px;
  letter-spacing: -0.03em;
  text-shadow: 0 0 40px rgba(132, 11, 26, 0.3);
}

/* EDUCATION TIMELINE */
.education-timeline {
  position: relative;
  max-width: 900px;
  margin: 60px auto;
  padding: 40px 0;
}

.timeline-line {
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(180deg, 
    transparent 0%, 
    var(--ink) 10%, 
    var(--ink) 90%, 
    transparent 100%);
  transform: translateX(-50%);
}

.timeline-step {
  position: relative;
  margin-bottom: 80px;
}

.timeline-step:last-child {
  margin-bottom: 0;
}

.timeline-dot {
  position: absolute;
  left: 50%;
  top: 0;
  width: 20px;
  height: 20px;
  background: var(--ink);
  border: 4px solid rgba(26, 64, 84, 0.2);
  border-radius: 50%;
  transform: translateX(-50%);
  z-index: 2;
  box-shadow: 0 0 0 8px rgba(26, 64, 84, 0.1);
}

.timeline-dot.pulsing {
  background: var(--crimson);
  border-color: rgba(132, 11, 26, 0.3);
  box-shadow: 0 0 0 8px rgba(132, 11, 26, 0.15);
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { transform: translateX(-50%) scale(1); }
  50% { transform: translateX(-50%) scale(1.2); }
}

.timeline-year {
  position: absolute;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 14px;
  font-weight: 800;
  color: var(--ink);
  background: rgba(26, 64, 84, 0.1);
  padding: 6px 16px;
  border-radius: 20px;
  white-space: nowrap;
  border: 1px solid rgba(26, 64, 84, 0.2);
  z-index: 3;
  top: -50px;
}

/* Anno sopra la card a sinistra per step dispari */
.timeline-step:nth-child(odd) .timeline-year {
  left: 0;
}

/* Anno sopra la card a destra per step pari */
.timeline-step:nth-child(even) .timeline-year {
  right: 0;
}

.timeline-step.active .timeline-year {
  background: rgba(132, 11, 26, 0.15);
  color: var(--crimson);
  border-color: rgba(132, 11, 26, 0.3);
}

.timeline-card {
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 28px;
  width: calc(50% - 60px);
  margin-top: 70px;
  transition: all 0.4s ease;
}

.timeline-step:nth-child(odd) .timeline-card {
  margin-left: 0;
  margin-right: auto;
}

.timeline-step:nth-child(even) .timeline-card {
  margin-left: auto;
  margin-right: 0;
}

.timeline-card.highlighted {
  border-color: rgba(132, 11, 26, 0.4);
  background: rgba(132, 11, 26, 0.05);
  box-shadow: 0 10px 40px rgba(132, 11, 26, 0.2);
}

.timeline-card:hover {
  transform: translateY(-4px);
  border-color: rgba(26, 64, 84, 0.5);
  box-shadow: 0 10px 30px rgba(26, 64, 84, 0.2);
}

.timeline-card.highlighted:hover {
  border-color: rgba(132, 11, 26, 0.6);
  box-shadow: 0 10px 40px rgba(132, 11, 26, 0.3);
}

.timeline-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--ink) 0%, var(--blue) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.timeline-card.highlighted .timeline-icon {
  background: linear-gradient(135deg, var(--crimson) 0%, #a01020 100%);
}

.timeline-icon svg {
  width: 24px;
  height: 24px;
  color: var(--white);
}

.timeline-card h3 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 22px;
  font-weight: 700;
  color: var(--white);
  margin: 0 0 8px 0;
}

.timeline-institution {
  font-size: 14px;
  color: var(--ink);
  font-weight: 600;
  margin: 0 0 12px 0;
}

.timeline-description {
  font-size: 15px;
  color: rgba(255, 255, 255, 0.75);
  line-height: 1.7;
  margin: 0;
}

.current-badge {
  display: inline-block;
  margin-top: 16px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 6px 12px;
  border-radius: 20px;
  background: rgba(132, 11, 26, 0.2);
  color: var(--crimson);
  border: 1px solid rgba(132, 11, 26, 0.3);
}

/* EDUCATION EXTRAS GRID */
.education-extras-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
  margin-top: 60px;
  padding: 0 60px;
  max-width: 1400px;
  margin-left: auto;
  margin-right: auto;
}

.education-extra-card {
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 32px;
  transition: all 0.4s ease;
}

.education-extra-card:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(26, 64, 84, 0.5);
  transform: translateY(-4px);
  box-shadow: 0 10px 30px rgba(26, 64, 84, 0.2);
}

.extra-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
}

.extra-icon {
  width: 48px;
  height: 48px;
  min-width: 48px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--ink) 0%, var(--blue) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}

.extra-icon svg {
  width: 24px;
  height: 24px;
  color: var(--white);
}

.education-extra-card h3 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 20px;
  font-weight: 700;
  color: var(--white);
  margin: 0;
  flex: 1;
}

.extra-description {
  font-size: 15px;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.7;
  margin-bottom: 20px;
}

.autodidact-features {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.8);
}

.feature-item svg {
  color: var(--ink);
  flex-shrink: 0;
}

/* MODERN SKILLS GRID */
.skills-modern-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 40px;
}

.skill-modern-card {
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 32px;
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
}

.skill-modern-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--crimson), var(--ink));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
}

.skill-modern-card:hover::before {
  transform: scaleX(1);
}

.skill-modern-card:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(132, 11, 26, 0.5);
  transform: translateY(-8px);
  box-shadow: 0 15px 40px rgba(132, 11, 26, 0.3);
}

.skill-modern-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--crimson) 0%, #a01020 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.skill-modern-icon svg {
  width: 28px;
  height: 28px;
  color: var(--white);
}

.skill-modern-card h3 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 20px;
  font-weight: 700;
  color: var(--white);
  margin: 0 0 12px 0;
}

.skill-modern-card p {
  font-size: 15px;
  color: rgba(255, 255, 255, 0.75);
  line-height: 1.7;
  margin: 0;
}

/* CTA PORTFOLIO SECTION */
.cta-portfolio-section {
  padding: 120px 60px;
  position: relative;
  overflow: hidden;
}

.cta-portfolio-container {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
  position: relative;
  z-index: 2;
}

.cta-portfolio-decoration {
  position: absolute;
  top: -100px;
  right: -100px;
  pointer-events: none;
  z-index: 1;
}

.decoration-circle {
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(132, 11, 26, 0.15), transparent 70%);
  position: absolute;
}

.decoration-circle:nth-child(2) {
  width: 200px;
  height: 200px;
  top: 150px;
  right: 100px;
  background: radial-gradient(circle, rgba(26, 64, 84, 0.1), transparent 70%);
}

.cta-portfolio-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 32px;
  border-radius: 20px;
  background: linear-gradient(135deg, var(--crimson) 0%, #a01020 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 40px rgba(132, 11, 26, 0.4);
}

.cta-portfolio-icon svg {
  width: 40px;
  height: 40px;
  color: var(--white);
}

.cta-portfolio-container h2 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 900;
  color: var(--white);
  margin: 0 0 24px 0;
  letter-spacing: -0.02em;
}

.cta-portfolio-container p {
  font-size: 18px;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.8);
  margin: 0 0 40px 0;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 18px 36px;
  font-size: 17px;
}

/* CTA CONTACT SECTION */
.cta-contact-section {
  padding: 120px 60px;
  background: linear-gradient(180deg, rgba(26, 64, 84, 0.1) 0%, rgba(132, 11, 26, 0.05) 100%);
  position: relative;
  overflow: hidden;
}

.cta-contact-container {
  max-width: 1000px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.cta-contact-decoration {
  position: absolute;
  top: 50%;
  left: -200px;
  transform: translateY(-50%);
  pointer-events: none;
}

.decoration-dots {
  width: 400px;
  height: 400px;
  background-image: radial-gradient(circle, rgba(132, 11, 26, 0.15) 2px, transparent 2px);
  background-size: 30px 30px;
  opacity: 0.3;
}

.cta-contact-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  background: rgba(132, 11, 26, 0.15);
  border: 1px solid rgba(132, 11, 26, 0.3);
  border-radius: 30px;
  color: var(--crimson);
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 24px;
}

/* Forza il badge e il titolo su righe separate */
.cta-contact-content {
  text-align: center;
  margin-bottom: 48px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.cta-contact-badge {
  width: fit-content;
  margin-bottom: 20px;
}

.cta-contact-badge svg {
  animation: rotate 3s linear infinite;
}

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

.cta-contact-content h2 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 900;
  color: var(--white);
  margin: 0 0 24px 0;
  letter-spacing: -0.03em;
}

.cta-contact-content p {
  font-size: 18px;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.8);
  margin: 0;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.cta-contact-actions {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

/* CATEGORY NAVIGATION */
.category-nav-section {
  padding: 40px 60px;
  position: relative;
}

.category-nav {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  max-width: 800px;
  margin: 0 auto;
}

.category-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  color: var(--white);
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
  transition: all 0.3s ease;
}

.category-btn svg {
  width: 20px;
  height: 20px;
  color: var(--crimson);
}

.category-btn:hover {
  background: rgba(132, 11, 26, 0.1);
  border-color: var(--crimson);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(132, 11, 26, 0.3);
}

/* PORTFOLIO GRID */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
  gap: 32px;
  margin-top: 60px;
}

/* PROJECT CARD */
.project-card {
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  overflow: hidden;
  transition: all 0.4s ease;
  display: flex;
  flex-direction: column;
}

.project-card:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--crimson);
  transform: translateY(-8px);
  box-shadow: 0 20px 50px rgba(132, 11, 26, 0.3);
}

.project-image {
  position: relative;
  width: 100%;
  height: 240px;
  overflow: hidden;
  background: rgba(26, 64, 84, 0.1);
}

.project-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.project-card:hover .project-image img {
  transform: scale(1.05);
}

.project-overlay {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 2;
}

.project-category {
  display: inline-block;
  padding: 6px 14px;
  background: var(--crimson);
  color: var(--white);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-radius: 6px;
  box-shadow: 0 4px 12px rgba(132, 11, 26, 0.4);
}

.project-content {
  padding: 28px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.project-content h3 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 22px;
  font-weight: 700;
  color: var(--white);
  margin: 0 0 14px 0;
  letter-spacing: -0.01em;
}

.project-content p {
  font-size: 15px;
  color: rgba(255, 255, 255, 0.75);
  line-height: 1.7;
  margin: 0 0 20px 0;
  flex: 1;
}

.project-tech {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}

.tech-tag {
  display: inline-block;
  padding: 6px 12px;
  background: rgba(26, 64, 84, 0.15);
  border: 1px solid rgba(26, 64, 84, 0.3);
  border-radius: 6px;
  color: var(--ink);
  font-size: 12px;
  font-weight: 600;
  transition: all 0.3s ease;
}

.tech-tag:hover {
  background: rgba(26, 64, 84, 0.25);
  border-color: var(--ink);
}

.project-links {
  display: flex;
  gap: 12px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.project-link {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  background: rgba(132, 11, 26, 0.1);
  border: 1px solid rgba(132, 11, 26, 0.3);
  border-radius: 8px;
  color: var(--crimson);
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  transition: all 0.3s ease;
  flex: 1;
  justify-content: center;
}

.project-link svg {
  width: 16px;
  height: 16px;
}

.project-link:hover {
  background: var(--crimson);
  border-color: var(--crimson);
  color: var(--white);
  transform: translateY(-2px);
}

/* RESPONSIVE DESIGN FOR NEW SECTIONS */
@media (max-width: 1200px) {
  .skills-modern-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .portfolio-grid {
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  }
}

@media (max-width: 1024px) {
  .about-container {
    padding: 0 40px;
  }
  
  .about-section {
    padding: 80px 0;
  }
  
  .profile-section {
    grid-template-columns: 250px 1fr;
    gap: 40px;
  }
  
  .profile-image-container {
    width: 250px;
    height: 250px;
  }
  
  .experience-grid,
  .education-grid {
    grid-template-columns: 1fr;
  }
  
  .timeline-card {
    width: calc(50% - 40px);
  }
  
  .education-extras-grid {
    grid-template-columns: 1fr;
    padding: 0 40px;
  }
  
  .skills-modern-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .cta-portfolio-section,
  .cta-contact-section {
    padding: 100px 40px;
  }
  
  .category-nav-section {
    padding: 40px 40px;
  }
  
  .portfolio-grid {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
  }
}

@media (max-width: 768px) {
  .about-container {
    padding: 0 32px;
  }
  
  .about-section {
    padding: 60px 0;
  }
  
  .section-title-large {
    font-size: clamp(28px, 6vw, 40px);
    margin-bottom: 40px;
  }
  
  .profile-section {
    grid-template-columns: 1fr;
    gap: 40px;
    text-align: center;
  }
  
  .profile-image-container {
    width: 200px;
    height: 200px;
    margin: 0 auto;
  }
  
  .profile-description h2 {
    font-size: 28px;
  }
  
  .business-card-wrapper {
    margin: 0 auto;
  }
  
  .cv-download-card {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 20px;
  }
  
  .cv-icon {
    margin: 0 auto;
  }
  
  .card-social-grid {
    grid-template-columns: 1fr;
  }
  
  .experience-grid,
  .education-grid {
    grid-template-columns: 1fr;
  }
  
  .experience-card,
  .education-card {
    padding: 24px;
  }
  
  .timeline-line {
    left: 20px;
  }
  
  .timeline-dot {
    left: 20px;
  }
  
  .timeline-year {
    left: 50% !important;
    right: auto !important;
    transform: translateX(-50%);
    top: -45px;
  }
  
  .timeline-card {
    width: calc(100% - 100px);
    margin-left: 100px !important;
    margin-right: 0 !important;
  }
  
  .education-extras-grid {
    grid-template-columns: 1fr;
    padding: 0 32px;
  }
  
  .skills-modern-grid {
    grid-template-columns: 1fr;
  }
  
  .cta-portfolio-section,
  .cta-contact-section {
    padding: 80px 32px;
  }
  
  .cta-portfolio-container p,
  .cta-contact-content p {
    font-size: 16px;
  }
  
  .cta-contact-actions {
    flex-direction: column;
    align-items: stretch;
  }
  
  .cta-contact-actions .btn {
    width: 100%;
    justify-content: center;
  }
  
  .category-nav-section {
    padding: 30px 32px;
  }
  
  .category-nav {
    gap: 12px;
  }
  
  .category-btn {
    padding: 12px 20px;
    font-size: 14px;
  }
  
  .portfolio-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  
  .project-content {
    padding: 24px;
  }
  
  .project-links {
    flex-direction: column;
  }
  
  .project-link {
    width: 100%;
  }
}

@media (max-width: 480px) {
  .about-container {
    padding: 0 24px;
  }
  
  .about-section {
    padding: 50px 0;
  }
  
  .profile-image-container {
    width: 180px;
    height: 180px;
  }
  
  .profile-image {
    border-width: 3px;
  }
  
  .business-card {
    height: 300px;
  }
  
  .card-front,
  .card-back {
    padding: 20px;
  }
  
  .card-social-grid {
    gap: 6px;
  }
  
  .card-social-item {
    padding: 6px 10px;
    font-size: 11px;
    gap: 5px;
  }
  
  .card-social-item svg {
    width: 14px;
    height: 14px;
  }
  
  .card-name h3 {
    font-size: 20px;
  }
  
  .cv-download-card {
    padding: 24px;
  }
  
  .cv-text h3 {
    font-size: 20px;
  }
  
  .experience-card,
  .education-card {
    padding: 20px;
  }
  
  .experience-icon,
  .education-icon {
    width: 40px;
    height: 40px;
    min-width: 40px;
  }
  
  .experience-icon svg,
  .education-icon svg {
    width: 20px;
    height: 20px;
  }
  
  .experience-card h3,
  .education-card h3 {
    font-size: 18px;
  }
  
  .timeline-card {
    width: calc(100% - 80px);
    margin-left: 80px !important;
    padding: 20px;
  }
  
  .timeline-icon {
    width: 40px;
    height: 40px;
  }
  
  .timeline-icon svg {
    width: 20px;
    height: 20px;
  }
  
  .education-extra-card {
    padding: 24px;
  }
  
  .education-extras-grid {
    padding: 0 24px;
  }
  
  .extra-icon {
    width: 40px;
    height: 40px;
    min-width: 40px;
  }
  
  .extra-icon svg {
    width: 20px;
    height: 20px;
  }
  
  .skill-modern-card {
    padding: 24px;
  }
  
  .skill-modern-icon {
    width: 48px;
    height: 48px;
  }
  
  .skill-modern-icon svg {
    width: 24px;
    height: 24px;
  }
  
  .skill-modern-card h3 {
    font-size: 18px;
  }
  
  .cta-portfolio-section,
  .cta-contact-section {
    padding: 60px 24px;
  }
  
  .cta-portfolio-icon {
    width: 64px;
    height: 64px;
  }
  
  .cta-portfolio-icon svg {
    width: 32px;
    height: 32px;
  }
  
  .cta-btn {
    padding: 16px 28px;
    font-size: 15px;
    width: 100%;
    justify-content: center;
  }
}

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

/* Titoli rossi per sezioni specifiche */
.red-title {
  color: var(--crimson) !important;
  position: relative;
  display: inline-block;
}

/* Animazione professionale premium per "Hai un progetto in mente?" */
.cta-contact-content h2 {
  color: var(--crimson) !important;
  position: relative;
  display: inline-block;
  background: linear-gradient(
    120deg,
    var(--ink) 0%,
    var(--crimson) 25%,
    var(--ink) 50%,
    var(--crimson) 75%,
    var(--ink) 100%
  );
  background-size: 200% auto;
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: shimmer 3s linear infinite;
  filter: drop-shadow(0 0 20px rgba(132, 11, 26, 0.3));
}

@keyframes shimmer {
  0% {
    background-position: 0% center;
  }
  100% {
    background-position: 200% center;
  }
}

/* Effetto hover interattivo */
.cta-contact-content h2::before {
  content: '';
  position: absolute;
  inset: -4px;
  background: linear-gradient(
    45deg,
    transparent 30%,
    rgba(26, 64, 84, 0.15) 40%,
    rgba(132, 11, 26, 0.15) 60%,
    transparent 70%
  );
  border-radius: 8px;
  opacity: 0;
  transition: opacity 0.6s ease;
  pointer-events: none;
  z-index: -1;
}

.cta-contact-content:hover h2::before {
  opacity: 1;
}

/* Sottile effetto di profondità */
.cta-contact-content h2::after {
  content: attr(data-text);
  position: absolute;
  left: 2px;
  top: 2px;
  z-index: -1;
  background: linear-gradient(
    120deg,
    rgba(26, 64, 84, 0.3),
    rgba(132, 11, 26, 0.3)
  );
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: blur(8px);
}