/* ============================================================
   Studio Indaco — Custom CSS
   Non-utility styles for effects, animations, and components
   that cannot be expressed purely with Tailwind utilities.
   ============================================================ */

/* ===== FONTS — Self-hosted ===== */
@font-face {
  font-family: 'Outfit';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('/static/fonts/Outfit-VariableFont_wght.woff2') format('woff2');
}

@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/static/fonts/Poppins-Regular.woff2') format('woff2');
}

@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('/static/fonts/Poppins-SemiBold.woff2') format('woff2');
}

@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('/static/fonts/Poppins-Bold.woff2') format('woff2');
}


/* ===== HERO — Full-viewport immersive (homepage) ===== */
.hero-bg {
  min-height: 100vh;
  min-height: 100dvh;
  background: linear-gradient(160deg, #07324B 0%, #0a3f5e 30%, #07324B 70%, #041e2e 100%);
  position: relative;
  overflow: hidden;
}

/* Noise texture overlay */
.hero-noise {
  position: absolute;
  inset: 0;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.5'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 256px 256px;
  pointer-events: none;
  z-index: 1;
}

/* Floating orbs — luminous white */
.hero-orb {
  position: absolute;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,0.06) 0%, transparent 70%);
  pointer-events: none;
  z-index: 1;
}
.hero-orb-1 { width: 500px; height: 500px; top: -100px; left: -100px; animation: orb-float 18s ease-in-out infinite; }
.hero-orb-2 { width: 400px; height: 400px; bottom: -80px; right: -80px; animation: orb-float 22s ease-in-out infinite reverse; }
.hero-orb-3 { width: 300px; height: 300px; top: 30%; left: 60%; animation: orb-float 20s ease-in-out infinite 3s; }
.hero-orb-4 { width: 200px; height: 200px; bottom: 20%; left: 20%; animation: orb-float 16s ease-in-out infinite 6s; }

@keyframes orb-float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(30px, -20px) scale(1.05); }
  66% { transform: translate(-20px, 15px) scale(0.95); }
}

/* Particle canvas */
.hero-particles {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  pointer-events: none;
}


/* ===== HERO BADGE ===== */
.hero-badge {
  display: flex;
  align-items: center;
  gap: 12px;
  justify-content: center;
  margin-bottom: 2rem;
  opacity: 0;
  animation: badge-in 0.8s ease-out 0.3s forwards;
}
.hero-badge-line {
  width: 40px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(161,227,55,0.5), transparent);
}
.hero-badge-text {
  font-family: 'Outfit', sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.35);
}
.hero-badge-text span {
  color: #A1E337;
}

@keyframes badge-in {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}


/* ===== HERO CLAIM — Si analizza, Si crea, Si vince ===== */
.hero-claim {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  margin-bottom: 1.5rem;
}

.claim-line {
  display: flex;
  align-items: baseline;
  gap: 0.3em;
  line-height: 1;
  font-family: 'Outfit', sans-serif;
  font-weight: 900;
  font-size: clamp(46px, 10vw, 90px);
  color: white;
  opacity: 0;
  animation: claim-line-in 0.6s ease-out forwards;
}
.claim-line:nth-child(1) { animation-delay: 0.5s; }
.claim-line:nth-child(2) { animation-delay: 0.7s; }
.claim-line:nth-child(3) { animation-delay: 0.9s; }

@keyframes claim-line-in {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* "Si" with masked beam effect */
.claim-si-masked {
  position: relative;
  overflow: hidden;
  display: inline-block;
  font-family: 'Outfit', sans-serif;
  font-weight: 900;
  font-size: inherit;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(255,255,255,0.12);
}
.claim-si-masked::before {
  content: 'Si';
  display: block;
}

.claim-si-beam {
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(161,227,55,0.4), transparent);
  animation: si-beam-sweep 4s ease-in-out infinite;
}

.claim-line:nth-child(1) .claim-si-beam { animation-delay: 0s; }
.claim-line:nth-child(2) .claim-si-beam { animation-delay: 0.5s; }
.claim-line:nth-child(3) .claim-si-beam { animation-delay: 1s; }

@keyframes si-beam-sweep {
  0%, 100% { left: -100%; }
  50% { left: 100%; }
}

.claim-verb {
  color: white;
}

