/* ============================================================
   ALTO GARDA KITE — template.css v2.1
   Prefisso classi: agk-  (compatibile con index.php Joomla 5)
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@300;400;500;600;700&family=DM+Sans:ital,wght@0,300;0,400;0,500;1,300&display=swap');

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif; background: #f5f7f6; color: #1a1a1a; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }

:root {
  --teal: #1a56db; --teal-hover: #1445b5; --teal-light: #eff4ff;
  --white: #ffffff; --off: #f5f7f6; --gray1: #f0f2f1; --gray2: #e4e8e6;
  --text: #1a1a1a; --text2: #4a5450; --text3: #8a9490; --border: rgba(0,0,0,0.07);
  --shadow-sm: 0 2px 12px rgba(0,0,0,0.06); --shadow-md: 0 8px 32px rgba(0,0,0,0.08); --shadow-lg: 0 24px 64px rgba(0,0,0,0.10);
  --r-sm: 10px; --r-md: 16px; --r-lg: 24px; --r-xl: 36px;
  --font-d: 'Space Grotesk', sans-serif;
}

/* NAV */
.agk-nav { position: fixed; top: 0; left: 0; right: 0; z-index: 1000; display: flex; align-items: center; justify-content: space-between; padding: 0 2.5rem; height: 58px; background: rgba(245,247,246,0.92); backdrop-filter: blur(20px) saturate(180%); -webkit-backdrop-filter: blur(20px) saturate(180%); border-bottom: 1px solid var(--border); transition: box-shadow .3s; }
.agk-nav.scrolled { box-shadow: 0 1px 20px rgba(0,0,0,0.08); }
.agk-nav-center { position: absolute; left: 50%; transform: translateX(-50%); display: flex; gap: 2rem; font-size: 13px; color: var(--text2); }
.agk-nav-center a:hover { color: var(--teal); }
.agk-nav-right { display: flex; align-items: center; gap: 1rem; }
.agk-nav-lang { font-size: 12px; color: var(--text3); }
.agk-nav-btn { background: var(--teal); color: #fff !important; font-family: var(--font-d); font-size: 13px; font-weight: 600; padding: 8px 20px; border: none; border-radius: 20px; box-shadow: 0 2px 8px rgba(26,86,219,0.25); transition: background .2s, transform .15s; display: inline-block; }
.agk-nav-btn:hover { background: var(--teal-hover); transform: translateY(-1px); }
.agk-nav-hamburger { display: none; flex-direction: column; justify-content: center; gap: 5px; width: 36px; height: 36px; background: none; border: none; padding: 4px; cursor: pointer; }
.agk-nav-hamburger span { display: block; height: 2px; border-radius: 2px; background: var(--text); transition: transform .3s, opacity .3s; }
.agk-nav-hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.agk-nav-hamburger.open span:nth-child(2) { opacity: 0; }
.agk-nav-hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.agk-mobile-menu { display: none; position: fixed; top: 58px; left: 0; right: 0; bottom: 0; background: rgba(245,247,246,0.97); backdrop-filter: blur(20px); flex-direction: column; align-items: center; justify-content: center; gap: 1.75rem; z-index: 999; }
.agk-mobile-menu.open { display: flex; }
.agk-mobile-menu a { font-family: var(--font-d); font-size: 22px; font-weight: 600; color: var(--text); letter-spacing: -0.5px; }
.agk-mobile-menu a:hover { color: var(--teal); }
.agk-mobile-cta { background: var(--teal) !important; color: #fff !important; padding: 14px 36px; border-radius: 28px; box-shadow: 0 4px 16px rgba(26,86,219,0.3); }

/* WRAP + TOPBAR */
.agk-wrap { padding-top: 58px; }
.agk-topbar { background: var(--teal); color: #fff; font-family: var(--font-d); font-size: 12px; font-weight: 500; text-align: center; padding: 9px 1rem; }

/* HERO */
.agk-hero { min-height: 94vh; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 100px 2rem 5rem; position: relative; overflow: hidden; background: linear-gradient(180deg, #eef2ff 0%, #f5f7f6 55%); }
.agk-hero::before { content: ''; position: absolute; top: -15%; left: -8%; width: 650px; height: 650px; border-radius: 50%; background: radial-gradient(circle, rgba(26,86,219,0.07) 0%, transparent 70%); pointer-events: none; }
.agk-hero::after { content: ''; position: absolute; bottom: 5%; right: -8%; width: 550px; height: 550px; border-radius: 50%; background: radial-gradient(circle, rgba(10,86,180,0.05) 0%, transparent 70%); pointer-events: none; }
.agk-hero-badge { display: inline-flex; align-items: center; gap: 7px; background: var(--white); border: 1px solid var(--gray2); border-radius: 20px; padding: 5px 14px 5px 8px; font-size: 12px; color: var(--text2); margin-bottom: 2rem; box-shadow: var(--shadow-sm); animation: agkUp .7s ease both; }
.agk-badge-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--teal); animation: agkPulse 2s infinite; }
@keyframes agkPulse { 0%,100%{opacity:1;transform:scale(1)} 50%{opacity:.4;transform:scale(.75)} }
.agk-hero-h1 { font-family: var(--font-d); font-size: clamp(50px, 8.5vw, 96px); font-weight: 800; line-height: .93; letter-spacing: -3px; color: var(--text); margin-bottom: 1.5rem; animation: agkUp .8s .1s ease both; }
.agk-light { font-weight: 300; }
.agk-accent { color: var(--teal); }
.agk-hero-sub { font-size: clamp(15px, 1.8vw, 18px); font-weight: 300; line-height: 1.75; color: var(--text2); max-width: 520px; margin: 0 auto 2.5rem; animation: agkUp .8s .2s ease both; }
.agk-hero-btns { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-bottom: 4rem; animation: agkUp .8s .3s ease both; }
.agk-hero-img-wrap { width: 100%; max-width: 920px; border-radius: var(--r-xl); overflow: hidden; box-shadow: var(--shadow-lg); border: 1px solid rgba(255,255,255,.8); position: relative; animation: agkUp .9s .4s ease both; }
.agk-hero-img-wrap img { width: 100%; aspect-ratio: 16/8; object-fit: cover; object-position: center 40%; display: block; }
.agk-float-stats { position: absolute; bottom: 1.5rem; left: 1.5rem; display: flex; gap: .75rem; }
.agk-stat-pill { background: rgba(255,255,255,.9); backdrop-filter: blur(12px); border-radius: 14px; padding: .65rem 1.1rem; box-shadow: var(--shadow-md); border: 1px solid rgba(255,255,255,.9); }
.agk-stat-n { font-family: var(--font-d); font-size: 20px; font-weight: 700; line-height: 1; color: var(--text); }
.agk-stat-n em { color: var(--teal); font-style: normal; }
.agk-stat-l { font-size: 10px; color: var(--text3); margin-top: 2px; text-transform: uppercase; letter-spacing: .5px; }

/* BUTTONS */
.agk-btn { display: inline-block; font-family: var(--font-d); font-size: 15px; font-weight: 500; border: none; cursor: pointer; text-align: center; transition: opacity .2s, transform .15s, box-shadow .2s; }
.agk-btn-primary { background: var(--teal); color: #fff !important; padding: 14px 30px; border-radius: 24px; box-shadow: 0 4px 16px rgba(26,86,219,0.28); }
.agk-btn-primary:hover { background: var(--teal-hover); transform: translateY(-2px); }
.agk-btn-secondary { background: var(--white); color: var(--text) !important; padding: 14px 30px; border-radius: 24px; border: 1px solid var(--gray2); box-shadow: var(--shadow-sm); }
.agk-btn-secondary:hover { background: var(--gray1); transform: translateY(-2px); }
.agk-btn-sm { font-size: 12px; padding: 8px 16px; border-radius: 14px; background: var(--teal); color: #fff !important; border: none; font-family: var(--font-d); font-weight: 500; }
.agk-btn-sm:hover { opacity: .85; }
.agk-btn-white { background: rgba(255,255,255,.92); backdrop-filter: blur(10px); color: var(--text) !important; font-size: 13px; font-weight: 500; padding: 11px 24px; border: none; border-radius: 20px; font-family: var(--font-d); }
.agk-btn-white:hover { background: #fff; transform: translateY(-1px); }
.agk-btn-cta-white { background: #fff; color: var(--teal) !important; font-size: 15px; font-weight: 600; font-family: var(--font-d); padding: 14px 30px; border: none; border-radius: 24px; box-shadow: 0 4px 16px rgba(0,0,0,.14); }
.agk-btn-cta-white:hover { opacity: .92; transform: translateY(-2px); }
.agk-btn-cta-ghost { background: rgba(255,255,255,.1); color: rgba(255,255,255,.9) !important; font-size: 15px; font-weight: 500; font-family: var(--font-d); padding: 14px 30px; border: 1px solid rgba(255,255,255,.25); border-radius: 24px; }
.agk-btn-cta-ghost:hover { background: rgba(255,255,255,.18); }

/* STRIP */
.agk-strip { display: flex; background: var(--white); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.agk-strip-item { flex: 1; display: flex; align-items: center; justify-content: center; gap: 8px; padding: 1.1rem 1.5rem; border-right: 1px solid var(--border); font-size: 12px; font-weight: 500; color: var(--text2); }
.agk-strip-item:last-child { border-right: none; }
.agk-si { font-size: 16px; }

/* SECTIONS */
.agk-section { padding: 6rem 2rem; }
.agk-white { background: var(--white); }
.agk-off { background: var(--off); }
.agk-inner { max-width: 1100px; margin: 0 auto; }
.agk-tag { display: inline-block; font-family: var(--font-d); font-size: 11px; font-weight: 700; letter-spacing: 2.5px; text-transform: uppercase; color: var(--teal); margin-bottom: .85rem; }
.agk-h2 { font-family: var(--font-d); font-size: clamp(30px, 4.5vw, 52px); font-weight: 800; line-height: 1.0; letter-spacing: -1.5px; color: var(--text); }
.agk-sub { font-size: 16px; font-weight: 300; line-height: 1.75; color: var(--text2); margin-top: 1rem; max-width: 500px; }
.agk-sh { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 3rem; gap: 2rem; }
.agk-see-all { font-family: var(--font-d); font-size: 13px; font-weight: 600; color: var(--teal); white-space: nowrap; flex-shrink: 0; border-bottom: 1px solid transparent; transition: border-color .2s; }
.agk-see-all:hover { border-color: var(--teal); }

/* TWO COLS */
.agk-two { display: grid; grid-template-columns: 1fr 1fr; gap: 5rem; align-items: center; }
.agk-rev { direction: rtl; }
.agk-rev > * { direction: ltr; }

/* IMAGE BOX */
.agk-img-box { border-radius: var(--r-lg); overflow: hidden; aspect-ratio: 4/3; box-shadow: var(--shadow-lg); position: relative; }
.agk-img-box img { width: 100%; height: 100%; object-fit: cover; display: block; }
.agk-img-badge { position: absolute; bottom: 1.25rem; left: 1.25rem; background: rgba(255,255,255,.92); backdrop-filter: blur(10px); border-radius: var(--r-sm); padding: .85rem 1.1rem; box-shadow: var(--shadow-md); display: flex; align-items: center; gap: 10px; }
.agk-ib-icon { font-size: 20px; }
.agk-ib-t { font-size: 11px; color: var(--text3); }
.agk-ib-v { font-size: 14px; font-weight: 600; color: var(--text); }
.agk-body-txt { display: flex; flex-direction: column; gap: 1.25rem; }
.agk-body-txt p { font-size: 15px; font-weight: 300; line-height: 1.85; color: var(--text2); }
.agk-feats { display: flex; flex-direction: column; gap: .6rem; }
.agk-feat { display: flex; align-items: center; gap: .85rem; font-size: 14px; color: var(--text2); padding: .65rem .9rem; background: var(--teal-light); border-radius: 8px; }
.agk-fd { width: 6px; height: 6px; border-radius: 50%; background: var(--teal); flex-shrink: 0; }

/* FULLBLEED */
.agk-fb { position: relative; overflow: hidden; border-radius: var(--r-xl); margin: 0 2rem; }
.agk-fb img { width: 100%; height: 440px; object-fit: cover; display: block; }
.agk-fb-ov { position: absolute; inset: 0; background: linear-gradient(to top, rgba(5,15,40,.75) 0%, rgba(5,15,40,.2) 50%, transparent 100%); }
.agk-fb-cnt { position: absolute; bottom: 0; left: 0; right: 0; padding: 3rem 3.5rem; }
.agk-fb-tag { font-family: var(--font-d); font-size: 11px; font-weight: 700; letter-spacing: 2.5px; text-transform: uppercase; color: rgba(255,255,255,.6); margin-bottom: .75rem; }
.agk-fb-h2 { font-family: var(--font-d); font-size: clamp(26px, 3.5vw, 46px); font-weight: 800; letter-spacing: -1.5px; color: #fff; line-height: 1.05; margin-bottom: 1.5rem; }

/* CARDS */
.agk-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.agk-cards-2 { grid-template-columns: repeat(2, 1fr) !important; }
.agk-card { background: var(--white); border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow-sm); border: 1px solid var(--border); transition: transform .3s ease, box-shadow .3s ease; }
.agk-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.agk-card-img { aspect-ratio: 3/2; overflow: hidden; }
.agk-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; display: block; }
.agk-card:hover .agk-card-img img { transform: scale(1.05); }
.agk-card-body { padding: 1.75rem; }
.agk-card-tag { display: inline-block; font-size: 11px; font-weight: 600; padding: 3px 10px; border-radius: 6px; background: var(--teal-light); color: var(--teal); margin-bottom: .85rem; }
.agk-card-title { font-family: var(--font-d); font-size: 20px; font-weight: 700; letter-spacing: -.3px; color: var(--text); margin-bottom: .5rem; }
.agk-card-desc { font-size: 13px; font-weight: 300; line-height: 1.7; color: var(--text2); margin-bottom: 1rem; }
.agk-card-meta { font-size: 12px; color: var(--text3); margin-bottom: 1.25rem; }
.agk-card-btm { display: flex; align-items: center; justify-content: space-between; }
.agk-card-price { font-family: var(--font-d); font-size: 22px; font-weight: 700; color: var(--text); }
.agk-card-price small { font-size: 12px; font-weight: 400; color: var(--text3); }

/* PROCESS */
.agk-process { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.agk-step { background: var(--white); border-radius: var(--r-md); padding: 2rem; border: 1px solid var(--border); box-shadow: var(--shadow-sm); transition: transform .25s ease; }
.agk-step:hover { transform: translateY(-4px); }
.agk-step-n { font-family: var(--font-d); font-size: 12px; font-weight: 700; color: var(--teal); background: var(--teal-light); display: inline-block; padding: 4px 10px; border-radius: 8px; margin-bottom: .85rem; }
.agk-step-t { font-family: var(--font-d); font-size: 17px; font-weight: 700; color: var(--text); margin-bottom: .5rem; }
.agk-step-d { font-size: 13px; font-weight: 300; line-height: 1.7; color: var(--text2); }

/* RELIEF */
.agk-relief { background: var(--white); border-radius: var(--r-lg); position: relative; border: 1.5px solid rgba(26,86,219,0.18); box-shadow: 0 -3px 0 0 rgba(255,255,255,1) inset, 0 3px 0 0 rgba(26,86,219,0.08) inset, 3px 0 0 0 rgba(255,255,255,0.9) inset, -3px 0 0 0 rgba(26,86,219,0.06) inset, 0 8px 32px rgba(26,86,219,0.08), 0 2px 8px rgba(0,0,0,0.06); }
.agk-relief::before { content: ''; position: absolute; top: 0; left: 6%; right: 6%; height: 2px; background: linear-gradient(90deg, transparent, rgba(255,255,255,.95) 30%, rgba(255,255,255,.95) 70%, transparent); pointer-events: none; }
.agk-relief::after { content: ''; position: absolute; top: 12%; bottom: 12%; left: 0; width: 3px; background: linear-gradient(to bottom, transparent, rgba(26,86,219,.35), transparent); border-radius: 0 2px 2px 0; pointer-events: none; }
/* Relief usato come wrapper testo — serve padding */
.agk-body-txt.agk-relief,
.agk-step.agk-relief { padding: 2rem 2.5rem; }

/* FAQ */
.agk-faq { max-width: 740px; margin: 0 auto; }
.agk-faq-item { border-bottom: 1px solid var(--border); }
.agk-faq-q { width: 100%; background: none; border: none; font-family: var(--font-d); font-size: 16px; font-weight: 600; color: var(--text); text-align: left; display: flex; align-items: center; justify-content: space-between; padding: 1.35rem 0; gap: 1rem; cursor: pointer; }
.agk-faq-icon { width: 28px; height: 28px; border-radius: 50%; background: var(--gray1); color: var(--text); display: flex; align-items: center; justify-content: center; font-size: 18px; font-weight: 300; flex-shrink: 0; font-style: normal; transition: background .2s, transform .3s; }
.agk-faq-item.open .agk-faq-icon { background: var(--teal); color: #fff; transform: rotate(45deg); }
.agk-faq-a { font-size: 14px; font-weight: 300; line-height: 1.8; color: var(--text2); max-height: 0; overflow: hidden; transition: max-height .35s ease, padding .3s; }
.agk-faq-item.open .agk-faq-a { max-height: 200px; padding-bottom: 1.5rem; }

/* CTA */
.agk-cta { margin: 0 2rem 6rem; border-radius: var(--r-xl); background: linear-gradient(135deg, #1a56db 0%, #0e3fa6 100%); padding: 5rem 4rem; display: flex; align-items: center; justify-content: space-between; gap: 4rem; position: relative; overflow: hidden; box-shadow: 0 24px 64px rgba(26,86,219,0.18); }
.agk-cta::before { content: ''; position: absolute; top: -40%; right: -5%; width: 500px; height: 500px; border-radius: 50%; background: rgba(255,255,255,.05); pointer-events: none; }
.agk-cta-tag { font-family: var(--font-d); font-size: 11px; font-weight: 700; letter-spacing: 2.5px; text-transform: uppercase; color: rgba(255,255,255,.55); margin-bottom: .75rem; }
.agk-cta-h2 { font-family: var(--font-d); font-size: clamp(34px, 4vw, 54px); font-weight: 800; letter-spacing: -1.5px; color: #fff; line-height: 1.0; }
.agk-cta-h2 em { font-style: italic; opacity: .65; }
.agk-cta-right { display: flex; flex-direction: column; gap: 1rem; align-items: flex-start; flex-shrink: 0; position: relative; z-index: 1; }
.agk-cta-sub { font-size: 15px; font-weight: 300; color: rgba(255,255,255,.65); line-height: 1.75; max-width: 260px; }
.agk-cta-contact { font-size: 12px; color: rgba(255,255,255,.4); line-height: 1.8; }

/* FOOTER */
.agk-footer { background: var(--white); border-top: 1px solid var(--border); padding: 3.5rem 2rem 2rem; }
.agk-footer-inner { max-width: 1100px; margin: 0 auto; }
.agk-footer-top { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 3rem; margin-bottom: 3rem; }
.agk-footer-desc { font-size: 13px; font-weight: 300; color: var(--text2); line-height: 1.75; max-width: 260px; }
.agk-footer-col-title { font-family: var(--font-d); font-size: 10px; font-weight: 700; letter-spacing: 2.5px; text-transform: uppercase; color: var(--text3); margin-bottom: 1rem; }
.agk-footer-links { display: flex; flex-direction: column; gap: .6rem; }
.agk-footer-links a { font-size: 13px; color: var(--text2); transition: color .2s; }
.agk-footer-links a:hover { color: var(--teal); }
.agk-footer-bottom { display: flex; align-items: center; justify-content: space-between; padding-top: 2rem; border-top: 1px solid var(--border); font-size: 12px; color: var(--text3); }

/* ANIMATIONS */
@keyframes agkUp { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: translateY(0); } }
.agk-reveal { opacity: 0; transform: translateY(28px); transition: opacity .65s ease, transform .65s ease; }
.agk-reveal.agk-in { opacity: 1; transform: translateY(0); }
.agk-d1 { transition-delay: .1s; }
.agk-d2 { transition-delay: .2s; }
.agk-d3 { transition-delay: .3s; }

/* TABLET */
@media (max-width: 900px) {
  .agk-nav-center { display: none; }
  .agk-nav { padding: 0 1.25rem; }
  .agk-nav-lang { display: none; }
  .agk-nav-hamburger { display: flex; }
  .agk-hero { padding: 90px 1.25rem 3.5rem; }
  .agk-float-stats { display: none; }
  .agk-strip { flex-wrap: wrap; }
  .agk-strip-item { flex: 1 1 45%; }
  .agk-section { padding: 3.5rem 1.5rem; }
  .agk-two { grid-template-columns: 1fr; gap: 2rem; }
  .agk-rev, .agk-rev > * { direction: ltr; }
  .agk-cards-2 { grid-template-columns: 1fr 1fr !important; }
  .agk-process { grid-template-columns: 1fr 1fr; }
  .agk-cta { flex-direction: column; padding: 3rem 2rem; margin: 0 1rem 4rem; }
  .agk-footer-top { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .agk-footer-bottom { flex-direction: column; gap: .75rem; text-align: center; }
  .agk-fb { margin: 0 1rem; border-radius: var(--r-lg); }
  .agk-dove-grid { grid-template-columns: 1fr !important; }
}

/* MOBILE */
@media (max-width: 600px) {
  .agk-nav { padding: 0 1rem; height: 54px; }
  .agk-hero { padding: 80px 1rem 3rem; min-height: auto; }
  .agk-hero-h1 { font-size: clamp(40px, 11vw, 56px); letter-spacing: -1.5px; }
  .agk-strip { display: grid; grid-template-columns: 1fr 1fr; }
  .agk-strip-item { border-right: none; border-bottom: 1px solid var(--border); font-size: 11px; padding: .85rem 1rem; }
  .agk-strip-item:nth-child(odd) { border-right: 1px solid var(--border); }
  .agk-strip-item:nth-child(3), .agk-strip-item:nth-child(4) { border-bottom: none; }
  .agk-section { padding: 3rem 1rem; }
  .agk-h2 { font-size: clamp(26px, 7vw, 36px); letter-spacing: -1px; }
  .agk-sh { flex-direction: column; gap: .75rem; margin-bottom: 2rem; }
  .agk-cards-2 { grid-template-columns: 1fr !important; }
  .agk-process { grid-template-columns: 1fr; }
  .agk-fb { margin: 0; border-radius: var(--r-md); }
  .agk-fb img { height: 280px; }
  .agk-fb-cnt { padding: 1.5rem; }
  .agk-cta { margin: 0 0 3rem; border-radius: var(--r-lg); padding: 2.5rem 1.5rem; }
  .agk-cta-h2 { font-size: 32px; }
  .agk-btn-cta-white, .agk-btn-cta-ghost { width: 100%; text-align: center; font-size: 14px; }
  .agk-footer { padding: 2.5rem 1rem 1.5rem; }
  .agk-footer-top { grid-template-columns: 1fr; gap: 1.75rem; }
  .agk-footer-bottom { flex-direction: column; gap: .6rem; font-size: 11px; }
  .agk-relief::after { display: none; }
}
