/* ---------- GOOGLE FONTS ---------- */
@import url('https://fonts.googleapis.com/css2?family=Abril+Fatface&family=Caveat:wght@700&family=Outfit:wght@300;400;600&display=swap');

/* ---------- CSS VARIABLES ---------- */
:root {
  --red:    #d42b2b;
  --navy:   #1a1f4e;
  --cyan:   #29a9d4;
  --orange: #f5820a;
  --olive:  #8a9020;
  --pink:   #e8185a;
  --white:  #ffffff;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Outfit', sans-serif;
  background: url('img/icare.JPG') center center / cover fixed;
  color: #222;
  overflow-x: hidden;
}

/* ── Fix mobile: background-attachment:fixed non funziona su iOS/Android ── */
@supports (-webkit-touch-callout: none) {
  /* Solo Safari iOS */
  body {
    background-attachment: scroll;
    background-size: cover;
    background-position: center center;
  }
}

/* ================================================
   LOGO BAR — vivace, colorata, moderna
================================================ */
.logo-sticky {
  position: fixed;
  top: 0; left: 0;
  width: 100%;
  z-index: 1000;
  background: linear-gradient(120deg,
    #c8281e 0%, #e8501a 12%, #f7921c 26%, #d4b800 40%,
    #9ba623 54%, #3aabdc 70%, #1c1e3e 85%, #e81c5a 100%
  );
  background-size: 200% 200%;
  animation: barShift 8s ease infinite;
  box-shadow: 0 4px 24px rgba(0,0,0,0.30);
  padding: 12px 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 116px;
}

@keyframes barShift {
  0%   { background-position: 0%   50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0%   50%; }
}

/* immagine logo dentro la barra */
.logo-icare {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.3s ease;
  background: white;
  border-radius: 50px;
  padding: 6px 28px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.25);
}
.logo-icare:hover { transform: scale(1.04); }

.logo-icare img {
  height: 88px;
  width: auto;
  display: block;
  object-fit: contain;
}

/* nasconde vecchi elementi */
.logo-pill, .brush-vertical, .brush-horizontal,
.logo-i, .logo-dot-i, .logo-care,
.logo-c, .logo-a, .logo-r, .logo-e,
.dot-orange, .olive-arc,
.logo-life, .logo-e-reverse { display: none !important; }

/* ================================================
   HERO FULLSCREEN — icare.JPG a tutto schermo
================================================ */
.hero-fullscreen {
  position: relative;
  width: 100%;
  height: 100vh;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: 100px;
  margin-bottom: 0;
  display: block;
}

/* contenitore immagine — si muove con parallax JS */
.hero-image-wrap {
  position: absolute;
  inset: 0;
  /* parte da sotto la barra logo */
  top: 100px;
  height: calc(130% - 100px);
  will-change: transform;
}

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

/* velatura leggera sull'hero */
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0,0,0,0.08) 0%,
    rgba(0,0,0,0.00) 40%,
    rgba(0,0,0,0.40) 100%
  );
  z-index: 1;
  pointer-events: none;
}

/* freccia "Scopri" in basso */
.hero-scroll-hint {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  animation: bounceHint 2s ease-in-out infinite;
}
.scroll-label {
  font-family: 'Outfit', sans-serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.80);
  text-shadow: 0 1px 4px rgba(0,0,0,0.5);
}
.scroll-arrow {
  font-size: 26px;
  color: rgba(255,255,255,0.80);
  text-shadow: 0 1px 4px rgba(0,0,0,0.5);
  line-height: 1;
}
@keyframes bounceHint {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%       { transform: translateX(-50%) translateY(8px); }
}

/* ================================================
   MAIN CONTENT — tutto il corpo della pagina
================================================ */
.main-content {
  position: relative;
  z-index: 2;
  margin-top: 0;
  padding-top: 0;
}