/* Gradient accent line below claim */
.claim-accent {
  width: 80px;
  height: 3px;
  margin: 1.5rem auto;
  border-radius: 2px;
  background: linear-gradient(90deg, #A1E337, #39729B);
  opacity: 0;
  animation: accent-in 0.5s ease-out 1.2s forwards;
}

@keyframes accent-in {
  from { opacity: 0; width: 0; }
  to { opacity: 1; width: 80px; }
}


/* ===== HERO DESCRIPTION ===== */
.hero-description {
  font-size: 17px;
  line-height: 1.7;
  color: rgba(255,255,255,0.45);
  max-width: 560px;
  margin: 0 auto 2rem;
  opacity: 0;
  animation: fade-up 0.6s ease-out 1.3s forwards;
}
.hero-description strong {
  color: rgba(255,255,255,0.75);
  font-weight: 600;
}

@keyframes fade-up {
  from { opacity: 0; transform: translateY(15px); }
  to { opacity: 1; transform: translateY(0); }
}


/* ===== HERO CTA BUTTONS ===== */
.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  opacity: 0;
  animation: fade-up 0.6s ease-out 1.5s forwards;
}

.btn-hero {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'Outfit', sans-serif;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  padding: 16px 32px;
  border-radius: 9999px;
  transition: all 0.3s ease;
  text-decoration: none;
}
.btn-hero.primary {
  background: #A1E337;
  color: #07324B;
}
.btn-hero.primary:hover {
  filter: brightness(1.1);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(161,227,55,0.25);
}
.btn-hero.ghost {
  border: 1px solid rgba(255,255,255,0.15);
  color: rgba(255,255,255,0.6);
}
.btn-hero.ghost:hover {
  border-color: rgba(255,255,255,0.3);
  color: white;
  background: rgba(255,255,255,0.05);
}
.btn-arrow {
  font-size: 16px;
  transition: transform 0.3s ease;
}
.btn-hero:hover .btn-arrow {
  transform: translateX(4px);
}


/* ===== HERO TRUST BADGES ===== */
.hero-trust {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px;
  opacity: 0;
  animation: fade-up 0.6s ease-out 1.8s forwards;
}
.hero-trust-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: 'Outfit', sans-serif;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(255,255,255,0.25);
}
.hero-trust-icon {
  width: 16px;
  height: 16px;
  opacity: 0.35;
}
.hero-trust-dot {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: rgba(255,255,255,0.12);
}


/* ===== SCROLL INDICATOR ===== */
.scroll-indicator {
  opacity: 0;
  animation: fade-up 0.6s ease-out 2.2s forwards;
}
.scroll-indicator-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, rgba(161,227,55,0.5), transparent);
  animation: scroll-pulse 2s ease-in-out infinite;
}
@keyframes scroll-pulse {
  0%, 100% { opacity: 0.5; transform: scaleY(1); }
  50% { opacity: 1; transform: scaleY(1.2); }
}


/* ===== HERO LANDING — Inner pages ===== */
.hero-landing {
  position: relative;
}
.hero-grid-bg {
  background-image:
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 60px 60px;
}


/* ===== CTA BUTTONS — Site-wide ===== */
.btn-cta {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: 'Outfit', sans-serif;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: #07324B;
  text-decoration: none;
  transition: all 0.3s ease;
}
.btn-cta:hover {
  gap: 16px;
}
.btn-cta-label {
  white-space: nowrap;
}
.btn-cta-circle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #07324B;
  transition: all 0.3s ease;
  flex-shrink: 0;
}
.btn-cta:hover .btn-cta-circle {
  background: #A1E337;
  transform: scale(1.1);
}

/* Light variant (on colored backgrounds) */
.btn-cta-light {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: 'Outfit', sans-serif;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: white;
  text-decoration: none;
  transition: all 0.3s ease;
}
.btn-cta-light:hover { gap: 16px; }
.btn-cta-light .btn-cta-circle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255,255,255,0.2);
  transition: all 0.3s ease;
  flex-shrink: 0;
}
.btn-cta-light:hover .btn-cta-circle {
  background: rgba(255,255,255,0.35);
  transform: scale(1.1);
}

