@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Playfair+Display:wght@400;700&display=swap');

* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
    --paypal-primary: #0070BA;     /* PayPal Blue ufficiale */
    --paypal-focus: #0057FF;       /* Focus/Accent */
    --paypal-dark: #253B80;        /* Deep Blue */
    --glass: rgba(255,255,255,0.08);
    --glass-border: rgba(255,255,255,0.12);
    --glow: rgba(0,112,186,0.3);   /* PayPal glow */
    --text-primary: #010B0D;       /* Testo scuro su chiaro */
}

body {

  font-family: 'Michroma', sans-serif;


    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a2e 50%, #16213e 100%);
}

/* Stelle PayPal Blue */
body::before {
    content: ''; position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background-image: 
        radial-gradient(1px 1px at 25% 35%, var(--paypal-primary), transparent),
        radial-gradient(1px 1px at 75% 25%, var(--paypal-focus), transparent),
        radial-gradient(1px 1px at 45% 75%, rgba(255,255,255,0.3), transparent);
    background-repeat: repeat; background-size: 120px 120px;
    animation: stars 30s linear infinite; z-index: -1; will-change: transform;
}

@keyframes stars { 
    0%, 100% { transform: translateY(0) rotate(0deg); } 
    50% { transform: translateY(-10px) rotate(60deg); } 
}

.container { max-width: 1300px; margin: 0 auto; padding: 0 20px; }

/* Navbar PayPal */
.navbar {
    position: fixed; top: 0; width: 100%; z-index: 1000;
    background: rgba(10,10,10,0.97); backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--glass-border); transition: all 0.3s ease;
}

.navbar .container {
    display: flex; justify-content: space-between; align-items: center;
    padding: 1.2rem 20px;
}

.logo {
    font-family: 'Playfair Display', serif; font-size: 2rem; font-weight: 700;
    background: linear-gradient(45deg, var(--paypal-primary), var(--paypal-focus));
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}

.nav-menu { display: flex; list-style: none; gap: 2.5rem; margin: 0; }

.nav-menu a {
    color: #fff; text-decoration: none; font-weight: 500; position: relative;
    transition: all 0.3s ease;
}

.nav-menu a:hover { color: var(--paypal-primary); }

.nav-menu a::after {
    content: ''; position: absolute; bottom: -5px; left: 0; width: 0; height: 2px;
    background: var(--paypal-primary); transition: width 0.3s ease;
}

.nav-menu a:hover::after { width: 100%; }

/* Hero */
.hero {
    min-height: 100vh; padding-top: 120px; display: flex; align-items: center;
    background: linear-gradient(135deg, rgba(0,112,186,0.3), rgba(0,87,255,0.15));
}

