:root {
  --navy: #101c2b;
  --navy2: #17283b;
  --navy3: #24384c;
  --amber: #dda75f;
  --amber-light: #f2c184;
  --cream: #f2e8d9;
  --white: #f8f8f7;
  --muted: #a8b1bd;
  --border: rgba(255,255,255,.12);
}

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

html { scroll-behavior:smooth; }

body {
  background:var(--navy);
  color:var(--white);
  font-family:'Inter',sans-serif;
  font-weight:400;
  overflow-x:hidden;
}

a { color:inherit; text-decoration:none; }

.container {
  width:min(1200px,90%);
  margin:auto;
}

/* NAVIGATION */

header {
  position:absolute;
  top:0;
  left:0;
  width:100%;
  z-index:10;
  padding:24px 0;
}

.navbar {
  display:flex;
  align-items:center;
  justify-content:space-between;
}

.logo {
  display:flex;
  align-items:center;
  gap:12px;
}

.logo-symbol {
  width:48px;
  height:48px;
  position:relative;
  display:grid;
  place-items:center;
  color:var(--amber-light);
  font-family:'Outfit',sans-serif;
  font-size:43px;
  font-weight:300;
  line-height:1;
}

.logo-symbol:before {
  content:'';
  position:absolute;
  width:37px;
  height:37px;
  border:1px solid var(--amber);
  border-right-color:transparent;
  border-bottom-color:transparent;
  border-radius:50%;
  top:1px;
  left:5px;
  transform:rotate(12deg);
}

.logo-symbol:after {
  content:'✦';
  position:absolute;
  font-size:12px;
  right:0;
  top:0;
  color:var(--amber-light);
}

.logo-name {
  font-family:'Outfit',sans-serif;
  font-size:23px;
  letter-spacing:7px;
  font-weight:400;
}

.logo-sub {
  font-size:8px;
  letter-spacing:5px;
  color:var(--amber);
  margin-top:4px;
}

.logo-img {
  display:block;
  height:48px;
  width:auto;
}

.nav-links {
  display:flex;
  align-items:center;
  gap:35px;
  font-size:12px;
  color:#d5dbe2;
}

.nav-links a {
  transition:.3s;
}

.nav-links a:hover {
  color:var(--amber-light);
}

/* icone social: sobrie, al colore dei link */
.social {
  display:flex;
  align-items:center;
  gap:6px;
  padding-left:22px;
  border-left:1px solid var(--border);
}

.social a {
  width:34px;
  height:34px;
  display:grid;
  place-items:center;
  border-radius:50%;
  color:#d5dbe2;
  transition:.3s;
}

.social a:hover {
  color:var(--amber-light);
  background:rgba(255,255,255,.06);
}

.social-footer {
  margin-top:22px;
  margin-left:-8px;
  padding-left:0;
  border-left:0;
}

.social-footer a { color:var(--muted); }
.social-footer a:hover { color:var(--amber); }

.btn {
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  padding:14px 25px;
  border-radius:50px;
  background:var(--amber);
  color:#17202a;
  font-size:12px;
  font-weight:600;
  transition:.3s;
  border:1px solid var(--amber);
}

.btn:hover {
  background:var(--amber-light);
  transform:translateY(-2px);
  box-shadow:0 8px 30px rgba(221,167,95,.2);
}

.btn-outline {
  background:transparent;
  color:var(--amber-light);
}

.btn-outline:hover {
  background:var(--amber);
  color:var(--navy);
}

.menu-toggle {
  display:none;
  background:none;
  color:white;
  border:0;
  font-size:26px;
  cursor:pointer;
}

/* HERO */

.hero {
  min-height:680px;
  height:92vh;
  max-height:880px;
  position:relative;
  display:flex;
  align-items:center;
  overflow:hidden;
  background:
    linear-gradient(90deg,rgba(10,20,32,.78) 0%,rgba(10,20,32,.35) 42%,rgba(10,20,32,0) 70%),
    linear-gradient(0deg,var(--navy) 0%,rgba(16,28,43,0) 30%),
    url('../img/hero-alpi.webp') 74% center/cover;
}