/* Verde variant (on verde backgrounds) */
.btn-cta-verde {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: 'Outfit', sans-serif;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: #07324B;
  text-decoration: none;
  transition: all 0.3s ease;
}
.btn-cta-verde:hover { gap: 16px; }
.btn-cta-verde .btn-cta-circle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #07324B;
  transition: all 0.3s ease;
  flex-shrink: 0;
}
.btn-cta-verde:hover .btn-cta-circle {
  background: #07324B;
  transform: scale(1.1);
}

/* Dark variant (on dark backgrounds) */
.btn-cta-dark {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: 'Outfit', sans-serif;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: white;
  text-decoration: none;
  transition: all 0.3s ease;
}
.btn-cta-dark:hover { gap: 16px; }
.btn-cta-dark .btn-cta-circle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #A1E337;
  transition: all 0.3s ease;
  flex-shrink: 0;
}
.btn-cta-dark:hover .btn-cta-circle {
  transform: scale(1.1);
}


/* ===== MARQUEE ===== */
.marquee-left,
.marquee-right {
  overflow: hidden;
  white-space: nowrap;
}
.marquee-track {
  display: inline-flex;
  align-items: center;
  gap: 0;
  animation: marquee-scroll 40s linear infinite;
}
.marquee-right .marquee-track {
  animation-direction: reverse;
}

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

.marquee-text-solid {
  font-family: 'Outfit', sans-serif;
  font-size: clamp(40px, 6vw, 70px);
  font-weight: 900;
  color: #07324B;
  padding: 0 8px;
}
.marquee-text-outline {
  font-family: 'Outfit', sans-serif;
  font-size: clamp(40px, 6vw, 70px);
  font-weight: 900;
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(7,50,75,0.15);
  padding: 0 8px;
}
.marquee-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #A1E337;
  flex-shrink: 0;
  margin: 0 16px;
}


/* ===== SERVICE ROWS (homepage) ===== */
.service-row {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px 0;
  border-bottom: 1px solid rgba(7,50,75,0.08);
  text-decoration: none;
  transition: all 0.3s ease;
}
.service-row:first-child {
  border-top: 1px solid rgba(7,50,75,0.08);
}
.service-row:hover {
  padding-left: 8px;
}
.service-num {
  font-family: 'Outfit', sans-serif;
  font-size: 14px;
  font-weight: 700;
  color: #A1E337;
  min-width: 28px;
}
.service-name {
  font-family: 'Outfit', sans-serif;
  font-size: 22px;
  font-weight: 700;
  color: #07324B;
  flex: 1;
  transition: color 0.3s ease;
}
.service-row:hover .service-name {
  color: #39729B;
}
.service-arrow {
  opacity: 0;
  transform: translateX(-8px);
  transition: all 0.3s ease;
}
.service-row:hover .service-arrow {
  opacity: 1;
  transform: translateX(0);
}


/* ===== METHOD STEPS ===== */
.method-step {
  position: relative;
  padding: 2rem 0;
}
.method-number {
  position: absolute;
  top: 0;
  right: 0;
  font-family: 'Outfit', sans-serif;
  font-size: 120px;
  font-weight: 900;
  color: rgba(255,255,255,0.03);
  line-height: 1;
  user-select: none;
}