/* ================================================
   CONTENT BG — sfondo icare.JPG fisso mentre scorri
================================================ */
.content-bg {
  position: relative;
  background: transparent;
  margin-top: 0;
  padding-top: 0;
}
.content-bg::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0,0,0,0.55) 0%,
    rgba(0,0,0,0.30) 50%,
    rgba(0,0,0,0.50) 100%
  );
  pointer-events: none; z-index: 0;
}
.content-bg > * { position: relative; z-index: 1; }

/* ================================================
   HEADER / NAV
================================================ */
header {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 22px 0;
  margin: 0;
  /* sfondo colorato opaco con gradiente vivace */
  background: linear-gradient(120deg,
    rgba(200,40,30,0.62)  0%,
    rgba(232,80,26,0.56) 15%,
    rgba(247,146,28,0.54) 30%,
    rgba(155,166,35,0.54) 50%,
    rgba(58,171,220,0.56) 70%,
    rgba(28,30,62,0.62)  85%,
    rgba(232,28,90,0.56) 100%
  );
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  /* nessun gap: attacca direttamente all'hero e allo slider */
  border-top: none;
  border-bottom: none;
}

/* barra nav con sfondo proprio, ben distinto */
.nav-scroll {
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-radius: 60px;
  padding: 10px 30px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.22);
  border: 1px solid rgba(255,255,255,0.6);
  margin-bottom: 0;
  width: fit-content;
  min-width: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.nav-scroll nav {
  display: flex;
  align-items: center;
  gap: 6px;
  width: 100%;
  justify-content: space-evenly;
}

.nav-scroll nav a {
  font-family: 'Outfit', sans-serif;
  font-size: 17px; font-weight: 700;
  text-decoration: none;
  padding: 12px 32px;
  letter-spacing: 2px;
  text-transform: uppercase;
  border-radius: 50px;
  transition: background 0.3s, color 0.3s, box-shadow 0.3s;
  display: inline-block;
  white-space: nowrap;
}