.hero h2 {
    font-family: 'Playfair Display', serif; font-size: clamp(3rem, 8vw, 6rem);
    margin-bottom: 1.5rem; background: linear-gradient(45deg, var(--paypal-primary), #fff);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}

.hero p { font-size: 1.3rem; opacity: 0.92; max-width: 550px; margin-bottom: 3rem; }

/* Services NO Flicker */
.services { padding: 100px 0; background: rgba(255,255,255,0.015); }

.grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem; margin-top: 4rem;
}

.card-link { 
    text-decoration: none; color: inherit; display: block; height: 100%; 
}

.card {
    background: linear-gradient(145deg, var(--glass), rgba(255,255,255,0.03));
    backdrop-filter: blur(16px); border: 1px solid var(--glass-border);
    border-radius: 20px; padding: 2.5rem 2rem; text-align: center;
    height: 100%; display: flex; flex-direction: column; justify-content: center;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative; overflow: hidden; /* Anti-flicker */
}

.card::before { /* Glow interno invece shimmer */
    content: ''; position: absolute; top: 0; left: 0; right: 0; bottom: 0;
    background: radial-gradient(circle at 30% 30%, rgba(0,112,186,0.1), transparent 50%);
    opacity: 0; transition: opacity 0.4s ease; border-radius: 20px;
    pointer-events: none;
}

.card h3 {
    font-size: 1.8rem; font-family: 'Playfair Display', serif; margin-bottom: 1rem;
    color: var(--paypal-primary); position: relative; z-index: 2;
}

.card p { opacity: 0.9; line-height: 1.6; position: relative; z-index: 2; }

.card-link:hover .card {
    transform: translateY(-10px); box-shadow: 0 25px 50px var(--glow);
    border-color: var(--paypal-primary);
}

.card-link:hover .card::before { opacity: 1; }

/* CTA PayPal */
.cta-btn {
    background: linear-gradient(45deg, var(--paypal-primary), var(--paypal-focus));
    color: #fff; padding: 1.2rem 3rem; border-radius: 50px; text-decoration: none;
    font-weight: 600; display: inline-block; position: relative; overflow: hidden;
    transition: all 0.3s ease; box-shadow: 0 10px 30px rgba(0,112,186,0.4);
}

.cta-btn:hover { 
    transform: translateY(-3px); box-shadow: 0 15px 35px rgba(0,112,186,0.5);
    background: linear-gradient(45deg, var(--paypal-focus), var(--paypal-primary));
}

/* Service Detail */
.service-detail { padding: 140px 0; min-height: 80vh; }

.service-detail h2 {
    font-size: clamp(3rem, 8vw, 4.5rem); font-family: 'Playfair Display', serif;
    margin-bottom: 2rem; text-align: center;
    background: linear-gradient(45deg, var(--paypal-primary), #fff);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}

.service-detail ul { list-style: none; padding: 0; max-width: 700px; margin: 3rem auto; }

.service-detail li {
    padding: 1.2rem 0; position: relative; padding-left: 3rem; font-size: 1.1rem;
    opacity: 0.95;
}

.service-detail li::before {
    content: '✦'; position: absolute; left: 0; color: var(--paypal-primary);
    font-size: 1.4rem; font-weight: bold;
}

/* Responsive */
@media (max-width: 768px) {
    .nav-menu { display: none; }
    .hero { text-align: center; padding-top: 140px; }
    .grid { grid-template-columns: 1fr; gap: 1.5rem; }
    .service-detail h2 { font-size: 2.5rem; }
}

/* Footer */
footer { padding: 3rem 0; text-align: center; opacity: 0.7; border-top: 1px solid var(--glass-border); }
.hero .container {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.hero h2, .hero p {
    width: 100%;
}
.hero {
    padding-top: 80px;
    min-height: 85vh;
}

.hero h2 {
    margin-bottom: 1rem;
    font-size: clamp(2.8rem, 7vw, 5rem);
}

.hero p {
    margin-bottom: 2rem;
    font-size: 1.2rem;
}

.cta-btn {
    margin-top: 0;
}
.logo-link {
    display: block;
    width: 280px;
    height: 70px;
}

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

    /* RIMOSSO bordo/glow */
    border-radius: 0;
    box-shadow: none;
    filter: none;

    transition: transform 0.25s ease;
}

.logo-link:hover .logo-img {
    transform: scale(1.01);
    box-shadow: none;
    filter: none;
}


@media (max-width: 768px) {
    .logo-img { max-height: 50px; max-width: 160px; }
}
.card{
  position:relative;
  overflow:hidden;                 /* anti-flicker */
  height:100%;

  padding: 2.2rem 2rem;
  border-radius: 22px;

  /* Più contrasto: fondo meno trasparente + gradiente PayPal */
  background: linear-gradient(145deg,
      rgba(1,33,105,0.42),          /* più “solido” */
      rgba(0,48,135,0.28)
  );

  /* Bordo più presente */
  border: 1px solid rgba(0,156,222,0.55);

  backdrop-filter: blur(14px);

  /* Ombra più profonda per staccare dal background */
  box-shadow:
    0 18px 40px rgba(0,0,0,0.55),
    0 0 0 1px rgba(0,156,222,0.10),
    inset 0 1px 0 rgba(255,255,255,0.10);

  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}

/* Rim light (bordo luce interno) */
.card::before{
  content:"";
  position:absolute;
  inset:0;
  border-radius: 22px;
  padding: 1px;
  background: linear-gradient(135deg,
      rgba(0,156,222,0.75),
      rgba(0,48,135,0.20),
      rgba(255,255,255,0.10)
  );
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events:none;
  opacity: 0.55;
}

/* Highlight interno (non shimmer, quindi non sfarfalla) */
.card::after{
  content:"";
  position:absolute;
  top:-60%;
  left:-40%;
  width: 520px;
  height: 520px;
  background: radial-gradient(circle, rgba(0,156,222,0.18), transparent 55%);
  pointer-events:none;
  opacity: 0.9;
}

.card-link:hover .card{
  transform: translateY(-8px);
  border-color: rgba(0,156,222,0.90);
  box-shadow:
    0 26px 60px rgba(0,0,0,0.65),
    0 0 55px rgba(0,156,222,0.22),
    inset 0 1px 0 rgba(255,255,255,0.12);
}

.services{
  background: linear-gradient(180deg, rgba(0,48,135,0.10), rgba(1,33,105,0.06));
}

.card p {
  color: #ffffff;
  opacity: 0.9; /* se li vuoi 100% bianchi metti 1 */
}
h2 {
  color: #009CDE;
  text-shadow: 0 0 18px rgba(0,156,222,0.22);
}

h2 {
  color: #003087;
}
#servizi h2 {
  color: #ffffff;
  text-shadow: none; /* opzionale: toglie glow se lo avevi */
}
/* CONTATTI - FIX DEFINITIVO */
#contatti.contact{
  padding: 70px 0;
  background: radial-gradient(circle at 50% 0%,
    rgba(0,156,222,0.14),
    rgba(1,33,105,0.10) 55%,
    rgba(0,0,0,0) 100%
  );
}

#contatti.contact .container{
  max-width: 900px;
}