.hero-content {
  position:relative;
  z-index:2;
  padding-top:65px;
  width:50%;
}

.eyebrow {
  color:var(--amber);
  font-size:10px;
  letter-spacing:5px;
  text-transform:uppercase;
  margin-bottom:25px;
  font-weight:500;
}

h1,h2,h3 {
  font-family:'Outfit',sans-serif;
  font-weight:300;
}

.hero h1 {
  font-size:clamp(43px,5vw,72px);
  line-height:1.08;
  letter-spacing:-2px;
  max-width:650px;
}

.hero h1 span,
.section-title span {
  color:var(--amber-light);
}

.hero p {
  color:#d4dbe3;
  font-size:15px;
  line-height:1.75;
  max-width:440px;
  margin:25px 0 32px;
}

.hero-buttons {
  display:flex;
  gap:14px;
  flex-wrap:wrap;
}

/* tablet che fluttua sull'hero */
.hero-mockup {
  position:absolute;
  z-index:1;
  width:min(50vw,820px);
  right:2%;
  top:50%;
  margin-top:-16%;
  pointer-events:none;
  animation:float 7s ease-in-out infinite;
}

.hero-mockup img {
  display:block;
  width:118%;
  max-width:none;
  margin:-3% 0 -15% -9%;
  height:auto;
}

@keyframes float {
  0%,100% { transform:translateY(0) rotate(0deg); }
  50%     { transform:translateY(-16px) rotate(-.6deg); }
}

@media (prefers-reduced-motion:reduce) {
  .hero-mockup { animation:none; }
}

.hero-scroll {
  position:absolute;
  z-index:2;
  bottom:35px;
  left:50%;
  transform:translateX(-50%);
  border:1px solid rgba(255,255,255,.4);
  border-radius:30px;
  width:30px;
  height:46px;
  display:grid;
  place-items:center;
  color:var(--white);
  transition:.3s;
}

.hero-scroll:hover { border-color:var(--amber); color:var(--amber); }

/* FEATURES */

.features {
  padding:65px 0;
  background:#0c1724;
  border-top:1px solid var(--border);
  border-bottom:1px solid var(--border);
}

.feature-grid {
  display:grid;
  grid-template-columns:repeat(4,1fr);
}

.feature {
  text-align:center;
  padding:10px 25px;
  border-right:1px solid var(--border);
}

.feature:last-child { border:0; }

.feature-icon {
  font-size:29px;
  color:var(--amber);
  margin-bottom:20px;
  line-height:0;
}

.feature-icon svg { display:inline-block; }

.feature h3 {
  font-size:17px;
  font-weight:400;
  margin-bottom:10px;
}

.feature p {
  font-size:12px;
  line-height:1.7;
  color:var(--muted);
}

/* EDITORIAL SECTION */

.editorial {
  display:grid;
  grid-template-columns:1fr 1fr;
  min-height:500px;
  align-items:stretch;
}

/* prima / dopo con la linea da spostare */
.ba-slider {
  position:relative;
  min-height:480px;
  overflow:hidden;
  user-select:none;
  -webkit-user-select:none;
  touch-action:pan-y;
}

.ba-slider img {
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  object-fit:cover;
  object-position:50% 50%;
  display:block;
  pointer-events:none;
}

.ba-before { clip-path:inset(0 calc(100% - var(--pos)) 0 0); }

.ba-handle {
  position:absolute;
  top:0;
  bottom:0;
  left:var(--pos);
  width:2px;
  margin-left:-1px;
  background:var(--amber-light);
  box-shadow:0 0 12px rgba(0,0,0,.45);
  pointer-events:none;
  z-index:2;
}

.ba-handle span {
  position:absolute;
  top:50%;
  left:50%;
  width:44px;
  height:44px;
  margin:-22px 0 0 -22px;
  border-radius:50%;
  background:var(--amber);
  color:#17202a;
  display:grid;
  place-items:center;
  box-shadow:0 6px 20px rgba(0,0,0,.45);
}

