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

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

:root {
  --bg:        #051018;
  --bg-deep:   #071420;
  --bg-card:   #0D1F3C;
  --primary:   #00B4D8;
  --success:   #00C896;
  --warning:   #FFD32A;
  --danger:    #FF4757;
  --bio:       #A855F7;
  --white:     #FFFFFF;
  --text-muted:#8899AA;
  --radius:    12px;
  --radius-lg: 20px;
  --font:      'Inter', sans-serif;
}

html { scroll-behavior: smooth; }

body { background: var(--bg); color: var(--white); font-family: var(--font); font-size: 16px; line-height: 1.6; overflow-x: hidden; }

/* ══ LOGO ══ */
.logo { display: inline-flex; align-items: flex-end; gap: 0px; font-size: 2rem; font-weight: 900; text-decoration: none; line-height: 1; letter-spacing: -1px; }
.logo .pesk { color: var(--white); }
.logo .a { color: #009246; }
.logo .m { color: var(--white); }
.logo .o { color: #CE2B37; }
.logo-sub { display: block; font-size: 0.62rem; font-weight: 600; font-style: italic; color: var(--primary); letter-spacing: 0.5px; margin-top: 2px; }

/* ══ NAVBAR ══ */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 5%; height: 70px;
  background: rgba(5,16,24,0.95);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(0,180,216,0.08);
  transition: background 0.3s, border-color 0.3s;
}
nav.scrolled { background: rgba(5,16,24,0.99); border-color: rgba(0,180,216,0.15); }
.nav-logo-wrap { display: flex; flex-direction: column; align-items: flex-start; text-decoration: none; }
.nav-logo-wrap img { height: 120px; width: auto; object-fit: contain; display: block; }
.nav-links { display: flex; gap: 2rem; list-style: none; align-items: center; }
.nav-links a { color: rgba(255,255,255,0.82); text-decoration: none; font-size: 0.92rem; font-weight: 500; transition: color 0.2s; }
.nav-links a:hover, .nav-links a.active { color: var(--primary); }
.nav-links a.active { border-bottom: 2px solid var(--primary); padding-bottom: 3px; }
.lang-switch { display: inline-flex; align-items: center; justify-content: center; border: 1px solid rgba(255,255,255,0.15); border-radius: 6px; padding: 4px 7px !important; transition: border-color 0.2s, box-shadow 0.2s; text-decoration: none; }
.lang-switch:hover { border-color: var(--primary) !important; box-shadow: 0 0 0 2px rgba(0,180,216,0.15); }
.lang-switch svg { display: block; border-radius: 2px; overflow: hidden; }
.btn-cta { background: var(--primary); color: #051018; font-weight: 700; padding: 11px 24px; border-radius: 50px; text-decoration: none; font-size: 0.92rem; transition: opacity 0.2s; white-space: nowrap; }
.btn-cta:hover { opacity: 0.88; }
.nav-hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 4px; }
.nav-hamburger span { width: 24px; height: 2px; background: var(--white); border-radius: 2px; transition: transform 0.3s, opacity 0.3s; }

/* ══ HERO ══ */
#hero {
  min-height: 100vh; padding: 120px 5% 80px;
  display: flex; align-items: center; gap: 3rem;
  position: relative; overflow: hidden;
  background: linear-gradient(to right, rgba(5,16,24,0.97) 30%, rgba(5,16,24,0.4) 100%), url('../assets/hero-bg.jpg') center / cover no-repeat;
}
.hero-content { flex: 1; max-width: 480px; z-index: 2; }
.hero-content h1 { font-size: clamp(2.8rem, 5.5vw, 4.4rem); font-weight: 900; line-height: 1.0; margin-bottom: 0.1em; }
.hero-content h1 span { color: var(--primary); display: inline; }
.hero-sub { font-size: 1rem; color: #ccd8e0; margin: 1rem 0 1.8rem; max-width: 360px; line-height: 1.6; }
.hero-bullets { list-style: none; margin-bottom: 2rem; display: flex; flex-direction: column; gap: 0.9rem; }
.hero-bullets li { display: flex; align-items: flex-start; gap: 0.85rem; font-size: 0.92rem; color: #b8ccd8; text-align: left; }
.hero-bullets li svg { flex-shrink: 0; margin-top: 1px; }
.store-badges { display: flex; gap: 0.8rem; flex-wrap: wrap; margin-bottom: 1.6rem; align-items: center; }
.badge-official { display: inline-block; transition: opacity 0.2s, transform 0.2s; }
.badge-official:hover { opacity: 0.85; transform: translateY(-1px); }
.badge-official img { height: 44px; width: auto; display: block; }
.hero-tagline { display: flex; align-items: center; gap: 0.5rem; font-size: 0.88rem; color: var(--text-muted); }
.hero-tagline svg { opacity: 0.6; flex-shrink: 0; }
.hero-visual { flex: 1.3; display: flex; justify-content: center; align-items: center; z-index: 2; }

/* ══ MOCKUP STACK ══ */
.mockup-stack { position: relative; width: 440px; height: 620px; flex-shrink: 0; }
.mockup-stack .phone { position: absolute; border-radius: 36px; background: linear-gradient(160deg, #0d2545, #081830); border: 1.5px solid rgba(0,180,216,0.2); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.6rem; color: var(--primary); font-size: 0.7rem; font-weight: 600; letter-spacing: 1px; text-transform: uppercase; box-shadow: 0 20px 60px rgba(0,0,0,0.5); }
.phone-left { width: 210px; height: 420px; left: 0; top: 90px; transform: rotate(-8deg); opacity: 0.55; z-index: 1; }
.phone-center { width: 250px; height: 520px; left: 50%; top: 20px; transform: translateX(-50%); z-index: 3; border-color: rgba(0,180,216,0.5) !important; box-shadow: 0 30px 80px rgba(0,0,0,0.6), 0 0 40px rgba(0,180,216,0.08) !important; }
.phone-right { width: 210px; height: 420px; right: 0; top: 90px; transform: rotate(8deg); opacity: 0.5; z-index: 1; }

/* ══ FEATURES ══ */
#features { padding: 60px 5%; background: var(--bg-card); margin: -30px 3% 0; border-radius: var(--radius-lg); position: relative; z-index: 10; box-shadow: 0 -10px 40px rgba(0,0,0,0.3); scroll-margin-top: 70px; }
.features-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 1.5rem; max-width: 1100px; margin: 0 auto; }
.feature-item { text-align: center; padding: 0.5rem; }
.feature-icon { width: 68px; height: 68px; border-radius: 18px; background: rgba(0,180,216,0.07); border: 1px solid rgba(0,180,216,0.15); display: flex; align-items: center; justify-content: center; margin: 0 auto 1rem; transition: background 0.2s, border-color 0.2s; }
.feature-item:hover .feature-icon { background: rgba(0,180,216,0.13); border-color: rgba(0,180,216,0.3); }
.feature-item h3 { font-size: 0.72rem; font-weight: 700; letter-spacing: 1.8px; text-transform: uppercase; margin-bottom: 0.5rem; color: var(--white); }
.feature-item p { font-size: 0.8rem; color: var(--text-muted); line-height: 1.55; }

/* ══ ECOSISTEMA / SUITE ══ */
#ecosistema { padding: 90px 5% 70px; background: var(--bg); scroll-margin-top: 70px; }
.section-title { text-align: center; margin-bottom: 0.5rem; }
.section-title-suite { display: flex; align-items: center; justify-content: center; gap: 0.6rem; margin-bottom: 0.5rem; }
.section-title-suite img { height: 120px; width: auto; object-fit: contain; }
.section-title-suite .suite-label { font-size: clamp(1.6rem, 3vw, 2rem); font-weight: 800; letter-spacing: 1px; text-transform: uppercase; color: var(--white); }
.section-title p { color: var(--text-muted); font-size: 0.95rem; margin-top: 0.5rem; text-align: center; }
.eco-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; max-width: 1100px; margin: 2.5rem auto 1.5rem; }
.eco-card { background: var(--bg-card); border-radius: var(--radius-lg); overflow: hidden; border: 1px solid rgba(255,255,255,0.06); display: flex; flex-direction: column; transition: transform 0.25s, border-color 0.25s; }
.eco-card:hover { transform: translateY(-5px); border-color: rgba(0,180,216,0.22); }
.eco-img-real { height: 240px; background-size: cover; background-position: center; background-repeat: no-repeat; display: flex; flex-direction: column; align-items: flex-start; justify-content: space-between; padding: 1rem; position: relative; overflow: hidden; }
.eco-img-real::before { content: ''; position: absolute; inset: 0; background: linear-gradient(to top, rgba(5,16,24,0.85) 0%, rgba(5,16,24,0.1) 60%); z-index: 1; }
.eco-img-top { position: relative; z-index: 2; display: flex; align-items: center; }
.eco-img-top img { height: 120px; width: auto; object-fit: contain; filter: brightness(1.1) drop-shadow(0 1px 4px rgba(0,0,0,0.4)); }
.eco-img-bottom { position: relative; z-index: 2; display: flex; align-items: center; min-height: 56px; }
.eco-img-bottom img { height: 55px; width: auto; object-fit: contain; filter: brightness(1.1) drop-shadow(0 1px 4px rgba(0,0,0,0.4)); }
.eco-card-body { padding: 1rem 1.2rem 1.4rem; flex: 1; display: flex; flex-direction: column; }
.eco-card-body p { font-size: 0.85rem; color: var(--text-muted); margin-bottom: 1rem; flex: 1; line-height: 1.5; }
.btn-available { background: var(--primary); color: #051018; font-weight: 700; padding: 11px; border-radius: 50px; text-align: center; text-decoration: none; font-size: 0.85rem; display: block; transition: opacity 0.2s; }
.btn-available:hover { opacity: 0.85; }
.btn-coming { background: transparent; color: var(--white); font-weight: 600; padding: 11px; border-radius: 50px; text-align: center; border: 1px solid rgba(255,255,255,0.18); font-size: 0.85rem; display: block; }
.eco-note { text-align: center; color: var(--text-muted); font-size: 0.88rem; margin-top: 0.8rem; }

/* ══ CHIP PIANI ══ */
.plan-chip { display: inline-block; font-size: 0.65rem; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; padding: 4px 12px; border-radius: 50px; margin-bottom: 0.8rem; }
.plan-chip.free { background: rgba(255,255,255,0.08); color: var(--text-muted); border: 1px solid rgba(255,255,255,0.15); }
.plan-chip.premium { background: rgba(0,180,216,0.12); color: var(--primary); border: 1px solid rgba(0,180,216,0.3); }

/* ══ NEWSLETTER ══ */
#newsletter { padding: 64px 5%; background: linear-gradient(135deg, #0d2040 0%, #0d1f3c 100%); margin: 0 3%; border-radius: var(--radius-lg); border: 1px solid rgba(0,180,216,0.08); }
.newsletter-inner { max-width: 1000px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 2rem; flex-wrap: wrap; }
.newsletter-text h2 { font-size: clamp(1.4rem, 2.5vw, 1.9rem); font-weight: 800; line-height: 1.2; }
.newsletter-text h2 span { color: var(--primary); }
.newsletter-text p { color: var(--text-muted); font-size: 0.9rem; margin-top: 0.5rem; }
.newsletter-form { display: flex; flex: 1; max-width: 480px; background: rgba(255,255,255,0.06); border-radius: 50px; border: 1px solid rgba(0,180,216,0.2); overflow: hidden; }
.newsletter-form input { flex: 1; padding: 14px 22px; background: transparent; border: none; color: var(--white); font-size: 0.9rem; outline: none; font-family: var(--font); }
.newsletter-form input::placeholder { color: var(--text-muted); }
.newsletter-form button { background: var(--primary); color: #051018; font-weight: 700; padding: 14px 28px; border-radius: 50px; border: none; cursor: pointer; font-size: 0.9rem; transition: opacity 0.2s; white-space: nowrap; font-family: var(--font); margin: 4px; }
.newsletter-form button:hover { opacity: 0.88; }
/* ══ FOOTER ══ */
footer { padding: 70px 5% 30px; background: var(--bg-deep); border-top: 1px solid rgba(255,255,255,0.05); margin-top: 80px; }
.footer-top { display: grid; grid-template-columns: 1.8fr 1fr 1fr 1fr; gap: 2rem; max-width: 1100px; margin: 0 auto 2.5rem; }
.footer-col h4 { font-size: 0.72rem; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; color: var(--text-muted); margin-bottom: 1rem; }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 0.65rem; }
.footer-col ul li a { color: var(--text-muted); text-decoration: none; font-size: 0.88rem; transition: color 0.2s; }
.footer-col ul li a:hover { color: var(--primary); }
.footer-logo { display: flex; flex-direction: column; align-items: flex-start; }
.footer-logo-img { height: 120px; width: auto; object-fit: contain; margin-bottom: 0.5rem; }
.footer-desc { font-size: 0.84rem; color: var(--text-muted); margin-top: 0.8rem; max-width: 210px; line-height: 1.6; }
.footer-badges { display: flex; flex-direction: column; gap: 0.6rem; margin-top: 1.2rem; }
.footer-badges .badge-official img { height: 38px; width: auto; display: block; }
.social-icons { display: flex; gap: 0.8rem; margin-top: 1rem; }
.social-icon { width: 44px; height: 44px; border-radius: 10px; background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.1); display: flex; align-items: center; justify-content: center; text-decoration: none; color: var(--white); transition: background 0.2s, color 0.2s, border-color 0.2s; }
.social-icon:hover { background: rgba(0,180,216,0.15); color: var(--primary); border-color: rgba(0,180,216,0.3); }
.footer-bottom { max-width: 1100px; margin: 0 auto; border-top: 1px solid rgba(255,255,255,0.05); padding-top: 1.4rem; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 1rem; }
.footer-bottom p { font-size: 0.82rem; color: var(--text-muted); }
.footer-bottom-links { display: flex; gap: 1.5rem; flex-wrap: wrap; }
.footer-bottom-links a { color: var(--text-muted); text-decoration: none; font-size: 0.82rem; transition: color 0.2s; }
.footer-bottom-links a:hover { color: var(--primary); }
.footer-lang { display: flex; align-items: center; gap: 6px; margin-top: 1rem; flex-wrap: wrap; }
.footer-lang span { color: var(--text-muted); font-size: 0.82rem; }
.footer-lang a { font-size: 0.82rem; text-decoration: none; transition: color 0.2s; color: var(--text-muted); }
.footer-lang a:hover { color: var(--primary); }
.footer-lang a.active-lang { color: var(--primary); font-weight: 600; }

/* ══ ANIMAZIONI ══ */
.fade-in { opacity: 0; transform: translateY(22px); transition: opacity 0.55s ease, transform 0.55s ease; }
.fade-in.visible { opacity: 1; transform: translateY(0); }

/* ══ HAMBURGER ══ */
.nav-hamburger.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-hamburger.active span:nth-child(2) { opacity: 0; }
.nav-hamburger.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ══ RESPONSIVE 1024px ══ */
@media (max-width: 1024px) {
  .features-grid { grid-template-columns: repeat(3, 1fr); }
  .eco-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .mockup-stack { width: 360px; height: 520px; }
  .phone-center { width: 210px; height: 440px; }
  .phone-left, .phone-right { width: 175px; height: 350px; }
}

/* ══ RESPONSIVE 768px ══ */
@media (max-width: 768px) {
  #hero { flex-direction: column; text-align: center; padding-top: 110px; gap: 2.5rem; }
  .hero-content { max-width: 100%; }
  .hero-content h1 span { display: inline; }
  .hero-sub { max-width: 100%; margin-left: auto; margin-right: auto; }
  .hero-bullets { align-items: flex-start; max-width: 320px; margin-left: auto; margin-right: auto; }
  .hero-bullets li { text-align: left; }
  .store-badges { justify-content: center; }
  .hero-tagline { justify-content: center; }
  .hero-visual { width: 100%; }
  .mockup-stack { width: 300px; height: 460px; margin: 0 auto; }
  .phone-center { width: 190px; height: 390px; }
  .phone-left { width: 155px; height: 310px; top: 70px; }
  .phone-right { width: 155px; height: 310px; top: 70px; }
  #features { margin: 0 2%; }
  #newsletter { margin: 0 2%; }
  .features-grid { grid-template-columns: repeat(2, 1fr); gap: 1.2rem; }
  .eco-grid { grid-template-columns: 1fr; max-width: 400px; margin-left: auto; margin-right: auto; }
  .newsletter-inner { flex-direction: column; }
  .newsletter-form { max-width: 100%; width: 100%; }
  .footer-top { grid-template-columns: 1fr; }
  .nav-links { display: none; flex-direction: column; position: absolute; top: 70px; left: 0; right: 0; background: rgba(5,16,24,0.98); padding: 1.5rem 5%; gap: 1.2rem; border-bottom: 1px solid rgba(0,180,216,0.1); }
  .nav-links.open { display: flex; }
  .nav-hamburger { display: flex; }
  .lang-switch { align-self: flex-start; }
  .section-title-suite { flex-wrap: wrap; }
  .footer-badges { flex-direction: row; flex-wrap: wrap; }
}

/* ══ RESPONSIVE 480px ══ */
@media (max-width: 480px) {
  .features-grid { grid-template-columns: 1fr 1fr; }
  .eco-grid { max-width: 100%; }
  #features { margin: 0; border-radius: 0; }
  #newsletter { margin: 0; border-radius: 0; }
  .mockup-stack { width: 260px; height: 400px; }
  .phone-center { width: 165px; height: 340px; }
  .phone-left { width: 135px; height: 270px; top: 60px; }
  .phone-right { width: 135px; height: 270px; top: 60px; }
  .footer-lang { margin-top: 12px; }
  .section-title-suite img { height: 28px; }
  .hero-bullets { max-width: 100%; }
}
/* ══ IMMAGINI REALI ══ */
.phone { overflow: hidden; }
.phone img { width: 100%; height: 100%; object-fit: cover; border-radius: 34px; display: block; }
.phone span { display: none; }

/* ══ ECO CARD IMMAGINE ══ */
.eco-img-real {
  height: 240px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
  padding: 1rem;
  position: relative;
  overflow: hidden;
}
.eco-img-real::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(5,16,24,0.85) 0%, rgba(5,16,24,0.1) 60%);
  z-index: 1;
}
.eco-img-top { position: relative; z-index: 2; display: flex; align-items: center; }
.eco-img-top img { height: 32px; width: auto; object-fit: contain; filter: brightness(1.1) drop-shadow(0 1px 4px rgba(0,0,0,0.4)); }


/* ══ NAVBAR LOGO IMG ══ */
.nav-logo-wrap img { height: 38px; width: auto; object-fit: contain; display: block; }

/* ══ FOOTER LOGO IMG ══ */
.footer-logo-img { height: 36px; width: auto; object-fit: contain; margin-bottom: 0.5rem; }

/* ══ BADGE UFFICIALI ══ */
.badge-official { display: inline-block; transition: opacity 0.2s, transform 0.2s; }
.badge-official:hover { opacity: 0.85; transform: translateY(-1px); }
.badge-official img { height: 44px; width: auto; display: block; }

/* ══ SWITCHER BANDIERA ══ */
.lang-switch { display: inline-flex; align-items: center; justify-content: center; border: 1px solid rgba(255,255,255,0.15); border-radius: 6px; padding: 4px 7px !important; transition: border-color 0.2s, box-shadow 0.2s; text-decoration: none; }
.lang-switch:hover { border-color: var(--primary) !important; box-shadow: 0 0 0 2px rgba(0,180,216,0.15); }
.lang-switch svg { display: block; border-radius: 2px; overflow: hidden; }