/* colori diversi per ogni voce di navigazione */
.nav-scroll nav a:nth-of-type(1) { color: #29a9d4; }   /* Home — ciano */
.nav-scroll nav a:nth-of-type(2) { color: #f5820a; }   /* Progetti — arancione */
.nav-scroll nav a:nth-of-type(3) { color: #8dc63f; }   /* Chi siamo — verde */
.nav-scroll nav a:nth-of-type(4) { color: #e8185a; }   /* Contatti — fucsia */

.nav-scroll nav a:nth-of-type(1):hover { background: rgba(41,169,212,0.22);  color: #fff; box-shadow: 0 0 12px rgba(41,169,212,0.4); }
.nav-scroll nav a:nth-of-type(2):hover { background: rgba(245,130,10,0.22);  color: #fff; box-shadow: 0 0 12px rgba(245,130,10,0.4); }
.nav-scroll nav a:nth-of-type(3):hover { background: rgba(141,198,63,0.22);  color: #fff; box-shadow: 0 0 12px rgba(141,198,63,0.4); }
.nav-scroll nav a:nth-of-type(4):hover { background: rgba(232,24,90,0.22);   color: #fff; box-shadow: 0 0 12px rgba(232,24,90,0.4); }

/* ================================================
   SLIDER
================================================ */
/* sezione slider: contiene il box visibile + i bottoni fuori dall'overflow */
.slider-section {
  position: relative;
  width: 90%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 20px 0 0 0;
}

.slider-container {
  position: relative;
  width: 90%;
  max-width: 1100px;
  height: 600px;
  overflow: hidden;
  margin: 0 auto;
  border-radius: 18px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.55);
  border: 1px solid rgba(255,255,255,0.10);
}

.slider-track {
  display: flex;
  height: 100%;
  width: 100%;
  transition: transform 0.65s cubic-bezier(0.77,0,0.18,1);
}

.slide {
  position: relative;
  min-width: 100%; width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  background: #060810;
  flex-shrink: 0;
  overflow: hidden;
}
.slide img {
  width: 100%; height: 100%;
  object-fit: contain; object-position: center;
  transition: transform 0.7s ease;
  pointer-events: none;
}
.slide:hover img { transform: scale(1.03); }

.slide-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.55) 0%, rgba(0,0,0,0.15) 35%, transparent 60%);
  pointer-events: none; z-index: 1;
}

/* caption */
.slide-caption {
  position: absolute;
  bottom: 24px; left: 24px;
  z-index: 3;
  max-width: 52%;
  background: rgba(0,0,0,0.08);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  border: 1px solid rgba(41,169,212,0.18);
  border-radius: 10px;
  padding: 10px 16px 13px;
  pointer-events: none;
  opacity: 0; transform: translateY(14px);
  transition: opacity 0.5s ease 0.2s, transform 0.5s ease 0.2s;
}
.caption-tag {
  display: inline-block;
  font-size: 9px; font-weight: 600;
  letter-spacing: 3px; text-transform: uppercase;
  color: #29a9d4;
  border: 1px solid rgba(41,169,212,0.35);
  border-radius: 4px; padding: 2px 7px; margin-bottom: 7px;
  text-shadow: 0 0 8px rgba(41,169,212,0.6);
}
.caption-text {
  font-size: 15px; font-weight: 400; font-style: italic;
  color: rgba(255,255,255,0.95); line-height: 1.5; margin: 0;
  text-shadow: 0 1px 3px rgba(0,0,0,0.9), 0 2px 12px rgba(0,0,0,0.7);
}

/* cta */
.slide-cta {
  position: absolute;
  bottom: 24px; right: 24px;
  z-index: 3;
  display: inline-flex; align-items: center; gap: 7px;
  text-decoration: none;
  padding: 11px 20px; border-radius: 50px;
  background: rgba(0,0,0,0.08);
  border: 1.5px solid rgba(255,255,255,0.22);
  color: rgba(255,255,255,0.95);
  font-family: 'Outfit', sans-serif;
  font-size: 13px; font-weight: 600;
  letter-spacing: 1.5px; text-transform: uppercase;
  overflow: hidden;
  backdrop-filter: blur(2px);
  opacity: 0; transform: translateY(14px);
  transition: opacity 0.5s ease 0.32s, transform 0.5s ease 0.32s,
              background 0.3s, border-color 0.3s, box-shadow 0.3s, color 0.3s;
}
.slide-cta::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(110deg, transparent 25%, rgba(255,255,255,0.14) 50%, transparent 75%);
  background-size: 300% 100%; background-position: 200% center;
  transition: background-position 0.55s ease;
  border-radius: inherit; pointer-events: none;
}
.slide-cta:hover::before { background-position: -100% center; }
.slide-cta:hover {
  background: rgba(41,169,212,0.22); border-color: #29a9d4; color: #29a9d4;
  box-shadow: 0 0 16px rgba(41,169,212,0.38);
}
.cta-text { position: relative; z-index: 1; }
.cta-icon { font-size: 17px; position: relative; z-index: 1; transition: transform 0.3s; }
.slide-cta:hover .cta-icon { transform: translate(3px,-3px); }

/* slide attiva → mostra caption e cta */
.slide.active .slide-caption,
.slide.active .slide-cta { opacity: 1; transform: translateY(0); }

/* fallback prima slide prima che JS carichi */
.slide:first-child .slide-caption,
.slide:first-child .slide-cta { opacity: 1; transform: translateY(0); }

/* -----------------------------------------------
   FRECCE — dentro slider-container
----------------------------------------------- */
.slider-container { position: relative; }

.prev, .next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,0.45);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: white;
  border: 1px solid rgba(255,255,255,0.30);
  padding: 14px 18px;
  font-size: 22px;
  cursor: pointer;
  border-radius: 8px;
  z-index: 20;
  transition: background 0.3s, border-color 0.3s, transform 0.3s;
  user-select: none;
  -webkit-user-select: none;
}
.prev { left: 14px; }
.next { right: 14px; }
.prev:hover, .next:hover {
  background: rgba(41,169,212,0.55);
  border-color: #29a9d4;
  transform: translateY(-50%) scale(1.1);
}

/* -----------------------------------------------
   PALLINI con animazione progress
----------------------------------------------- */
.dots {
  text-align: center;
  padding: 16px 0 28px;
  position: relative;
  z-index: 5;
}

.dot {
  display: inline-block;
  width: 32px; height: 5px;
  margin: 0 4px;
  border-radius: 3px;
  background: rgba(255,255,255,0.25);
  cursor: pointer;
  position: relative;
  overflow: hidden;
  vertical-align: middle;
  transition: background 0.3s;
}

/* barra progress con keyframe — più affidabile cross-browser */
@keyframes dotFill {
  from { width: 0%; }
  to   { width: 100%; }
}

/* -----------------------------------------------
   PALLINI — barre con progress animato
----------------------------------------------- */
.dots {
  text-align: center;
  padding: 16px 0 28px;
  position: relative;
  z-index: 5;
}

.dot {
  display: inline-block;
  width: 36px; height: 5px;
  margin: 0 5px;
  border-radius: 3px;
  background: rgba(255,255,255,0.25);
  cursor: pointer;
  position: relative;
  overflow: hidden;
  vertical-align: middle;
}

.dot::after {
  content: '';
  position: absolute;
  top: 0; left: 0;
  height: 100%;
  width: 0%;
  background: #29a9d4;
  border-radius: 3px;
}

.dot.active::after {
  animation: dotFill 5s linear forwards;
}

/* ================================================
   NEWS
================================================ */
.news { padding: 55px 10% 65px; }
.news h2 {
  text-align: center; margin-bottom: 42px;
  color: var(--white);
  font-family: 'Abril Fatface', serif; font-size: 38px;
  letter-spacing: 1px; text-shadow: 0 2px 14px rgba(0,0,0,0.55);
}
.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px,1fr));
  gap: 24px;
}
.news-card {
  background: rgba(255,255,255,0.88);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  padding: 20px; border-radius: 16px;
  box-shadow: 0 8px 30px rgba(0,0,0,0.22);
  transition: transform 0.3s, box-shadow 0.3s;
  border-top: 3px solid var(--red);
}
.news-card:hover { transform: translateY(-6px); box-shadow: 0 18px 40px rgba(0,0,0,0.28); }
.news-card img { width: 100%; border-radius: 10px; margin-bottom: 14px; transition: transform 0.3s; }
.news-card:hover img { transform: scale(1.03); }
.news-card h3 {
  font-family: 'Abril Fatface', serif; font-size: 19px;
  margin-bottom: 7px; color: var(--navy);
}
.news-card p { font-size: 13px; color: #555; line-height: 1.65; }
.btn-news {
  display: inline-block; margin-top: 13px;
  padding: 7px 18px; background: var(--red);
  color: white; border-radius: 50px; text-decoration: none;
  font-size: 12px; font-weight: 600; letter-spacing: 1px;
  transition: background 0.3s, transform 0.3s, box-shadow 0.3s;
}
.btn-news:hover { background: #b01f1f; transform: scale(1.05); box-shadow: 0 4px 14px rgba(212,43,43,0.4); }

/* ================================================
   PROGETTI
================================================ */
.projects {
  padding: 65px 10%;
  background: rgba(240,246,252,0.82);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border-radius: 32px 32px 0 0;
  box-shadow: 0 -10px 32px rgba(0,0,0,0.14);
  position: relative; z-index: 2;
}
.projects h2 {
  text-align: center; margin-bottom: 40px;
  color: var(--navy);
  font-family: 'Abril Fatface', serif; font-size: 36px;
}
.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px,1fr));
  gap: 24px;
}
.project-card {
  background: white; border-radius: 16px; overflow: hidden;
  box-shadow: 0 6px 20px rgba(0,0,0,0.09);
  transition: transform 0.3s, box-shadow 0.3s;
  border-bottom: 3px solid var(--cyan);
  text-decoration: none;
  color: inherit;
  display: block;
  cursor: pointer;
}
.project-card:hover { transform: translateY(-5px); box-shadow: 0 14px 30px rgba(0,0,0,0.14); }
.project-card img { width: 100%; display: block; transition: transform 0.35s; }
.project-card:hover img { transform: scale(1.04); }