.ba-label {
  position:absolute;
  top:18px;
  z-index:2;
  padding:6px 13px;
  border-radius:30px;
  background:rgba(10,20,32,.65);
  border:1px solid var(--border);
  backdrop-filter:blur(6px);
  font-size:10px;
  letter-spacing:3px;
  text-transform:uppercase;
  color:var(--cream);
  pointer-events:none;
}

.ba-label-left { left:18px; }
.ba-label-right { right:18px; }

.ba-range {
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  margin:0;
  opacity:0;
  cursor:ew-resize;
  touch-action:pan-y;
  z-index:3;
  -webkit-appearance:none;
  appearance:none;
}

.ba-range::-webkit-slider-thumb { -webkit-appearance:none; width:44px; height:100vh; cursor:ew-resize; }
.ba-range::-moz-range-thumb { width:44px; height:100vh; border:0; cursor:ew-resize; }

.editorial-text {
  padding:90px 12%;
  display:flex;
  flex-direction:column;
  justify-content:center;
}

.small-line {
  width:55px;
  height:2px;
  background:var(--amber);
  margin-bottom:25px;
}

.section-title {
  font-size:clamp(34px,4vw,49px);
  line-height:1.18;
  margin-bottom:22px;
}

.section-text {
  font-size:14px;
  line-height:1.9;
  color:#b9c2ce;
  max-width:490px;
  margin-bottom:28px;
}

/* APP FEATURES */

