@charset "UTF-8";
* {
  box-sizing: border-box;
}

body {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
  margin: 0;
  color: #1e1e1e;
  background: #fffdf6;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 1rem;
}

/* =========================
   HEADER
   ========================= */
.site-header {
  background-color: #222;
  box-shadow: 0 2px 6px rgba(10, 10, 10, 0.04);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem;
}

.logo-wrapper {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.logo-img {
  width: 33px;
  height: 33px;
  object-fit: contain;
  display: block;
  filter: drop-shadow(0 0 4px #ffd699) drop-shadow(0 0 8px #ffcc66) drop-shadow(0 0 12px #ffaa33);
  animation: pulse-logo 1.5s infinite alternate;
}

@keyframes pulse-logo {
  from {
    filter: drop-shadow(0 0 4px #ffd699) drop-shadow(0 0 8px #ffcc66) drop-shadow(0 0 12px #ffaa33);
  }
  to {
    filter: drop-shadow(0 0 8px #ffe6b3) drop-shadow(0 0 16px #ffdd99) drop-shadow(0 0 24px #ffbb66);
  }
}
.logo-text {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 700;
  font-family: "Playfair Display", serif;
  color: #fff;
  letter-spacing: 1px;
  text-shadow: 0 0 8px #ffd699, 0 0 16px #ffcc66, 0 0 24px #ffaa33;
  animation: pulse-galaxy 2.5s infinite alternate;
}

@keyframes pulse-galaxy {
  from {
    text-shadow: 0 0 4px #ffd699, 0 0 8px #ffcc66, 0 0 12px #ffaa33;
  }
  to {
    text-shadow: 0 0 16px #ffe6b3, 0 0 32px #ffdd99, 0 0 48px #ffbb66;
  }
}
/* --- NAV DESKTOP --- */
.primary-nav {
  position: relative;
}

.primary-nav ul {
  list-style: none;
  display: flex;
  /* orizzontale su desktop */
  gap: 1rem;
  margin: 0;
  padding: 0;
}

.primary-nav a {
  font-family: "Poppins", sans-serif;
  font-weight: 600;
  text-decoration: none;
  color: #fff;
  font-size: 1.2rem;
  transition: color 0.7s ease-in-out, text-shadow 0.7s ease-in-out, transform 0.7s ease-in-out;
}

.primary-nav a:hover {
  color: #ffd699;
  text-shadow: 0 0 16px #ffd699, 0 0 32px #ffcc66, 0 0 48px #ffaa33;
  transform: scale(1.15);
}

@keyframes pulse-gold {
  from {
    text-shadow: 0 0 5px #ffd699, 0 0 10px #ffcc66, 0 0 15px #ffaa33;
  }
  to {
    text-shadow: 0 0 12px #ffe6b3, 0 0 24px #ffdd99, 0 0 32px #ffbb66;
  }
}
.nav-toggle {
  display: none;
  background: none;
  border: 0;
  font-size: 1.25rem;
  color: #fff;
  cursor: pointer;
  transition: color 0.3s ease;
}
.nav-toggle:hover {
  color: #ffd699;
}

/* NAVBAR STICKY + EFFETTO SCROLL */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  transition: background-color 0.6s ease, box-shadow 0.6s ease, padding 0.3s ease;
  z-index: 1000;
  box-shadow: 0 0 33px rgba(247, 181, 0, 0.6);
}

.site-header.scrolled {
  background-color: rgba(0, 0, 0, 0.85);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
  padding: 0.5rem 0;
}

body {
  padding-top: 100px;
  /* per evitare che la header copra il contenuto */
}

@media (max-width: 800px) {
  body {
    padding-top: 60px;
    /* o quanto basta per avere spazio corretto */
  }
}
/* Effetto fade-in all'avvio */
@keyframes fadeDown {
  0% {
    opacity: 0;
    transform: translateY(-20px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}
.site-header {
  animation: fadeDown 1s ease forwards;
}

/* --- NAV MOBILE (SOTTO 800px) --- */
@media (max-width: 800px) {
  .header-inner {
    flex-direction: column;
    /* logo e nav uno sotto l’altro */
    align-items: center;
    /* centra tutto */
  }
  .primary-nav a {
    display: block;
    /* importante: i link devono essere blocchi */
    width: 100%;
    text-align: center;
    color: #fff;
    font-size: 1.2rem;
  }
}
@keyframes fadeInMenu {
  from {
    opacity: 0;
    transform: translateY(-5px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
/* Nascondiamo il checkbox */
#menu-toggle {
  display: none;
}

/* Icona hamburger */
.hamburger {
  width: 30px;
  height: 22px;
  display: flex;
  margin-top: 1rem;
  flex-direction: column;
  justify-content: space-between;
  cursor: pointer;
}

.hamburger span {
  height: 4px;
  background-color: white;
  border-radius: 2px;
}

/* Menu base nascosto su mobile */
.primary-nav {
  list-style: none;
  display: none;
  margin-top: 1rem;
}

.primary-nav li {
  margin: 0.5rem 0;
}

.primary-nav a {
  color: white;
  text-decoration: none;
  font-size: 1.2rem;
}

/* Quando la checkbox è attiva -> mostra menu */
#menu-toggle:checked ~ .primary-nav {
  display: block;
}

/* Desktop: mostra menu e nascondi hamburger */
@media (min-width: 768px) {
  .hamburger {
    display: none;
  }
  .primary-nav {
    display: flex;
    gap: 2rem;
    margin: 0;
  }
  .menu li {
    margin: 0;
  }
}
/* =========================
   HERO
   ========================= */
.hero {
  height: 100svh;
  height: 100vh;
  /* riempie tutta la viewport */
  min-height: 500px;
  /* opzionale, non crolla su schermi piccoli */
  display: flex;
  /* per centrare hero-inner */
  align-items: center;
  /* centratura verticale */
  justify-content: center;
  /* centratura orizzontale, opzionale */
  padding: 0;
  /* togli i vecchi padding */
}

@media (max-width: 1100px) {
  .hero {
    padding-left: 2rem;
    padding-right: 2rem;
  }
}
@media (min-width: 1101px) {
  .hero-inner {
    transform: translateY(-50px);
  }
}
.hero-inner {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 1.8rem;
  align-items: center;
  position: relative;
  border-radius: 16px;
}

@media (min-height: 820px) and (max-width: 480px) {
  .hero-inner {
    transform: translateY(-10%);
    /* sposta leggermente verso l’alto */
  }
}
.hero-inner::before {
  content: "";
  position: absolute;
  top: -1.5rem;
  left: -1.5rem;
  right: -1.5rem;
  bottom: -1.5rem;
  border-radius: 16px;
  box-shadow: 0 0 40px 15px rgba(255, 215, 0, 0.3);
  z-index: -1;
  /* Nuove proprietà per animazione */
  opacity: 0;
  animation: fadeGlow 1.2s ease-out forwards;
  animation-delay: 0.5s;
}

@media (max-width: 1100px) {
  .hero-inner::before {
    left: -1rem;
    right: -1rem;
  }
}
@keyframes fadeGlow {
  0% {
    opacity: 0;
    box-shadow: 0 0 20px 5px rgba(255, 215, 0, 0.2);
  }
  50% {
    opacity: 1;
    box-shadow: 0 0 50px 20px rgba(255, 215, 0, 0.35);
  }
  100% {
    opacity: 1;
    box-shadow: 0 0 40px 15px rgba(255, 215, 0, 0.3);
  }
}
.hero-photo {
  width: 280px;
  height: 280px;
  object-fit: cover;
  border-radius: 12px;
  box-shadow: 0 0 12px rgba(255, 215, 0, 0.6);
  animation: slideInLeft 2s ease-out forwards;
}

.hero-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.75rem;
  transform: translateY(-0.2rem);
}

.hero-text h2 {
  opacity: 0;
  transform: translateX(50px) translateY(10px);
  animation: slideInRight 2s ease-out forwards;
  animation-delay: 0.3s;
}

.hero-text p {
  opacity: 0;
  transform: translateX(50px) translateY(10px);
  animation: slideInRight 2s ease-out forwards;
  animation-delay: 0.6s;
}

.hero-text .cta a {
  display: inline-block;
  background: #ff6b00;
  color: #000;
  padding: 0.8rem 1.3rem;
  border-radius: 0.8rem;
  text-decoration: none;
  font-weight: 600;
  box-shadow: 0 0 10px #ff6b00;
  transition: 0.3s ease;
  opacity: 0;
  transform: translateY(5px);
  animation: fadeSlideBtn 0.9s ease-out forwards;
  animation-delay: 0.8s;
}
.hero-text .cta a:hover {
  background: rgb(229.5, 96.3, 0);
  box-shadow: 0 0 15px #ff6b00;
  transform: scale(1.05);
}

@keyframes fadeSlideBtn {
  0% {
    opacity: 0;
    transform: translateY(5px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}
.hero-text h2 {
  font-size: 2.7rem;
  margin: 0;
}

.hero-text p {
  line-height: 1.45;
}

@keyframes slideInLeft {
  0% {
    opacity: 0;
    transform: translateX(-50px);
  }
  100% {
    opacity: 1;
    transform: translateX(0);
  }
}
@keyframes slideInRight {
  0% {
    opacity: 0;
    transform: translateX(50px);
  }
  100% {
    opacity: 1;
    transform: translateX(0);
  }
}
@keyframes fadeInDelay {
  0% {
    opacity: 0;
    transform: translateY(10px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}
@media (max-width: 768px) {
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .hero-photo {
    width: 200px;
    height: 200px;
    margin: 0 auto;
    display: block;
  }
  .hero-text {
    text-align: center;
    align-items: center;
  }
  .hero-text h2 {
    font-size: 2rem;
  }
  .hero-text p {
    font-size: 1rem;
    line-height: 1.4;
  }
  .hero-text .cta {
    justify-content: center;
  }
  .hero-inner::before {
    top: -1rem;
    left: -1rem;
    right: -1rem;
    bottom: -1rem;
    box-shadow: 0 0 30px 10px rgba(255, 215, 0, 0.25);
  }
}
@media (max-width: 480px) {
  .hero-photo {
    width: 160px;
    height: 160px;
  }
  .hero-text h2 {
    font-size: 1.8rem;
  }
  .hero-text p {
    font-size: 0.95rem;
  }
  .hero-inner::before {
    top: -0.8rem;
    left: -0.8rem;
    right: -0.8rem;
    bottom: -0.8rem;
    box-shadow: 0 0 25px 8px rgba(255, 215, 0, 0.25);
  }
}
/*SKILLS SECTION*/
.skills {
  min-height: auto;
  padding-bottom: 7rem;
  background: #fffdf6;
  padding: 2rem 4rem 5rem;
  margin-top: -6rem;
}

.skills h2 {
  text-align: center;
  color: #f7b500;
  font-size: 3rem;
  margin-bottom: 2rem;
  text-shadow: 0 0 10px #ffcc33;
}

.skills h2 span {
  color: #ff6b00;
}

.skills h2:nth-of-type(2) {
  margin-top: 5rem;
}

.skills h2 {
  opacity: 0;
  transform: translateY(12px);
  transition: all 0.8s ease-out;
}

.skills h2.revealed {
  opacity: 1;
  transform: translateY(0);
}

.skills .skills-row {
  display: flex;
  flex-wrap: wrap;
  gap: 5rem;
}

.skills-row .skills-column {
  flex: 1 1 40rem;
}

.skills-column .title {
  font-size: 2.5rem;
  margin: 0 0 1.5rem;
}

.skills-box .skills-content {
  position: relative;
  box-shadow: 0 0 15px rgba(247, 181, 0, 0.33);
  background: #fff8e1;
  border-radius: 0.6rem;
  padding: 0.5rem 1.5rem;
  overflow: hidden;
}

.skills-box .skills-content::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  height: 100%;
  background-color: red;
  z-index: -1;
  transition: 0.5s;
}

.skills-box .skills-content:hover::before {
  width: 100%;
}

.skills-content .progress {
  padding: 1rem 0;
}

.skills-content .progress h3 {
  font-size: 1.7rem;
  display: flex;
  justify-content: space-between;
}

.skills-content .progress h3 span {
  color: black;
}

.skills-content .progress .bar {
  height: 2.5rem;
  border-radius: 0.6rem;
  border: 0.2rem solid #ff6b00;
  padding: 0.5rem;
  margin: 1rem 0;
}

.skills-content .progress .bar span {
  display: block;
  height: 100%;
  border-radius: 0.3rem;
  background-color: #ff6b00;
  width: 0;
  transition: width 1.2s ease;
}

/* --- Quando la colonna è revealed, le barre si riempiono --- */
.skills-column.revealed .bar span {
  width: var(--bar-width);
  transition: width 1.2s ease;
}

/* === TECH SKILLS — COLONNA 1 === */
.skills-row .skills-column:nth-child(1) .skills-content .progress:nth-child(1) .bar span {
  --bar-width: 95%;
  /* HTML5 */
}

.skills-row .skills-column:nth-child(1) .skills-content .progress:nth-child(2) .bar span {
  --bar-width: 95%;
  /* CSS3 & SASS */
}

.skills-row .skills-column:nth-child(1) .skills-content .progress:nth-child(3) .bar span {
  --bar-width: 50%;
  /* JavaScript */
}

.skills-row .skills-column:nth-child(1) .skills-content .progress:nth-child(4) .bar span {
  --bar-width: 50%;
  /* Git & GitHub */
}

/* === TECH SKILLS — COLONNA 2 === */
.skills-row .skills-column:nth-child(2) .skills-content .progress:nth-child(1) .bar span {
  --bar-width: 50%;
  /* React */
}

.skills-row .skills-column:nth-child(2) .skills-content .progress:nth-child(2) .bar span {
  --bar-width: 50%;
  /* Node.js */
}

.skills-row .skills-column:nth-child(2) .skills-content .progress:nth-child(3) .bar span {
  --bar-width: 50%;
  /* Typescript */
}

.skills-row .skills-column:nth-child(2) .skills-content .progress:nth-child(4) .bar span {
  --bar-width: 50%;
  /* PHP & MySQL */
}

/* === SOFT SKILLS — COLONNA 1 === */
.skills-row:nth-of-type(2) .skills-column:nth-child(1) .progress.soft:nth-child(1) .bar span {
  --bar-width: 100%;
}

/* Empatia */
.skills-row:nth-of-type(2) .skills-column:nth-child(1) .progress.soft:nth-child(2) .bar span {
  --bar-width: 100%;
  /* Pazienza */
}

.skills-row:nth-of-type(2) .skills-column:nth-child(1) .progress.soft:nth-child(3) .bar span {
  --bar-width: 100%;
  /* Determinazione */
}

.skills-row:nth-of-type(2) .skills-column:nth-child(1) .progress.soft:nth-child(4) .bar span {
  --bar-width: 100%;
  /* Resilienza */
}

/* === SOFT SKILLS — COLONNA 2 === */
.skills-row:nth-of-type(2) .skills-column:nth-child(2) .progress.soft:nth-child(1) .bar span {
  --bar-width: 100%;
  /* Energia positiva (con glow) */
  animation: glowPulse 2.5s ease-in-out infinite;
}

.skills-row:nth-of-type(2) .skills-column:nth-child(2) .progress.soft:nth-child(2) .bar span {
  --bar-width: 100%;
  /* Affidabilità */
}

.skills-row:nth-of-type(2) .skills-column:nth-child(2) .progress.soft:nth-child(3) .bar span {
  --bar-width: 100%;
  /* Comunicazione efficace */
}

.skills-row:nth-of-type(2) .skills-column:nth-child(2) .progress.soft:nth-child(4) .bar span {
  --bar-width: 100%;
  /* Apprendimento rapido */
}

@keyframes glowPulse {
  0% {
    box-shadow: 0 0 40px 10px #ff6b00, 0 0 80px 20px #ff6b00, 0 0 140px 30px rgba(255, 107, 0, 0.1);
  }
  50% {
    box-shadow: 0 0 90px 20px #ff6b00, 0 0 150px 30px #ff6b00, 0 0 220px 40px rgb(255, 107, 0);
  }
  100% {
    box-shadow: 0 0 40px 10px #ff6b00, 0 0 80px 20px #ff6b00, 0 0 140px 30px rgba(255, 107, 0, 0.1);
  }
}
.skills-column {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.9s ease-out;
}

.skills-column.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* =========================
   FOOTER
   ========================= */
.site-footer {
  padding: 1.5rem 0;
  margin-top: 2rem;
  background-color: #222;
  color: white;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
}

.footer-inner .social-text {
  font-size: 1rem;
  margin-bottom: 0.6rem;
}

.footer-inner .social-links {
  display: flex;
  gap: 0.5rem;
}
.footer-inner .social-links a {
  color: #fff;
  font-size: 2.5rem;
  text-decoration: none;
  transition: transform 0.4s ease, text-shadow 0.6s ease;
}
.footer-inner .social-links a:hover {
  transform: scale(1.8);
  text-shadow: 0 0 5px #ffd699, 0 0 10px #ffcc66, 0 0 15px #ffaa33;
  animation: pulse-gold 1.5s infinite alternate;
}

.footer-inner .copyright {
  font-size: 0.9rem;
  margin-top: 0.5rem;
}

.btn {
  display: inline-block;
  padding: 0.6rem 1rem;
  background: #ff6b00;
  color: white;
  border-radius: 8px;
  text-decoration: none;
}

.hint {
  color: rgb(119.25, 119.25, 119.25);
  font-size: 0.9rem;
}

/* =========================
   PROJECTS PAGE-Solar Edition - Ottimizzato
   ========================= */
/* --- SEZIONE --- */
.projects-section {
  max-width: 1200px;
  margin: 3rem auto;
  padding: 1rem;
}

/* --- GRID --- */
.project-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  justify-items: center;
  width: 100%;
}

/* --- CARD --- */
.project-card {
  background: #fff8e1;
  padding: 2rem;
  border-radius: 1rem;
  box-shadow: 0 0 15px rgba(247, 181, 0, 0.15);
  text-align: center;
  width: 100%;
  max-width: 350px;
  min-height: 600px;
  box-shadow: 0 0 12px rgba(255, 215, 0, 0.6);
  /* Animazione fade-in */
  opacity: 0;
  transform: translateY(20px);
  animation: fadeIn 1.2s ease-out forwards;
  /* Hover */
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  will-change: transform, box-shadow;
  /* Delay progressivo */
}
.project-card:nth-child(1) {
  animation-delay: 0.2s;
}
.project-card:nth-child(2) {
  animation-delay: 0.4s;
}
.project-card:nth-child(3) {
  animation-delay: 0.6s;
}
.project-card:nth-child(4) {
  animation-delay: 0.8s;
}
.project-card:nth-child(5) {
  animation-delay: 1s;
}
.project-card:nth-child(6) {
  animation-delay: 1.2s;
}
.project-card:hover {
  transform: translateY(-5px) scale(1.05);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2), 0 0 15px rgba(255, 215, 0, 0.4);
}
.project-card {
  /* Immagine */
}
.project-card .project-img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  border-radius: 0.8rem;
  margin-bottom: 1rem;
  aspect-ratio: 16/9;
  display: block;
  box-shadow: 0 0 15px rgba(255, 107, 0, 0.2);
}
.project-card h3 {
  color: #ff6b00;
  font-size: 1.5rem;
  margin-bottom: 0.8rem;
}
.project-card p {
  color: #000;
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
}
.project-card .btn {
  display: block;
  background: #ff6b00;
  color: #000;
  padding: 0.8rem 1.3rem;
  border-radius: 0.8rem;
  text-decoration: none;
  font-weight: 600;
  box-shadow: 0 0 10px #ff6b00;
  transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
}
.project-card .btn:hover {
  background: rgb(229.5, 96.3, 0);
  box-shadow: 0 0 15px #ff6b00;
  transform: scale(1.05);
}
.project-card .btn.disabled {
  pointer-events: none;
  cursor: not-allowed;
}

.project-card .btn {
  margin-top: 0.8rem;
}

.project-card .btn + .btn {
  margin-top: 0.6rem;
}

.section-title {
  font-size: 2.5rem;
  color: #f7b500;
  text-align: center;
  margin-bottom: 3rem;
  text-shadow: 0 0 12px #ffcc33;
}

.section-title span {
  color: #ff6b00;
}

.fade-title {
  opacity: 0;
  animation: fadeUpSmooth 1.2s ease-out forwards;
}

/* --- KEYFRAMES --- */
@keyframes fadeIn {
  0% {
    opacity: 0;
    transform: translateY(20px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}
/* --- RESPONSIVE --- */
@media (max-width: 900px) {
  .project-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }
}
@media (max-width: 480px) {
  .project-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
    min-height: 100vh;
  }
}
/* =========================
   CV PAGE-Solar Edition
   ========================= */
.cv-section {
  max-width: 900px;
  margin: 3rem auto;
  padding: 1rem;
  text-align: center;
  opacity: 0;
  transform: translateY(20px);
  animation: cvFadeIn 1.2s ease-out forwards;
}

@keyframes cvFadeIn {
  0% {
    opacity: 0;
    transform: translateY(30px);
    box-shadow: 0 0 5px rgba(247, 181, 0, 0.05);
  }
  50% {
    opacity: 1;
    transform: translateY(10px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}
.cv-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: #f7b500;
  margin-bottom: 2rem;
  text-shadow: 0 0 12px #ffcc33;
}

.cv-title span {
  color: #ff6b00;
}

.cv-box {
  background: #fff8e1;
  padding: 2rem;
  border-radius: 1rem;
  box-shadow: 0 0 15px rgba(247, 181, 0, 0.15);
  text-align: left;
}

.cv-box h3 {
  font-size: 2rem;
  margin-bottom: 0.5rem;
  font-weight: 700;
}

.cv-role {
  font-size: 1.2rem;
  color: #ff6b00;
  font-weight: 600;
}

.cv-block {
  margin-top: 2rem;
}

.cv-block h4 {
  font-size: 1.6rem;
  color: #ff6b00;
  margin-bottom: 0.7rem;
}

.cv-block ul {
  list-style: none;
  padding: 0;
}

.cv-block ul li {
  padding: 0.2rem 0;
  font-size: 1.1rem;
}

.cv-download {
  margin-top: 2rem;
  display: inline-block;
  background: #ff6b00;
  color: #000;
  padding: 0.8rem 1.3rem;
  border-radius: 0.8rem;
  font-weight: 600;
  text-decoration: none;
  box-shadow: 0 0 10px #ff6b00;
  transition: all 0.3s ease;
}
.cv-download:hover {
  background: rgb(229.5, 96.3, 0);
  box-shadow: 0 0 15px #ff6b00;
  transform: scale(1.05);
}

.fade-title {
  opacity: 0;
  animation: fadeUpSmooth 1s ease-out forwards;
}

.fade-card {
  opacity: 0;
  animation: fadeUpSmooth 1.2s ease-out forwards;
  animation-delay: 0.3s;
}

.cv-section .btn.cv-download {
  display: inline-block;
  background: #ff6b00;
  color: #000;
  padding: 0.8rem 1.3rem;
  border-radius: 0.8rem;
  text-decoration: none;
  font-weight: 600;
  box-shadow: 0 0 10px #ff6b00;
  transition: 0.3s ease;
  margin-top: 0;
}

/* distanza tra i due bottoni */
.cv-section .btn.cv-download + .btn.cv-download {
  margin-left: 1rem;
  /* o quanto vuoi tu */
}

.cv-section .btn.cv-download:hover {
  background: rgb(229.5, 96.3, 0);
  box-shadow: 0 0 15px #ff6b00;
  transform: scale(1.05);
}

/* Keyframes generali per tutti gli fade-up */
@keyframes fadeUpSmooth {
  0% {
    opacity: 0;
    transform: translateY(30px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}
/* =========================================================
   CONTACT PAGE-Solar Power Luciano Edition
   ========================================================= */
/* ====== SECTION – Contenitore trasparente ====== */
.contact {
  text-align: center;
  padding: 3rem 1rem;
}

/* ====== ANIMAZIONE TITOLI (come CV e Projects) ====== */
.contact .heading,
.contact .contact-intro {
  opacity: 0;
  transform: translateY(25px);
  animation: contactTitleFade 1.2s ease-out forwards;
}

@keyframes contactTitleFade {
  0% {
    opacity: 0;
    transform: translateY(30px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}
/* Ritardo per il paragrafo */
.contact .contact-intro {
  animation-delay: 0.3s;
}

/* ====== STILE TITOLO ====== */
.contact h2 {
  color: #f7b500;
  font-size: 2.5rem;
  margin-bottom: 1rem;
  text-shadow: 0 0 10px #ffcc33;
}

.contact h2 span {
  color: #ff6b00;
}

p.contact-intro {
  font-size: 1.6rem;
  margin-bottom: 2.5rem;
  color: #1e1e1e;
}

/* ====== CARD CON FORM ====== */
.contact-card {
  max-width: 1000px;
  margin: 0 auto;
  padding: 2.5rem 1.5rem 4rem;
  background: #fff8e1;
  border-radius: 1rem;
  box-shadow: 0 0 15px rgba(247, 181, 0, 0.15);
  transition: 0.3s ease;
  /* Animazione card */
  opacity: 0;
  transform: translateY(20px);
  animation: contactFadeIn 1.2s ease-out forwards;
  animation-delay: 0.5s;
}

.contact-card:hover {
  box-shadow: 0 0 25px rgba(247, 181, 0, 0.35);
}

/* ====== ANIMAZIONE CARD ====== */
@keyframes contactFadeIn {
  0% {
    opacity: 0;
    transform: translateY(30px);
    box-shadow: 0 0 5px rgba(247, 181, 0, 0.05);
  }
  50% {
    opacity: 1;
    transform: translateY(10px);
    box-shadow: 0 0 25px rgba(247, 181, 0, 0.25);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
    box-shadow: 0 0 15px rgba(247, 181, 0, 0.15);
  }
}
/* ====== FORM INPUT ====== */
.contact form {
  max-width: 70rem;
  text-align: center;
}

.contact .input-box {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.contact .input-box input {
  width: 49%;
  padding: 1.3rem;
  font-size: 1.6rem;
  color: #1e1e1e;
  background: #fff;
  border-radius: 0.8rem;
  border: 2px solid #f7b500;
  margin: 0.7rem 0;
  transition: all 0.3s ease;
}

.contact .input-box input:focus {
  border-color: #ff6b00;
  box-shadow: 0 0 12px #ffcc33;
  outline: none;
}

.contact textarea {
  width: 100%;
  height: 250px;
  padding: 1.3rem;
  font-size: 1.6rem;
  color: #1e1e1e;
  background: #fff;
  border-radius: 0.8rem;
  border: 2px solid #f7b500;
  margin: 0.7rem 0;
  resize: none;
  transition: all 0.3s ease;
}

.contact textarea:focus {
  border-color: #ff6b00;
  box-shadow: 0 0 12px #ffcc33;
  outline: none;
}

/* ====== BOTTONI ====== */
.contact .button-box {
  display: flex;
  justify-content: center;
  gap: 2rem;
}

.contact .btn {
  background: transparent;
  color: #ff6b00;
  border: 2px solid #ff6b00;
  padding: 1rem 3rem;
  font-size: 1.6rem;
  border-radius: 0.8rem;
  cursor: pointer;
  transition: all 0.3s ease;
  font-weight: 600;
}

.contact .btn:hover {
  background: #ff6b00;
  color: #fffdf6;
  box-shadow: 0 0 20px #ffcc33;
  transform: translateY(-2px);
}

@media (max-width: 768px) {
  .contact .input-box input,
  .contact textarea {
    width: 100%;
    margin: 0 auto 1rem;
  }
  .contact .input-box input + input {
    margin-left: 0;
  }
  .contact .input-box {
    flex-direction: column;
    gap: 1rem;
    transition: gap 0.3s ease;
  }
}
/* --- Da 900px in giù --- */
@media (max-width: 900px) {
  .contact .input-box {
    flex-direction: column;
    width: 100%;
    gap: 0;
    /* spazio verticale tra i campi della stessa input-box */
  }
  .contact .input-box input,
  .contact textarea {
    width: 100%;
    margin: 0 auto 1rem;
    /* margine in basso per separazione verticale generale */
  }
  /* DISTANZIAMENTO SPECIFICO FRA I DUE CENTRALI */
  .contact .input-box input:nth-child(2) {
    margin-bottom: 1rem;
    /* solo tra email e telefono o soggetto */
  }
}
@media (max-width: 900px) {
  .cv-section {
    padding-top: 4rem;
    /* spazio extra quando nav diventa verticale */
  }
}
/* =========================
   RISOLUZIONE NAV MOBILE
   ========================= */
@media (max-width: 800px) {
  body {
    padding-top: 10vh;
    /* sposta tutto il contenuto sotto logo + nav */
  }
}

/*# sourceMappingURL=styles.css.map */