/* ===== GRADIENT TEXT ===== */
.gradient-text {
  background: linear-gradient(135deg, #A1E337, #39729B);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}


/* ===== TESTIMONIALS ===== */
.testimonial-track {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
@media (max-width: 1024px) {
  .testimonial-track {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 640px) {
  .testimonial-track {
    grid-template-columns: 1fr;
  }
}
.testimonial-card {
  display: flex;
  flex-direction: column;
  padding: 28px;
  border-radius: 16px;
}
.testimonial-stars {
  display: flex;
  gap: 2px;
}


/* ===== PROJECT IMAGE WRAP — Blue tint ===== */
.project-img-wrap {
  position: relative;
  overflow: hidden;
}
.project-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}
.project-img-wrap::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(7,50,75,0.25);
  mix-blend-mode: multiply;
  z-index: 1;
  transition: opacity 0.4s ease;
}
.group:hover .project-img-wrap img {
  transform: scale(1.05);
}
.group:hover .project-img-wrap::after {
  opacity: 0.6;
}


/* ===== PORTFOLIO CARDS (homepage) ===== */
.portfolio-card {
  display: block;
  aspect-ratio: 3/4;
  border-radius: 12px;
  overflow: hidden;
  position: relative;
}
.portfolio-card img {
  transition: transform 0.5s ease;
}
.portfolio-card:hover img {
  transform: scale(1.05);
}


/* ===== FAQ ACCORDION ===== */
.faq-item {
  border-bottom: 1px solid rgba(7,50,75,0.08);
}
.faq-item:first-child {
  border-top: 1px solid rgba(7,50,75,0.08);
}
.faq-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 20px 0;
  text-align: left;
  cursor: pointer;
  background: none;
  border: none;
  transition: color 0.3s ease;
}
.faq-trigger:hover {
  color: #39729B;
}
.faq-question {
  font-family: 'Outfit', sans-serif;
  font-size: 18px;
  font-weight: 700;
  color: #07324B;
  flex: 1;
  padding-right: 16px;
}
.faq-trigger:hover .faq-question {
  color: #39729B;
}
.faq-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(7,50,75,0.06);
  flex-shrink: 0;
  transition: all 0.3s ease;
  color: #07324B;
}
.faq-item.active .faq-icon {
  background: #A1E337;
  color: #07324B;
  transform: rotate(45deg);
}
.faq-panel {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.4s ease;
}
.faq-item.active .faq-panel {
  max-height: 500px;
  padding-bottom: 20px;
}
.faq-answer {
  font-family: 'Poppins', sans-serif;
  font-size: 15px;
  color: rgba(47,54,60,0.6);
  line-height: 1.7;
}


/* ===== REVEAL ANIMATIONS ===== */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-left {
  opacity: 0;
  transform: translateX(-40px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal-left.visible {
  opacity: 1;
  transform: translateX(0);
}

.reveal-right {
  opacity: 0;
  transform: translateX(40px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal-right.visible {
  opacity: 1;
  transform: translateX(0);
}

/* Respect prefers-reduced-motion */
@media (prefers-reduced-motion: reduce) {
  .reveal,
  .reveal-left,
  .reveal-right {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .hero-badge,
  .claim-line,
  .claim-accent,
  .hero-description,
  .hero-ctas,
  .hero-trust,
  .scroll-indicator {
    opacity: 1;
    animation: none;
  }
  .hero-orb { animation: none; }
  .claim-si-beam { animation: none; }
  .marquee-track { animation: none; }
}


/* ===== MOBILE MENU ===== */
.mobile-menu {
  position: fixed;
  inset: 0;
  background: #07324B;
  z-index: 100;
  display: flex;
  flex-direction: column;
  padding: 80px 24px 40px;
  transform: translateX(100%);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu a {
  font-family: 'Outfit', sans-serif;
  font-size: 24px;
  font-weight: 700;
  color: white;
  text-decoration: none;
  padding: 12px 0;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  transition: color 0.3s ease;
}
.mobile-menu a:hover {
  color: #A1E337;
}

/* Hamburger button */
.hamburger {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 28px;
  height: 28px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
  z-index: 110;
}
.hamburger span {
  display: block;
  width: 100%;
  height: 2px;
  background: white;
  border-radius: 1px;
  transition: all 0.3s ease;
}
.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}
.hamburger.active span:nth-child(2) {
  opacity: 0;
}
.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}


/* ===== HEADER — Scrolled state ===== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  transition: all 0.3s ease;
  background: transparent;
}
.site-header.scrolled {
  background: rgba(7,50,75,0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 rgba(255,255,255,0.05);
}


/* ===== PROSE LEGAL — Condizioni di utilizzo ===== */
.prose-legal h2 {
  font-family: 'Outfit', sans-serif;
  font-size: 22px;
  font-weight: 700;
  color: #07324B;
  margin-bottom: 16px;
}
.prose-legal p {
  font-family: 'Poppins', sans-serif;
  font-size: 16px;
  color: rgba(47,54,60,0.7);
  line-height: 1.7;
  margin-bottom: 12px;
}
.prose-legal ul {
  list-style: none;
  padding: 0;
}
.prose-legal li {
  font-family: 'Poppins', sans-serif;
  font-size: 16px;
  color: rgba(47,54,60,0.7);
  line-height: 1.7;
}