.project-card-body {
  padding: 16px 18px 18px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.project-card h3 {
  font-family: 'Abril Fatface', serif; font-size: 19px;
  color: var(--navy); margin: 0;
}
.project-card p {
  font-size: 13px; color: #666;
  line-height: 1.65; margin: 0;
}

/* CTA "Scopri di più" in basso a destra */
.project-cta {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 5px;
  margin-top: 8px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--cyan);
  transition: color 0.3s, gap 0.3s;
}
.project-cta-arrow {
  font-size: 16px;
  display: inline-block;
  transition: transform 0.3s;
}
.project-card:hover .project-cta {
  color: var(--red);
  gap: 8px;
}
.project-card:hover .project-cta-arrow {
  transform: translate(3px, -3px);
}

/* ================================================
   FOOTER
================================================ */
footer {
  background: rgba(26,31,78,0.82);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: white;
  padding: 50px 10%;
  box-shadow: 0 -4px 16px rgba(0,0,0,0.3);
}
footer::before {
  content: ''; display: block;
  width: 100%; height: 3px;
  background: linear-gradient(90deg,
    var(--red) 0%, var(--orange) 25%, var(--olive) 50%, var(--cyan) 75%, var(--pink) 100%
  );
  margin-bottom: 40px; border-radius: 2px;
}
.footer-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px,1fr));
  gap: 24px;
}
footer h3 { font-family: 'Abril Fatface', serif; font-size: 18px; margin-bottom: 12px; color: var(--pink); }
footer p  { font-size: 13px; line-height: 1.85; color: rgba(255,255,255,0.65); }
footer a  { color: var(--cyan); text-decoration: none; }
footer a:hover { color: var(--pink); }
footer .copyright { text-align: center; margin-top: 32px; font-size: 12px; color: rgba(255,255,255,0.35); letter-spacing: 1px; }