/* Titolo bianco e centrato */
#contatti.contact h2{
  color:#fff;
  text-align:center;
  margin-bottom: 2rem;
}

/* FORM: SEMPRE COLONNA (niente riga), glass */
#contatti.contact form{
  width: 100%;
  max-width: 680px;
  margin: 0 auto;

  display: flex;
  flex-direction: column;
  gap: 14px;

  padding: 22px;
  border-radius: 22px;

  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(0,156,222,0.35);
  backdrop-filter: blur(14px);

  box-shadow: 0 18px 45px rgba(0,0,0,0.45);
}

/* Input/textarea full width */
#contatti.contact input,
#contatti.contact textarea{
  width: 100%;
  display: block;

  padding: 14px 16px;
  border-radius: 16px;

  background: rgba(1,33,105,0.25);
  border: 1px solid rgba(255,255,255,0.14);

  color: #fff;
  font-family: inherit;
  font-size: 15px;

  outline: none;
  transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}

#contatti.contact textarea{
  min-height: 140px;
  resize: vertical;
}

#contatti.contact input::placeholder,
#contatti.contact textarea::placeholder{
  color: rgba(255,255,255,0.7);
}

/* Focus PayPal */
#contatti.contact input:focus,
#contatti.contact textarea:focus{
  border-color: #009CDE;
  box-shadow: 0 0 0 4px rgba(0,156,222,0.18);
  background: rgba(1,33,105,0.35);
}

/* Bottone full width */
#contatti.contact button{
  width: 100%;
  border: 0;
  cursor: pointer;

  padding: 14px 16px;
  border-radius: 999px;

  background: linear-gradient(45deg, #003087, #009CDE);
  color: #fff;

  font-weight: 600;
  font-size: 16px;

  transition: transform .2s ease, box-shadow .2s ease;
  box-shadow: 0 14px 30px rgba(0,0,0,0.35);
}

#contatti.contact button:hover{
  transform: translateY(-2px);
  box-shadow: 0 18px 40px rgba(0,0,0,0.45), 0 0 40px rgba(0,156,222,0.20);
}
#chi p {
  color: #ffffff;
  opacity: 0.95; /* se lo vuoi 100% pieno metti 1 */
}