.app-section {
  padding:110px 0;
  background:
    radial-gradient(ellipse at 80% 50%,#24384c 0%,transparent 50%),
    var(--navy);
}

.center-heading {
  text-align:center;
  max-width:680px;
  margin:0 auto 65px;
}

.center-heading .section-text {
  margin:20px auto 0;
}

.app-grid {
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:22px;
}

.app-card {
  background:rgba(255,255,255,.035);
  border:1px solid var(--border);
  border-radius:12px;
  padding:30px;
  transition:.3s;
}

.app-card:hover {
  border-color:var(--amber);
  transform:translateY(-5px);
  background:rgba(255,255,255,.06);
}

.app-card .feature-icon { margin-bottom:22px; }

.app-card h3 {
  font-size:21px;
  margin-bottom:12px;
}

.app-card p {
  font-size:13px;
  color:var(--muted);
  line-height:1.8;
}

/* QUANDO PASSA QUI */

.when {
  position:relative;
  overflow:hidden;
  padding:110px 0;
  background:
    radial-gradient(ellipse at 78% 50%,#2a4054 0%,transparent 50%),
    #0c1724;
  border-top:1px solid var(--border);
  border-bottom:1px solid var(--border);
}

.when-layout {
  display:grid;
  grid-template-columns:.8fr 1.2fr;
  gap:55px;
  align-items:center;
}

.when-video { position:relative; }

/* alone caldo dietro al video */
.when-video:before {
  content:'';
  position:absolute;
  inset:10% 8%;
  background:radial-gradient(ellipse,rgba(221,167,95,.22),transparent 70%);
  filter:blur(30px);
}

/* cornice di vetro che fluttua */
.when-frame {
  position:relative;
  padding:10px;
  border-radius:20px;
  background:rgba(12,23,36,.85);
  border:1px solid rgba(255,255,255,.16);
  box-shadow:0 30px 80px rgba(0,0,0,.55);
  animation:float 8s ease-in-out infinite;
  animation-delay:-1s;
}

.when-frame video {
  display:block;
  width:100%;
  height:auto;
  aspect-ratio:2026/1080;
  object-fit:cover;
  border-radius:12px;
  background:#0c1724;
}

@media (prefers-reduced-motion:reduce) {
  .when-frame { animation:none; }
}

/* telefono: il video è verticale (9:16) */
@media (max-width:700px) {
  .when-frame { max-width:320px; margin:0 auto; }
  .when-frame video { aspect-ratio:1080/1920; }
}

/* TRE VISUALIZZAZIONI */

.views {
  padding:105px 0 115px;
  background:
    linear-gradient(0deg,rgba(12,23,36,.94),rgba(12,23,36,.88)),
    linear-gradient(135deg,#40586b,#152638);
}

.view-grid {
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:22px;
}

.view-card {
  background:var(--navy);
  border:1px solid var(--border);
  border-radius:14px;
  overflow:hidden;
  transition:.3s;
}

.view-card:hover {
  border-color:var(--amber);
  transform:translateY(-5px);
}

.view-art {
  padding:14px;
  background:linear-gradient(145deg,#31495e,#17283b);
}

.view-art img {
  display:block;
  width:100%;
  height:auto;
  aspect-ratio:2000/1068;
  object-fit:cover;
  border-radius:8px;
  border:1px solid rgba(255,255,255,.2);
}

.view-copy { padding:22px 24px 26px; }

.view-copy small {
  display:block;
  color:var(--amber);
  font-size:9px;
  letter-spacing:1.5px;
  text-transform:uppercase;
  margin-bottom:8px;
}

.view-copy h3 {
  font-size:21px;
  margin-bottom:9px;
}

.view-copy p {
  font-size:13px;
  color:var(--muted);
  line-height:1.75;
}

/* PRODUCT SHOWCASE */

.showcase {
  position:relative;
  overflow:hidden;
  padding:110px 0 120px;
  background:
    linear-gradient(90deg,var(--navy) 0%,rgba(16,28,43,.9) 28%,rgba(16,28,43,.25) 60%,rgba(16,28,43,.05) 100%),
    linear-gradient(180deg,var(--navy) 0%,rgba(16,28,43,0) 22%,rgba(16,28,43,0) 75%,var(--navy) 100%),
    url('../img/alba-dorata.webp') 70% 60%/cover;
}

.showcase-layout {
  display:grid;
  grid-template-columns:.75fr 1.25fr;
  gap:40px;
  align-items:center;
}

.showcase-copy .section-title {
  font-size:46px;
}

/* tablet e telefono che fluttuano */
.device-float {
  position:relative;
  animation:float 8s ease-in-out infinite;
  animation-delay:-2s;
}

.device-float img {
  position:relative;
  z-index:1;
  display:block;
  width:132.16%;
  max-width:none;
  margin:-3.36% 0 -16.8% -10.08%;
  height:auto;
}

.device-arc {
  position:absolute;
  z-index:0;
  width:38%;
  right:-14%;
  top:-14%;
  pointer-events:none;
}

@media (prefers-reduced-motion:reduce) {
  .device-float { animation:none; }
}

/* CTA */

.final-cta {
  padding:105px 20px;
  text-align:center;
  background:
    linear-gradient(rgba(10,20,32,.82),rgba(10,20,32,.95)),
    url('https://images.unsplash.com/photo-1519681393784-d120267933ba?auto=format&fit=crop&w=2000&q=90') center/cover;
}

.final-cta h2 {
  font-size:clamp(36px,5vw,55px);
  margin-bottom:20px;
}

.final-cta p {
  color:#c4ccd5;
  font-size:14px;
  margin-bottom:32px;
}

/* FOOTER */

footer {
  background:#09131f;
  border-top:1px solid var(--border);
  padding:55px 0 25px;
}

.footer-content {
  display:flex;
  justify-content:space-between;
  gap:40px;
  flex-wrap:wrap;
  padding-bottom:40px;
}

.footer-description {
  font-size:12px;
  color:var(--muted);
  margin-top:15px;
  line-height:1.8;
  max-width:300px;
}

.footer-links h4 {
  color:var(--amber);
  font-size:11px;
  letter-spacing:2px;
  margin-bottom:20px;
  text-transform:uppercase;
}

.footer-links a {
  display:block;
  color:#b6c0cb;
  font-size:12px;
  margin-bottom:13px;
}

.footer-links a:hover { color:var(--amber); }

.footer-contact-text { color:#b6c0cb; font-size:12px; line-height:1.6; margin-bottom:15px; max-width:180px; }

.footer-contact-btn { padding:10px 20px; }

.copyright {
  border-top:1px solid var(--border);
  padding-top:22px;
  color:#778493;
  font-size:10px;
  display:flex;
  justify-content:space-between;
  gap:15px;
}

/* ANIMATIONS */

.reveal {
  opacity:0;
  transform:translateY(25px);
  transition:opacity .8s ease,transform .8s ease;
}

.reveal.visible {
  opacity:1;
  transform:translateY(0);
}

/* RESPONSIVE */

@media(max-width:900px) {
  .hero { height:auto; min-height:850px; }
  .hero-content { width:100%; padding-top:120px; }
  .hero { flex-direction:column; align-items:stretch; max-height:none; background-position:center; }
  .hero-mockup {
    position:relative;
    width:92%;
    top:auto;
    right:auto;
    margin:40px auto 90px;
  }
  .feature-grid { grid-template-columns:repeat(2,1fr); gap:35px 0; }
  .feature:nth-child(2) { border:0; }
  .editorial { grid-template-columns:1fr; }
  .ba-slider { min-height:0; height:62.5vw; align-self:start; order:2; }   /* altezza esplicita: Safari ignorava aspect-ratio nella griglia */
  .editorial-text { order:1; }
  .editorial-text { padding:65px 7%; }
  .showcase-layout { grid-template-columns:1fr; }
  .device-float img { width:118%; margin:-3% 0 -15% -9%; }
  .device-arc { right:-4%; top:-10%; }
  .showcase { background-position:60% 70%; }
  .app-grid { grid-template-columns:repeat(2,1fr); }
  .when-layout { grid-template-columns:1fr; gap:45px; }
  .view-grid { grid-template-columns:1fr; max-width:620px; margin:0 auto; }
}

@media(max-width:600px) {
  header { padding:16px 0; }
  .logo-name { font-size:19px; letter-spacing:5px; }
  .logo-symbol { font-size:36px; }
  .logo-img { height:40px; }
  .menu-toggle { display:block; }
  .nav-links {
    display:none;
    position:absolute;
    top:75px;
    left:5%;
    width:90%;
    padding:25px;
    background:#142438;
    border:1px solid var(--border);
    border-radius:12px;
    flex-direction:column;
    align-items:stretch;
    gap:22px;
  }
  .nav-links.active { display:flex; }
  .nav-links .social { padding:22px 0 0; margin-top:6px; border-left:0; border-top:1px solid var(--border); margin-left:-8px; }
  .social-footer { margin-top:32px; }
  .nav-download { display:none; }
  .hero { min-height:780px; }
  .hero h1 { font-size:43px; }
  .hero-content { padding-top:120px; }
  .hero-mockup { width:100%; margin:30px auto 90px; }
  .feature-grid { grid-template-columns:1fr 1fr; }
  .feature { padding:10px; }
  .feature h3 { font-size:14px; }
  .feature p { font-size:11px; }
  .app-grid { grid-template-columns:1fr; }
  .app-section { padding:75px 0; }
  .showcase { padding:70px 0; }
  .when { padding:75px 0; }
  .when-frame { padding:6px; border-radius:14px; }
  .when-frame video { border-radius:9px; }
  .views { padding:75px 0 80px; }
  .showcase-copy .section-title { font-size:37px; }
  .copyright { flex-direction:column; }
  .final-cta { padding:75px 20px; }
}

/* BLOG */

.blog-hero {
  padding:160px 0 50px;
  background:
    radial-gradient(ellipse at 20% 0%,#24384c 0%,transparent 55%),
    var(--navy);
}

.blog-hero .section-title { margin-top:18px; }

.blog-list {
  padding:20px 0 110px;
  background:var(--navy);
}

.blog-list .container {
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:24px;
}

.post-card {
  border:1px solid var(--border);
  border-radius:12px;
  overflow:hidden;
  transition:.3s;
  background:rgba(255,255,255,.02);
}

.post-card:hover {
  border-color:var(--amber);
  background:rgba(255,255,255,.05);
  transform:translateY(-3px);
}

.post-card > a {
  display:flex;
  flex-direction:column;
  height:100%;
}

.post-cover {
  aspect-ratio:3 / 2;
  overflow:hidden;
  background:#0c1724;
}

.post-cover img {
  display:block;
  width:100%;
  height:100%;
  object-fit:cover;
  transition:transform .6s ease;
}

.post-card:hover .post-cover img { transform:scale(1.04); }

.post-cover-empty {
  display:grid;
  place-items:center;
  background:radial-gradient(ellipse at 30% 20%,#24384c 0%,#0c1724 70%);
}

.post-cover-empty img {
  width:52%;
  height:auto;
  object-fit:contain;
  opacity:.55;
}

.post-body {
  display:flex;
  flex-direction:column;
  flex:1;
  padding:24px 26px 26px;
}

.post-date {
  display:block;
  color:var(--amber);
  font-size:11px;
  letter-spacing:2px;
  text-transform:uppercase;
  margin-bottom:10px;
}

.post-card h2 {
  font-family:'Outfit',sans-serif;
  font-weight:400;
  font-size:21px;
  line-height:1.3;
  margin-bottom:10px;
}

.post-card p {
  font-size:13px;
  line-height:1.8;
  color:var(--muted);
  margin-bottom:16px;
}

.post-readmore {
  margin-top:auto;
  font-size:12px;
  color:var(--amber-light);
}

.blog-single {
  padding:20px 0 110px;
  background:var(--navy);
}

.blog-single .container {
  max-width:720px;
}

.post-content {
  font-size:15px;
  line-height:1.9;
  color:#d4dbe3;
  margin-bottom:45px;
}

.post-content h2,
.post-content h3 {
  color:var(--amber);
  margin:35px 0 15px;
}

.post-content p { margin-bottom:18px; }

.post-content a { color:var(--amber-light); text-decoration:underline; }

.post-content ul,
.post-content ol {
  margin:0 0 18px 22px;
}

.post-cta {
  display:flex;
  align-items:center;
  gap:16px;
  padding:22px 24px;
  margin-bottom:35px;
  border:1px solid rgba(221,167,95,.3);
  border-radius:16px;
  background:rgba(221,167,95,.06);
}

.post-cta svg { flex:none; color:var(--amber); }

.post-cta div { flex:1; }

.post-cta strong { display:block; color:#fff; font-size:15px; margin-bottom:3px; }

.post-cta p { margin:0; color:var(--muted); font-size:14px; }

.post-cta .btn { flex:none; padding:10px 20px; font-size:14px; white-space:nowrap; }

@media (max-width:600px) {
  .post-cta { flex-wrap:wrap; }
  .post-cta .btn { margin-left:38px; }
}

.post-content img {
  max-width:100%;
  border-radius:10px;
  margin:20px 0;
}

@media(max-width:900px) {
  .blog-list .container { grid-template-columns:repeat(2,minmax(0,1fr)); }
}

@media(max-width:600px) {
  .blog-hero { padding:130px 0 40px; }
  .blog-list .container { grid-template-columns:1fr; gap:18px; }
  .post-body { padding:22px; }
}

/* LINGUA (IT · EN) */

.lang-switch {
  display:inline-flex;
  align-items:center;
  gap:7px;
  letter-spacing:1.5px;
}

.lang-switch span { color:#5d6b7b; }
.lang-switch a { color:#9aa6b4; }
.lang-switch a:hover,
.lang-switch a[aria-current] { color:var(--amber-light); }
.nav-links .lang-switch-nav { margin-left:-12px; }
.copyright .lang-switch { letter-spacing:.5px; }

@media(max-width:900px) {
  .nav-links .lang-switch-nav { margin-left:0; }
}

/* link a privacy e crediti nel piè di pagina */
.footer-legal a { color:inherit; }
.footer-legal a:hover { color:var(--amber-light); }