/* ================================================
   MOBILE
================================================ */

/* ══════════════════════════════════════════════════
   RESPONSIVE MOBILE
══════════════════════════════════════════════════ */

/* Fix background-attachment:fixed — non funziona su iOS/Android */
@supports (-webkit-touch-callout: none) {
  body { background-attachment: scroll; }
}

@media (max-width: 768px) {

  /* ── SFONDO: rimosso su mobile, sostituito con colore ── */
  body {
    background: #1c1e3e !important;   /* blu scuro brand — nessuna immagine */
    background-attachment: scroll !important;
  }

  /* ── LOGO STICKY ── */
  .logo-sticky {
    min-height: 60px;
    padding: 5px 10px;
  }
  .logo-icare { padding: 3px 12px; }
  .logo-icare img { height: 42px; }

  /* ── HERO: occupa solo la parte visibile, immagine statica ── */
  .hero-fullscreen {
    height: 52vw;
    min-height: 180px;
    max-height: 300px;
  }
  .hero-image-wrap {
    position: absolute !important;
    top: 0 !important; left: 0 !important;
    right: 0 !important; bottom: 0 !important;
    height: 100% !important;
    transform: none !important;
    will-change: auto;
  }
  .hero-img {
    width: 100%; height: 100%;
    object-fit: cover;
    object-position: center 30%;
  }
  .hero-scroll-hint { bottom: 8px; }
  .scroll-label { font-size: 9px; }
  .scroll-arrow { font-size: 14px; }

  /* ── NAV BAR colorata (homepage): scroll orizzontale, NO wrap ── */
  .nav-scroll { padding: 0 3px; }
  .nav-scroll nav {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding: 5px 8px;
    gap: 2px;
    border-radius: 30px;
    width: auto;
    max-width: 100%;
  }
  .nav-scroll nav::-webkit-scrollbar { display: none; }
  .nav-scroll nav a {
    font-size: 10px;
    padding: 5px 8px;
    letter-spacing: 0;
    white-space: nowrap;
    flex-shrink: 0;
  }

  /* ── MAIN CONTENT ── */
  .main-content { overflow-x: hidden; }
  .content-bg { border-radius: 0; overflow: hidden; }

  /* ── SLIDER ── */
  .slider-section { padding: 10px 0 6px; }
  .slider-container { width: 98%; height: 200px; }
  .slide { border-radius: 10px; overflow: hidden; }

  .slide-caption {
    bottom: 36px;
    left: 8px;
    max-width: 70%;
    padding: 5px 8px 7px;
    border-radius: 7px;
  }
  .caption-tag { font-size: 8px; padding: 2px 6px; }
  .caption-text { font-size: 10px; line-height: 1.3; }

  /* CTA sempre visibile */
  .slide-cta {
    display: flex !important;
    position: absolute;
    bottom: 8px; right: 8px;
    padding: 5px 9px;
    font-size: 9px;
    gap: 3px;
    border-radius: 6px;
  }
  .cta-text { display: inline; }
  .cta-icon { font-size: 10px; }

  .prev, .next { padding: 5px 8px; font-size: 13px; }
  .dots { margin-top: 6px; }
  .dot { width: 6px; height: 6px; }

  /* ── ULTIME ATTIVITÀ — 2 card per riga ── */
  .news { padding: 20px 3% 16px; }
  .news h2 { font-size: 20px; margin-bottom: 14px; }
  .news-grid {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }
  .news-card { border-radius: 10px; overflow: hidden; }
  .news-card img {
    height: 100px;
    width: 100%;
    object-fit: cover;
    display: block;
  }
  .news-card h3 { font-size: 12px; padding: 6px 8px 2px; margin: 0; }
  .news-card p {
    font-size: 10px; line-height: 1.35;
    padding: 0 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  .btn-news { padding: 5px 10px; font-size: 9px; margin: 6px 8px 8px; display: inline-block; }

  /* ── PROGETTI — 2 card per riga ── */
  .projects { border-radius: 14px 14px 0 0; padding: 20px 3% 28px; }
  .projects h2 { font-size: 20px; margin-bottom: 14px; }
  .project-grid {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }
  .project-card { border-radius: 10px; overflow: hidden; }
  .project-card img {
    height: 100px;
    width: 100%;
    object-fit: cover;
    display: block;
  }
  .project-card-body { padding: 8px; }
  .project-card-body h3 { font-size: 12px; margin-bottom: 3px; }
  .project-card-body p {
    font-size: 10px; line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  .project-cta { font-size: 9px; margin-top: 5px; display: block; }
  .project-cta-arrow { font-size: 10px; }

  /* ── FOOTER ── */
  footer { padding: 20px 4%; }
  .footer-container { grid-template-columns: 1fr 1fr; gap: 12px; }
  footer h3 { font-size: 13px; margin-bottom: 5px; }
  footer p { font-size: 11px; line-height: 1.5; }
  .copyright { font-size: 10px; margin-top: 14px; }
}

/* ── Telefoni molto piccoli ── */
@media (max-width: 380px) {
  .nav-scroll nav a { font-size: 9px; padding: 4px 6px; }
  .slider-container { height: 170px; }
  .news-grid { grid-template-columns: 1fr; }
  .project-grid { grid-template-columns: 1fr; }
  .news-card img { height: 140px; }
  .project-card img { height: 140px; }
}