/* =========================================================
   AIngegnerIA - STYLE.CSS
   Versione rifinita senza modifiche al layout visivo
   ========================================================= */

/* =========================================================
   01. BASE PAGINA
========================================================= */

body{
  font-family:Arial, Helvetica, sans-serif;
  margin:0;
  padding-top:78px;
  background:
    radial-gradient(circle at 20% 20%, rgba(255,255,255,0.95), rgba(255,255,255,0) 28%),
    radial-gradient(circle at 85% 15%, rgba(255,255,255,0.35), rgba(255,255,255,0) 22%),
    linear-gradient(135deg, #eef2ff 0%, #cfd7ff 35%, #9eb0ff 68%, #7f92f0 100%);
  color:#23306b;
}

/* =========================================================
   02. REGOLE GENERALI
========================================================= */

*{
  box-sizing:border-box;
}

html,
body{
  max-width:100%;
  overflow-x:hidden;
}

img,
video,
iframe{
  max-width:100%;
  height:auto;
  display:block;
}

p,
li,
h1,
h2,
h3,
h4,
a,
button,
span{
  word-wrap:break-word;
  overflow-wrap:break-word;
}

/* =========================================================
   03. HEADER PROFESSIONALE
========================================================= */

header{
  display:grid;
  grid-template-columns:auto 1fr;
  align-items:center;
  padding:10px 28px 10px 90px;
  min-height:84px;
  background:rgba(255,255,255,0.86);
  backdrop-filter:blur(18px);
  -webkit-backdrop-filter:blur(18px);
  border-bottom:1px solid rgba(31,67,188,0.08);
  box-shadow:0 10px 30px rgba(15,23,60,0.08);
  position:fixed;
  top:0;
  left:0;
  width:100%;
  z-index:1000;
  transition:
    background 0.28s ease,
    box-shadow 0.28s ease,
    border-color 0.28s ease;
}

header.scrolled{
  background:rgba(255,255,255,0.94);
  box-shadow:0 14px 34px rgba(15,23,60,0.12);
  border-bottom:1px solid rgba(31,67,188,0.10);
}

/* =========================================================
   04. LOGO
========================================================= */

.brand{
  display:flex;
  align-items:center;
  justify-content:flex-start;
  min-width:0;
}

.brand-logo{
  height:82px;
  width:auto;
  filter:
    drop-shadow(0 4px 10px rgba(0,0,0,0.08))
    contrast(1.05)
    saturate(1.02);
  transition:transform 0.25s ease;
}

.brand-logo:hover{
  transform:scale(1.04);
}

/* =========================================================
   05. BLOCCO DESTRO HEADER
========================================================= */

.header-right-group{
  display:flex;
  align-items:center;
  justify-content:flex-end;
  gap:16px;
  width:100%;
  flex-wrap:wrap;
}

/* =========================================================
   06. NAVBAR
========================================================= */

nav{
  display:flex;
  align-items:center;
  justify-content:flex-end;
  gap:8px;
  margin:0;
  flex-wrap:wrap;
}

nav a{
  position:relative;
  padding:10px 16px;
  text-decoration:none;
  color:#33406f;
  font-weight:600;
  font-size:15px;
  letter-spacing:-0.01em;
  border-radius:16px;
  transition:
    color 0.22s ease,
    background 0.22s ease,
    transform 0.22s ease,
    box-shadow 0.22s ease;
  white-space:nowrap;
}

nav a.active{
  background:linear-gradient(135deg,#4c6fff,#2955ff);
  color:#ffffff;
  box-shadow:0 10px 22px rgba(41,85,255,0.24);
}

nav a:hover{
  background:rgba(65,104,255,0.08);
  color:#1f43bc;
  transform:translateY(-1px);
  box-shadow:0 8px 16px rgba(31,67,188,0.08);
}

/* =========================================================
   07. HEADER RIGHT
========================================================= */

.header-right{
  display:flex;
  align-items:center;
  justify-content:flex-end;
  gap:8px;
  flex-wrap:nowrap;
  padding-left:6px;
}

/* =========================================================
   08. SOCIAL
========================================================= */

.social-link{
  text-decoration:none;
  display:flex;
  align-items:center;
  justify-content:center;
  width:42px;
  height:42px;
  border-radius:14px;
  font-size:18px;
  color:white;
  transition:
    transform 0.22s ease,
    box-shadow 0.22s ease,
    filter 0.22s ease;
  box-shadow:0 10px 20px rgba(15,23,60,0.14);
}

.social-link.instagram{
  background:linear-gradient(135deg,#f9ce34,#ee2a7b,#6228d7);
}

.social-link.facebook{
  background:#1877f2;
}

.social-link.linkedin{
  background:#0077b5;
}

.social-link:hover{
  transform:translateY(-3px);
  box-shadow:0 14px 24px rgba(15,23,60,0.18);
  filter:saturate(1.05);
}

/* =========================================================
   09. LOGIN BUTTON
========================================================= */

.login{
  background:linear-gradient(135deg,#4c6fff,#2955ff);
  color:white;
  padding:10px 20px;
  border-radius:999px;
  text-decoration:none;
  font-weight:700;
  font-size:14px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:42px;
  white-space:nowrap;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    filter 0.2s ease;
  box-shadow:0 10px 20px rgba(41,85,255,0.24);
}

.login:hover{
  transform:translateY(-2px);
  box-shadow:0 14px 26px rgba(41,85,255,0.32);
  filter:brightness(1.05);
}

/* =========================================================
   10. HERO
========================================================= */

.hero{
  display:flex;
  align-items:center;
  justify-content:flex-start;
  position:relative;
  min-height:calc(100vh - 78px);
  padding:120px 70px 72px;
  overflow:hidden;
  background-image:
    linear-gradient(
      to right,
      rgba(18,31,70,0.84) 0%,
      rgba(18,31,70,0.76) 18%,
      rgba(18,31,70,0.52) 34%,
      rgba(18,31,70,0.20) 52%,
      rgba(18,31,70,0.06) 66%,
      rgba(18,31,70,0.00) 78%
    ),
    url("../img/hero-home.webp");
  background-repeat:no-repeat;
  background-position:left top, right center;
  background-size:100% 100%, auto 100%;
  background-color:#dfe4ef;
}

.hero::before{
  content:"";
  position:absolute;
  left:120px;
  top:160px;
  width:420px;
  height:420px;
  background:radial-gradient(
    circle,
    rgba(76,111,255,0.28),
    rgba(76,111,255,0.10),
    transparent 70%
  );
  filter:blur(50px);
  z-index:1;
  pointer-events:none;
}

/* =========================================================
   11. HERO TEXT
========================================================= */

.hero-text{
  flex:0 0 auto;
  width:520px;
  max-width:520px;
  margin-left:72px;
  margin-top:0;
  position:relative;
  z-index:2;
  display:flex;
  flex-direction:column;
  gap:6px;
  padding:8px 0;
  text-shadow:0 10px 30px rgba(0,0,0,0.08);
  opacity:0;
  transform:translateY(40px);
  animation:fadeUp 1.6s ease forwards;
}

.hero-text h1{
  font-family:'Inter', sans-serif;
  font-size:58px;
  font-weight:400;
  line-height:1.03;
  letter-spacing:-0.03em;
  margin:0 0 8px 0;
  color:#ffffff;
  text-shadow:0 6px 22px rgba(0,0,0,0.30);
  max-width:520px;
}

.hero-text p{
  font-family:'Inter', sans-serif;
  font-size:24px;
  font-weight:400;
  line-height:1.45;
  margin:0 0 10px 0;
  color:#ffffff;
  text-shadow:0 2px 10px rgba(0,0,0,0.28);
  max-width:540px;
}

/* =========================================================
   12. CTA
========================================================= */

.cta{
  margin-top:24px;
  display:inline-block;
  align-self:flex-start;
  background:linear-gradient(90deg,#5c83ff,#2955ff);
  color:white;
  padding:12px 24px;
  border-radius:28px;
  text-decoration:none;
  font-weight:500;
  font-size:16px;
  letter-spacing:0.2px;
  position:relative;
  overflow:hidden;
  box-shadow:0 10px 22px rgba(44,79,255,0.28);
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease,
    background 0.25s ease;
}

.cta:hover{
  transform:translateY(-4px) scale(1.02);
  box-shadow:0 20px 42px rgba(44,79,255,0.45);
  background:linear-gradient(90deg,#6f92ff,#2a56ff);
}

.cta::before{
  content:"";
  position:absolute;
  top:0;
  left:-100%;
  width:100%;
  height:100%;
  background:linear-gradient(
    120deg,
    transparent,
    rgba(255,255,255,0.35),
    transparent
  );
  transition:0.6s;
}

.cta:hover::before{
  left:100%;
}

/* =========================================================
   13. HERO IMAGE
========================================================= */

/* =========================================================
   14. ANIMAZIONI
========================================================= */

@keyframes fadeUp{
  from{
    opacity:0;
    transform:translateY(40px);
  }

  to{
    opacity:1;
    transform:translateY(0);
  }
}

/* =========================================================
   15. PAGINE INTERNE
========================================================= */

.page-header{
  display:flex;
  justify-content:center;
  align-items:flex-start;
  padding:60px 60px 40px;
  background:white;
}

.page-header-text{
  max-width:600px;
}

.page-header-text h1{
  font-size:64px;
  color:#1f4db8;
  margin-bottom:20px;
}

.page-header-text p{
  font-size:22px;
  color:#3d4f7a;
  line-height:1.6;
  margin-bottom:20px;
}

/* =========================================================
   16. LAYOUT SERVIZI / PROGETTI
========================================================= */

.services-sidebar h2{
  font-size:24px;
  color:#2f5597;
  margin-bottom:20px;
}

/* =========================================================
   17. MENU STANDARD
========================================================= */

.service-menu{
  max-height:480px;
  overflow-y:auto;
  padding-right:0;
}

/* =========================================================
   18. MENU CON SCROLLBAR IDENTICA TRA SERVIZI E PROGETTI
========================================================= */

.service-menu.project-menu{
  height:470px;
  max-height:470px;
  overflow-y:scroll;
  overflow-x:hidden;
  padding-right:8px;
  scrollbar-width:auto;
  scrollbar-color:#b8b8b8 #f1f1f1;
}

.service-menu.project-menu::-webkit-scrollbar{
  width:14px;
}

.service-menu.project-menu::-webkit-scrollbar-track{
  background:#f1f1f1;
  border-radius:12px;
}

.service-menu.project-menu::-webkit-scrollbar-thumb{
  background:#b8b8b8;
  border-radius:12px;
  border:3px solid #f1f1f1;
}

.service-menu.project-menu::-webkit-scrollbar-thumb:hover{
  background:#9f9f9f;
}

/* =========================================================
   19. TAB MENU
========================================================= */

.service-tab{
  width:100%;
  background:#fff;
  border:1px solid #e5e5e5;
  border-radius:10px;
  padding:18px 18px;
  margin-bottom:14px;
  text-align:left;
  font-size:17px;
  line-height:1.25;
  color:#3d5d97;
  cursor:pointer;
  transition:all 0.2s ease;
}

.service-tab:hover{
  border-color:#c7d3f7;
  box-shadow:0 4px 12px rgba(0,0,0,0.04);
}

.service-tab.active{
  border:1px solid #2f59d9;
  box-shadow:0 0 0 1px #2f59d9 inset;
}

/* =========================================================
   20. CONTENUTI SERVIZI / PROGETTI
========================================================= */

.service-panel{
  display:none;
}

.service-panel.active{
  display:block;
}

.service-panel h3{
  font-size:28px;
  color:#2f5597;
  margin-bottom:14px;
}

.service-panel h4{
  font-size:20px;
  color:#2f5597;
  margin-top:24px;
  margin-bottom:8px;
}

.service-panel p{
  font-size:20px;
  color:#3d5d97;
  line-height:1.6;
  margin-bottom:14px;
  max-width:920px;
}

.service-panel ul{
  padding-left:28px;
  color:#3d5d97;
  font-size:20px;
  line-height:1.6;
}

/* =========================================================
   21. ABOUT - DEFINITIVO
========================================================= */

.about-page{
  padding:58px 50px 44px;
  background:
    radial-gradient(circle at 0% 0%, rgba(255,255,255,0.92), rgba(255,255,255,0) 26%),
    linear-gradient(180deg, #ffffff 0%, #f7f9ff 100%);
}

.about-shell{
  width:100%;
  max-width:1280px;
  margin:0 auto;
}

.about-hero{
  max-width:760px;
  margin:0 auto 42px;
  text-align:center;
}

.about-badge{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:8px 14px;
  border-radius:999px;
  background:rgba(65,104,255,0.08);
  border:1px solid rgba(65,104,255,0.12);
  color:#3d5d97;
  font-size:12px;
  font-weight:700;
  letter-spacing:0.14em;
  text-transform:uppercase;
  margin-bottom:18px;
}

.about-hero h1{
  margin:0 0 18px;
  font-size:clamp(40px, 5vw, 52px);
  line-height:1.12;
  color:#1f43bc;
  letter-spacing:-0.03em;
}

.about-lead{
  margin:0 auto;
  max-width:760px;
  font-size:24px;
  line-height:1.6;
  color:#40527f;
  font-weight:500;
}

.about-layout{
  display:grid;
  grid-template-columns:minmax(0, 1.2fr) minmax(320px, 0.9fr);
  gap:42px;
  width:100%;
  align-items:start;
}

.about-text-card{
  background:linear-gradient(180deg, rgba(255,255,255,0.98) 0%, rgba(248,250,255,0.96) 100%);
  border:1px solid rgba(43,70,144,0.10);
  border-radius:28px;
  padding:34px 34px 30px;
  box-shadow:
    0 18px 48px rgba(25,41,99,0.08),
    inset 0 1px 0 rgba(255,255,255,0.70);
}

.about-text-card p{
  margin:0 0 22px;
  font-size:20px;
  color:#3d4f7a;
  line-height:1.75;
}

.about-text-card p:last-child{
  margin-bottom:0;
}

.team-section{
  width:100%;
}

.team-grid{
  display:flex;
  gap:24px;
  flex-wrap:wrap;
}

.team-grid-vertical{
  flex-direction:column;
}

.team-card{
  width:100%;
  text-align:left;
  transition:transform 0.25s ease, box-shadow 0.25s ease;
}

.featured-team-card{
  display:grid;
  grid-template-columns:110px minmax(0, 1fr);
  gap:22px;
  align-items:center;
  background:linear-gradient(180deg, rgba(255,255,255,0.98) 0%, rgba(247,249,255,0.96) 100%);
  border:1px solid rgba(43,70,144,0.10);
  border-radius:24px;
  padding:22px;
  box-shadow:
    0 14px 30px rgba(28,46,109,0.06),
    inset 0 1px 0 rgba(255,255,255,0.70);
}

.team-card:hover{
  transform:translateY(-4px);
  box-shadow:
    0 18px 34px rgba(28,46,109,0.10),
    inset 0 1px 0 rgba(255,255,255,0.70);
}

.team-photo-placeholder{
  width:110px;
  height:110px;
  background:#f2f4f8;
  border:2px dashed #c7d2e3;
  border-radius:22px;
  display:flex;
  align-items:center;
  justify-content:center;
  color:#8da0c7;
  font-size:34px;
}

.team-photo{
  width:110px;
  height:110px;
  object-fit:cover;
  object-position:center top;
  border-radius:22px;
  border:3px solid #f2f4f8;
  display:block;
}

.team-card-body h3,
.team-card h3{
  margin:0 0 10px;
  font-size:34px;
  color:#2f5597;
  line-height:1.15;
}

.team-card-body p,
.team-card p{
  margin:0;
  font-size:20px;
  color:#3d5d97;
  line-height:1.6;
}

/* =========================================================
   22. CONTACT
========================================================= */

.contact-layout{
  width:100%;
  max-width:1180px;
  margin:0 auto;
  display:grid;
  grid-template-columns:minmax(320px, 560px) minmax(240px, 320px);
  justify-content:center;
  align-items:start;
  gap:72px;
}

.contact-form{
  width:100%;
  background:#f7f8fb;
  padding:40px 34px 30px;
  border-radius:18px;
  box-shadow:0 10px 30px rgba(31,67,188,0.06);
  border:1px solid rgba(31,67,188,0.06);
}

.contact-form h2{
  font-size:28px;
  color:#2f5597;
  margin:0 0 26px;
  text-align:center;
}

.contact-form form{
  display:flex;
  flex-direction:column;
}

.contact-form label{
  display:block;
  font-size:18px;
  color:#3d5d97;
  margin:0 0 8px;
  font-weight:600;
}

.contact-form input,
.contact-form textarea{
  width:100%;
  padding:14px;
  margin-bottom:18px;
  border:1px solid #d6dbe6;
  border-radius:8px;
  font-size:16px;
  background:#fff;
  color:#23306b;
  transition:border-color 0.2s ease, box-shadow 0.2s ease;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder{
  color:#8a96b5;
}

.contact-form input:focus,
.contact-form textarea:focus{
  outline:none;
  border-color:#4c6fff;
  box-shadow:0 0 0 3px rgba(76,111,255,0.12);
}

.contact-form textarea{
  min-height:140px;
  resize:vertical;
}

.contact-form .cta{
  width:100%;
  margin-top:8px;
  display:flex;
  align-items:center;
  justify-content:center;
  text-align:center;
  border:none;
  cursor:pointer;
}

.no-impegno{
  text-align:center;
  margin:12px 0 0;
  color:#6b7a99;
  font-size:15px;
  line-height:1.5;
}

.contact-info{
  width:100%;
  margin-top:84px;
}

.contact-info h3{
  font-size:16px;
  color:#8a96b5;
  margin:0 0 20px;
  letter-spacing:1px;
}

.contact-box{
  display:flex;
  align-items:center;
  gap:12px;
  background:#f7f8fb;
  padding:16px 18px;
  border-radius:10px;
  margin-bottom:15px;
  font-size:18px;
  color:#2f5597;
  border:1px solid rgba(31,67,188,0.06);
  box-shadow:0 6px 18px rgba(31,67,188,0.04);
}

.contact-box i{
  font-size:20px;
  width:24px;
  text-align:center;
  flex-shrink:0;
}

/* =========================================================
   23. FOOTER
========================================================= */

.home-footer{
  background:linear-gradient(180deg, #f4f7ff 0%, #eef4ff 100%);
  padding:20px 20px 16px;
  margin-top:0;
  border-top:1px solid rgba(47,89,217,0.20);
  box-shadow:inset 0 1px 0 rgba(255,255,255,0.75);
}

.footer-container{
  width:100%;
  max-width:1200px;
  margin:0 auto;
  display:grid;
  grid-template-columns:1fr auto 1fr;
  align-items:center;
  gap:24px;
}

/* BLOCCO CENTRALE */
.footer-brand{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:16px;
}

/* logo */
.footer-brand-logo{
  height:64px;
  width:auto;
  flex-shrink:0;
}

/* testo */
.footer-text{
  display:flex;
  flex-direction:column;
  justify-content:center;
  align-items:flex-start;
}

/* copyright */
.footer-copy{
  font-size:11px;
  color:#2b2b2b;
  line-height:1.6;
  font-weight:500;
  margin-top:4px;
}

/* spazio tra le righe */

/* BLOCCO DESTRA */
.footer-legal{
  display:flex;
  justify-content:flex-end;
  align-items:center;
  gap:14px;
  flex-wrap:nowrap;
  white-space:nowrap;
}

/* link */
.footer-legal a{
  font-size:14px;
  color:#2f5597;
  text-decoration:none;
  font-weight:500;
  opacity:0.85;
  transition:0.2s;
}

.footer-legal a:hover{
  opacity:1;
  text-decoration:underline;
}

/* separatore */
.footer-separator{
  color:#9aa6c3;
  font-size:13px;
  margin:0 6px;
}

/* Website by */
.footer-credit-inline{
  font-size:13px;
  color:#7a86a8;
  text-decoration:none;
  opacity:0.8;
  transition:all 0.25s ease;
}

/* =========================================================
   24. COOKIE BANNER
========================================================= */

#cookie-banner{
  position:fixed;
  left:24px;
  bottom:24px;
  z-index:9999;
  display:none;
}

.cookie-box{
  width:390px;
  max-width:calc(100vw - 32px);
  background:#ffffff;
  border:1px solid #dfe4f2;
  border-radius:14px;
  padding:22px 20px 18px;
  box-shadow:0 18px 40px rgba(0,0,0,0.18);
}

.cookie-box h3{
  margin:0 0 12px 0;
  font-size:18px;
  color:#23306b;
}

.cookie-box p{
  margin:0 0 18px 0;
  font-size:14px;
  line-height:1.6;
  color:#4b587c;
}

.cookie-buttons{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
}

.cookie-buttons button{
  flex:1;
  min-width:110px;
  padding:10px 14px;
  border-radius:8px;
  font-size:14px;
  font-weight:600;
  cursor:pointer;
  transition:0.2s;
}

#cookie-settings{
  background:#ffffff;
  color:#2f59d9;
  border:1px solid #cfd8f3;
}

#cookie-settings:hover{
  background:#f5f8ff;
}

#cookie-reject{
  background:#ffffff;
  color:#23306b;
  border:1px solid #cfd8f3;
}

#cookie-reject:hover{
  background:#f7f9fc;
}

#cookie-accept{
  background:linear-gradient(135deg,#4c6fff,#2955ff);
  color:#ffffff;
  border:none;
  box-shadow:0 8px 18px rgba(41,85,255,0.22);
}

#cookie-accept:hover{
  transform:translateY(-1px);
  box-shadow:0 10px 22px rgba(41,85,255,0.28);
}

/* =========================================================
   25. VERSIONE 2 - LUXURY / STUDIO PREMIUM
========================================================= */

.portfolio-page{
  min-height:auto;
  align-items:stretch;
  padding:74px 34px 96px;
  background:
    radial-gradient(circle at 0% 0%, rgba(255,255,255,0.85), transparent 24%),
    radial-gradient(circle at 100% 0%, rgba(150,170,255,0.10), transparent 28%),
    linear-gradient(180deg, #f8faff 0%, #f2f5ff 46%, #eef2ff 100%);
  position:relative;
}

.portfolio-page::before{
  content:"";
  position:absolute;
  inset:0;
  background:
    linear-gradient(rgba(255,255,255,0.18), rgba(255,255,255,0.18)),
    repeating-linear-gradient(
      90deg,
      transparent 0,
      transparent 79px,
      rgba(57,83,173,0.025) 80px
    );
  pointer-events:none;
  opacity:0.55;
}

.premium-intro{
  max-width:980px;
  margin-bottom:46px;
}

.eyebrow{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:8px 14px;
  border-radius:999px;
  background:rgba(39,72,145,0.06);
  border:1px solid rgba(39,72,145,0.10);
  color:#3c5aa9;
  font-size:12px;
  font-weight:700;
  letter-spacing:0.14em;
  text-transform:uppercase;
  margin-bottom:18px;
}

.page-intro h1{
  margin:0 0 22px 0;
  font-size:58px;
  line-height:1.05;
  color:#1f2f63;
  letter-spacing:-0.02em;
  max-width:1050px;
  text-wrap:balance;
}
.portfolio-page .page-intro{
  max-width:900px;
}

.page-intro p{
  margin:0;
  max-width:780px;
  font-size:20px;
  line-height:1.75;
  color:#536487;
}

.portfolio-page .page-intro p{
  color:#2b3a6f;
}

.portfolio-page .services-layout{
  display:grid;
  grid-template-columns:340px minmax(0, 1fr);
  gap:32px;
  align-items:start;
}

.portfolio-page .services-sidebar{
  width:100%;
}

.premium-sidebar{
  position:sticky;
  top:110px;
  padding:28px 22px 22px;
  border-radius:30px;
  background:linear-gradient(180deg, rgba(255,255,255,0.86) 0%, rgba(246,248,255,0.84) 100%);
  border:1px solid rgba(43,70,144,0.10);
  box-shadow:
    0 18px 48px rgba(25,41,99,0.08),
    inset 0 1px 0 rgba(255,255,255,0.70);
  backdrop-filter:blur(14px);
}

.sidebar-topline{
  margin-bottom:10px;
  font-size:11px;
  font-weight:700;
  letter-spacing:0.16em;
  text-transform:uppercase;
  color:#7d8fbe;
}

.sidebar-card h2{
  margin:0 0 10px 0;
  font-size:28px;
  line-height:1.15;
  color:#22386e;
}

.sidebar-lead{
  margin:0 0 22px 0;
  font-size:15px;
  line-height:1.8;
  color:#66779e;
}

.portfolio-page .service-menu,
.portfolio-page .service-menu.project-menu{
  height:auto;
  max-height:720px;
  overflow-y:auto;
  padding-right:6px;
  scrollbar-width:thin;
  scrollbar-color:rgba(116,132,191,0.50) transparent;
}

.portfolio-page .service-tab{
  display:flex;
  align-items:flex-start;
  gap:14px;
  width:100%;
  background:linear-gradient(180deg, rgba(255,255,255,0.96) 0%, rgba(247,249,255,0.96) 100%);
  border:1px solid #dde5fb;
  border-radius:20px;
  padding:18px 16px;
  margin-bottom:12px;
  text-align:left;
  font-size:17px;
  line-height:1.25;
  color:#3d5d97;
  cursor:pointer;
  transition:
    transform 0.22s ease,
    box-shadow 0.22s ease,
    border-color 0.22s ease,
    background 0.22s ease;
}

.portfolio-page .service-tab:hover{
  transform:translateY(-2px);
  border-color:#bfcbf4;
  box-shadow:0 14px 30px rgba(42,67,143,0.09);
  background:linear-gradient(180deg, #ffffff 0%, #fbfcff 100%);
}

.portfolio-page .service-tab.active{
  border:1px solid rgba(60,90,169,0.28);
  background:linear-gradient(180deg, rgba(255,255,255,0.98) 0%, rgba(240,244,255,0.98) 100%);
  box-shadow:
    0 18px 34px rgba(37,61,136,0.12),
    inset 0 0 0 1px rgba(77,108,199,0.08);
}

.tab-index{
  flex-shrink:0;
  width:34px;
  height:34px;
  border-radius:50%;
  display:flex;
  align-items:center;
  justify-content:center;
  background:linear-gradient(180deg, #f1f4ff 0%, #e4ebff 100%);
  border:1px solid rgba(89,115,199,0.18);
  color:#4b64aa;
  font-size:12px;
  font-weight:700;
  letter-spacing:0.08em;
}

.tab-text-wrap{
  display:flex;
  flex-direction:column;
  gap:6px;
  min-width:0;
}

.tab-title{
  display:block;
  font-size:16px;
  line-height:1.35;
  font-weight:700;
  color:#223c77;
}

.tab-subtitle{
  display:block;
  font-size:13px;
  line-height:1.55;
  color:#7483a9;
  font-weight:500;
}

.portfolio-page .services-content{
  width:100%;
  max-width:none;
}

.premium-card{
  background:linear-gradient(180deg, rgba(255,255,255,0.92) 0%, rgba(247,249,255,0.90) 100%);
  border:1px solid rgba(41,69,143,0.10);
  border-radius:34px;
  padding:38px 42px 42px;
  box-shadow:
    0 26px 70px rgba(23,39,97,0.09),
    inset 0 1px 0 rgba(255,255,255,0.78);
  backdrop-filter:blur(16px);
  min-height:700px;
  position:relative;
  overflow:hidden;
}

.premium-card::before{
  content:"";
  position:absolute;
  top:-120px;
  right:-120px;
  width:260px;
  height:260px;
  border-radius:50%;
  background:radial-gradient(circle, rgba(125,151,255,0.18), rgba(125,151,255,0.02) 65%, transparent 70%);
  pointer-events:none;
}

.panel-meta-row{
  display:flex;
  align-items:center;
  gap:10px;
  flex-wrap:wrap;
  margin-bottom:14px;
  position:relative;
  z-index:1;
}

.panel-topline{
  display:inline-flex;
  align-items:center;
  padding:7px 12px;
  border-radius:999px;
  background:rgba(60,90,169,0.08);
  border:1px solid rgba(60,90,169,0.12);
  color:#3e59a4;
  font-size:11px;
  font-weight:700;
  text-transform:uppercase;
  letter-spacing:0.12em;
}

.panel-tag{
  display:inline-flex;
  align-items:center;
  padding:7px 12px;
  border-radius:999px;
  background:rgba(255,255,255,0.70);
  border:1px solid rgba(84,107,181,0.12);
  color:#7281a6;
  font-size:11px;
  font-weight:700;
  text-transform:uppercase;
  letter-spacing:0.10em;
}

.portfolio-page .service-panel h3{
  margin:0 0 18px 0;
  font-size:44px;
  line-height:1.10;
  color:#203667;
  letter-spacing:-0.03em;
  max-width:980px;
  position:relative;
  z-index:1;
}

.panel-lead{
  margin:0 0 28px 0;
  font-size:21px;
  line-height:1.9;
  color:#586a90;
  max-width:900px;
  position:relative;
  z-index:1;
}

.editorial-divider{
  width:100%;
  max-width:220px;
  height:1px;
  background:linear-gradient(90deg, rgba(70,96,176,0.45), rgba(70,96,176,0.06));
  margin:0 0 24px 0;
}

.info-section{
  padding-top:2px;
  margin-top:18px;
  position:relative;
  z-index:1;
}

.portfolio-page .service-panel h4{
  margin:0 0 12px 0;
  font-size:22px;
  line-height:1.3;
  color:#29427f;
  letter-spacing:-0.01em;
}

.portfolio-page .service-panel p{
  font-size:18px;
  line-height:1.9;
  color:#536487;
  margin:0 0 16px 0;
  max-width:980px;
}

.portfolio-page .service-panel ul{
  margin:0;
  padding-left:22px;
  color:#536487;
  font-size:18px;
  line-height:1.9;
}

.premium-feature-grid{
  display:grid;
  grid-template-columns:repeat(2, minmax(0, 1fr));
  gap:18px;
  margin-top:20px;
  position:relative;
  z-index:1;
}

.feature-box{
  background:linear-gradient(180deg, rgba(255,255,255,0.96) 0%, rgba(249,250,255,0.96) 100%);
  border:1px solid rgba(93,117,194,0.14);
  border-radius:24px;
  padding:22px 20px;
  box-shadow:
    0 14px 28px rgba(28,46,109,0.05),
    inset 0 1px 0 rgba(255,255,255,0.70);
}

.feature-box h4{
  margin:0 0 10px 0 !important;
  font-size:18px !important;
  line-height:1.35 !important;
  color:#243d78 !important;
}

.feature-box p{
  margin:0 !important;
  font-size:16px !important;
  line-height:1.75 !important;
  color:#66779e !important;
  max-width:none !important;
}

/* scrollbar elegante */
.portfolio-page .service-menu.project-menu::-webkit-scrollbar,
.portfolio-page .service-menu::-webkit-scrollbar{
  width:10px;
}

.portfolio-page .service-menu.project-menu::-webkit-scrollbar-track,
.portfolio-page .service-menu::-webkit-scrollbar-track{
  background:transparent;
}

.portfolio-page .service-menu.project-menu::-webkit-scrollbar-thumb,
.portfolio-page .service-menu::-webkit-scrollbar-thumb{
  background:rgba(116,132,191,0.50);
  border-radius:999px;
}

.portfolio-page .service-menu.project-menu::-webkit-scrollbar-thumb:hover,
.portfolio-page .service-menu::-webkit-scrollbar-thumb:hover{
  background:rgba(91,108,174,0.75);
}

/* =========================================================
   26. RESPONSIVE - TABLET GRANDE / LAPTOP PICCOLO
========================================================= */

@media (max-width:1200px){
  .hero-text h1{
    font-size:52px;
  }

  .hero-image img{
    width:620px;
  }

  .page-header{
    padding:50px 40px 36px;
  }

  .page-header-text h1{
    font-size:52px;
  }

  .page-header-text p{
    font-size:20px;
  }

  .services-layout,
  .contact-layout{
    gap:40px;
  }

  .services-sidebar{
    width:280px;
  }

  .service-panel h3{
    font-size:26px;
  }

  .service-panel p,
  .service-panel ul{
    font-size:19px;
  }

  .about-page{
    padding:50px 32px 40px;
  }

  .about-hero h1{
    font-size:44px;
  }

  .about-lead{
    font-size:21px;
  }

  .about-layout{
    grid-template-columns:1fr 0.95fr;
    gap:30px;
  }

  .about-text-card p{
    font-size:18px;
  }

  .team-card-body h3,
  .team-card h3{
    font-size:28px;
  }

  .team-card-body p,
  .team-card p{
    font-size:18px;
  }

  .contact-layout{
    max-width:980px;
    gap:48px;
  }

  .contact-form{
    width:100%;
    max-width:560px;
  }

  .contact-info{
    width:100%;
    max-width:320px;
    margin-top:60px;
  }

  .footer-logo img{
    max-width:360px;
  }

  .page-intro h1{
    font-size:48px;
  }

  .portfolio-page .services-layout{
    grid-template-columns:300px minmax(0, 1fr);
  }

  .premium-card{
    padding:32px 30px 34px;
  }

  .portfolio-page .service-panel h3{
    font-size:38px;
  }

  .panel-lead{
    font-size:19px;
  }
}

/* =========================================================
   27. RESPONSIVE - TABLET / SCHERMI MEDI
========================================================= */

@media (max-width:1024px){
  body{
    padding-top:130px;
  }

  header{
    grid-template-columns:1fr;
    justify-items:center;
    gap:14px;
    padding:10px 18px 16px;
    min-height:auto;
  }

  .brand{
    width:100%;
    justify-content:center;
  }

  .brand-logo{
    height:68px;
  }

  .header-right-group{
    width:100%;
    justify-content:center;
    flex-wrap:wrap;
    gap:14px;
  }

  nav{
    width:100%;
    justify-content:center;
    flex-wrap:wrap;
    gap:8px;
  }

  .header-right{
    width:100%;
    justify-content:center;
    flex-wrap:wrap;
  }

  .login{
    padding:10px 18px;
  }

  .hero{
    flex-direction:column;
    align-items:flex-start;
    justify-content:flex-start;
    gap:22px;
    min-height:auto;
    padding:110px 28px 70px;
    background-size:cover;
    background-position:72% center;
  }

  .hero-text,
  .hero-image{
    width:100%;
    max-width:100%;
  }

  .hero-text h1{
    font-size:44px;
    line-height:1.1;
    max-width:520px;
  }

  .hero-text p{
    font-size:21px;
    max-width:100%;
  }

  .hero-text p:last-of-type{
    font-size:21px;
    max-width:100%;
  }

  .hero-image{
    justify-content:center;
  }

  .hero-image img{
    width:100%;
    max-width:680px;
  }

  .page-header{
    min-height:auto;
    padding:80px 28px 36px;
  }

  .page-header-text,
  .services-content,
  .services-sidebar,
  .contact-form,
  .contact-info{
    width:100%;
    max-width:100%;
  }

  .page-header-text h1{
    font-size:42px;
    line-height:1.15;
  }

  .page-header-text p{
    font-size:18px;
  }

  .services-layout{
    flex-direction:column;
    gap:30px;
  }

  .about-page{
    padding:42px 24px 34px;
  }

  .about-hero{
    margin-bottom:30px;
  }

  .about-hero h1{
    font-size:38px;
  }

  .about-lead{
    font-size:19px;
  }

  .about-layout{
    grid-template-columns:1fr;
    gap:24px;
  }

  .about-text-card{
    padding:26px 22px;
  }

  .featured-team-card{
    grid-template-columns:90px minmax(0, 1fr);
    gap:18px;
  }

  .team-photo-placeholder,
  .team-photo{
    width:90px;
    height:90px;
    border-radius:18px;
  }

  .team-card-body h3,
  .team-card h3{
    font-size:24px;
  }

  .team-card-body p,
  .team-card p{
    font-size:17px;
  }

  .contact-layout{
    grid-template-columns:1fr;
    gap:28px;
    margin-top:0;
  }

  .services-sidebar{
    width:100%;
  }

  .services-sidebar h2{
    margin-bottom:16px;
  }

  .service-menu{
    max-height:none;
    overflow-y:visible;
    padding-right:0;
  }

  .service-menu.project-menu{
    height:470px;
    max-height:470px;
    overflow-y:scroll;
    overflow-x:hidden;
    padding-right:8px;
  }

  .service-tab{
    font-size:17px;
    padding:18px 16px;
    margin-bottom:12px;
  }

  .service-panel h3{
    font-size:24px;
  }

  .service-panel p,
  .service-panel ul{
    font-size:18px;
    max-width:100%;
  }

  .contact-form{
    padding:30px 24px;
  }

  .contact-info{
    margin-top:0;
    max-width:100%;
  }

  .footer-container{
    grid-template-columns:1fr;
    gap:18px;
    justify-items:center;
    text-align:center;
  }

  .footer-left,
  .footer-logo,
  .footer-legal{
    justify-self:center;
  }

  .footer-legal{
    justify-content:center;
    gap:14px;
  }

  .footer-brand{
    flex-direction:column;
    gap:10px;
  }

  .footer-brand-logo{
    height:42px;
  }

  .footer-brand-text img{
    max-width:220px;
  }

  .portfolio-page{
    padding:48px 22px 74px;
  }

  .premium-intro{
    margin-bottom:32px;
  }

  .page-intro h1{
    font-size:40px;
  }

  .page-intro p{
    font-size:18px;
  }

  .portfolio-page .services-layout{
    grid-template-columns:1fr;
    gap:22px;
  }

  .premium-sidebar{
    position:relative;
    top:auto;
  }

  .premium-card{
    min-height:auto;
  }
}

/* =========================================================
   28. RESPONSIVE - SMARTPHONE GRANDI / TABLET VERTICALI
========================================================= */

@media (max-width:768px){

  body{
    padding-top:150px;
  }

  header{
    padding:10px 14px;
  }

  .brand-logo{
    height:56px;
  }

  nav a{
    padding:9px 12px;
    font-size:14px;
  }

  .social-link{
    width:34px;
    height:34px;
    font-size:16px;
  }

  .login{
    font-size:14px;
    padding:10px 14px;
  }

  /* ================= HERO FIX DEFINITIVO ================= */

  .hero{
    min-height:auto;
    padding:24px 16px 40px;
    gap:20px;
    text-align:left;
    background-position:center center;
    background-size:cover;
    overflow:hidden;
  }

  .hero-text{
    width:100%;
    max-width:calc(100vw - 32px);
    margin:0;
    padding:0;
  }

  .hero-text h1{
    font-size:28px;
    line-height:1.12;
    max-width:100%;
    margin:0 0 12px 0;
    word-break:normal;
    overflow-wrap:break-word;
  }

  .hero-text p{
    font-size:15px;
    line-height:1.5;
    margin:0 0 12px 0;
    max-width:100%;
    white-space:normal;
  }

  .hero-text p:first-of-type{
    max-width:100%;
    white-space:normal;
  }

  .hero-text p:last-of-type{
    font-size:15px;
    line-height:1.55;
    margin:0;
  }

  .cta{
    font-size:15px;
    padding:12px 18px;
    margin-top:20px;
    max-width:100%;
  }

  /* ================= ALTRE PAGINE ================= */

  .page-header{
    padding:60px 18px 30px;
  }

  .page-header-text h1{
    font-size:30px;
    margin-bottom:14px;
  }

  .page-header-text p{
    font-size:15px;
    line-height:1.5;
  }

  .about-page{
    padding:32px 16px 24px;
  }

  .about-hero h1{
    font-size:30px;
  }

  .about-lead{
    font-size:16px;
    line-height:1.6;
  }

  .about-text-card{
    padding:20px 16px;
    border-radius:18px;
  }

  .about-text-card p{
    font-size:15px;
    line-height:1.6;
  }

  .featured-team-card{
    grid-template-columns:1fr;
    text-align:center;
    justify-items:center;
  }

  .team-photo-placeholder,
  .team-photo{
    width:90px;
    height:90px;
  }

  .team-card-body h3,
  .team-card h3{
    font-size:20px;
  }

  .team-card-body p,
  .team-card p{
    font-size:15px;
  }

  .services-sidebar h2,
  .contact-form h2{
    font-size:22px;
  }

  .service-tab{
    font-size:15px;
    padding:14px;
  }

  .service-panel h3{
    font-size:20px;
  }

  .service-panel p,
  .service-panel ul{
    font-size:15px;
    line-height:1.5;
  }

  .service-panel ul{
    padding-left:20px;
  }

  .contact-form{
    padding:22px 16px;
    border-radius:10px;
  }

  .contact-form input,
  .contact-form textarea{
    font-size:15px;
    padding:12px;
  }

  .contact-form label{
    font-size:15px;
  }

  .contact-box{
    font-size:15px;
    padding:12px;
  }

  /* ================= FOOTER ================= */

  .footer-brand-logo{
    height:36px;
  }

  .footer-legal{
    flex-direction:column;
    gap:8px;
    align-items:center;
    text-align:center;
  }

  .footer-legal a{
    font-size:13px;
  }

  .footer-credit-inline{
    font-size:12px;
  }

  /* ================= PORTFOLIO ================= */

  .portfolio-page{
    padding:32px 16px 50px;
  }

  .page-intro h1{
    font-size:30px;
    line-height:1.14;
  }

  .page-intro p{
    font-size:15px;
    line-height:1.6;
  }

  .premium-sidebar{
    padding:18px 16px;
    border-radius:20px;
  }

  .sidebar-card h2{
    font-size:22px;
  }

  .portfolio-page .service-tab{
    padding:14px;
    border-radius:16px;
    gap:10px;
  }

  .tab-index{
    width:28px;
    height:28px;
    font-size:11px;
  }

  .tab-title{
    font-size:14px;
  }

  .tab-subtitle{
    font-size:12px;
  }

  .premium-card{
    padding:22px 16px;
    border-radius:22px;
  }

  .portfolio-page .service-panel h3{
    font-size:26px;
  }

  .panel-lead{
    font-size:16px;
    line-height:1.6;
  }

  .portfolio-page .service-panel h4{
    font-size:18px;
  }

  .portfolio-page .service-panel p,
  .portfolio-page .service-panel ul{
    font-size:15px;
    line-height:1.6;
  }

  .premium-feature-grid{
    grid-template-columns:1fr;
    gap:12px;
  }

  .feature-box{
    padding:16px;
    border-radius:18px;
  }
}

/* =========================================================
   29. RESPONSIVE - SMARTPHONE PICCOLI
========================================================= */

@media (max-width:480px){
  body{
    padding-top:165px;
  }

  header{
    gap:10px;
  }

  .brand-logo{
    height:50px;
  }

  nav{
    gap:6px;
  }

  nav a{
    font-size:13px;
    padding:8px 10px;
  }

  .header-right{
    gap:10px;
  }

  .social-link{
    width:32px;
    height:32px;
    border-radius:10px;
  }

  .login{
    width:100%;
    max-width:240px;
    text-align:center;
  }

  .hero{
    padding:26px 14px 40px;
  }

  .hero-text h1{
    font-size:28px;
  }

  .hero-text p,
  .hero-text p:last-of-type{
    font-size:15px;
  }

  .hero .cta{
    width:auto;
    min-width:0;
    text-align:center;
    padding:12px 24px;
    display:inline-block;
  }

  .page-header{
    padding:46px 14px 24px;
  }

  .page-header-text h1{
    font-size:28px;
  }

  .page-header-text p,
  .service-panel p,
  .service-panel ul{
    font-size:15px;
  }

  .about-page{
    padding:30px 12px 22px;
  }

  .about-hero h1{
    font-size:28px;
  }

  .about-lead{
    font-size:16px;
  }

  .about-text-card p{
    font-size:15px;
  }

  .team-card-body h3,
  .team-card h3{
    font-size:20px;
  }

  .team-card-body p,
  .team-card p{
    font-size:15px;
  }

  .service-panel h3,
  .contact-form h2{
    font-size:21px;
  }

  .service-tab{
    font-size:15px;
    padding:14px 12px;
  }

  .contact-form{
    padding:20px 14px;
  }

  .contact-box{
    font-size:15px;
    gap:10px;
  }

  .footer-brand-logo{
    height:34px;
  }

  .footer-brand-text img{
    max-width:170px;
  }

  .footer-legal{
    gap:10px;
  }

  .portfolio-page{
    padding:30px 12px 46px;
  }

  .eyebrow{
    font-size:11px;
    padding:7px 11px;
  }

  .page-intro h1{
    font-size:27px;
  }

  .premium-card{
    padding:20px 14px 20px;
  }

  .portfolio-page .service-panel h3{
    font-size:24px;
  }

  .panel-lead{
    font-size:16px;
  }

  .tab-index{
    width:28px;
    height:28px;
    font-size:10px;
  }
}

/* =========================================================
   30. COOKIE MOBILE
========================================================= */

@media (max-width:640px){
  #cookie-banner{
    left:12px;
    right:12px;
    bottom:12px;
  }

  .cookie-box{
    width:100%;
    max-width:none;
    padding:18px 16px 16px;
  }

  .cookie-buttons{
    flex-direction:column;
  }

  .cookie-buttons button{
    width:100%;
  }
}

/* =========================================================
   31. FORM WEB3FORMS – AGGIUNTA PER CONSULENZA
========================================================= */

.form-message{
  margin-top:12px;
  text-align:center;
  font-size:15px;
  line-height:1.5;
  color:#2f5597;
}

.form-message.success{
  color:#1f7a3d;
}

.form-message.error{
  color:#c62828;
}

/* campi honeypot anti-spam */
.hidden-field{
  position:absolute !important;
  left:-9999px !important;
  opacity:0 !important;
  pointer-events:none !important;
}

/* link contatti */
.contact-box a{
  color:#2f5597;
  text-decoration:none;
  font-weight:500;
}

.contact-box a:hover{
  text-decoration:underline;
}

/* =========================================================
   32. COOKIE FLOATING BUTTON + MODALE
========================================================= */

#cookie-fab{
  position:fixed;
  left:16px;
  bottom:16px;
  width:54px;
  height:54px;
  border:none;
  border-radius:50%;
  background:linear-gradient(135deg,#4c6fff,#2955ff);
  color:#ffffff;
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:22px;
  cursor:pointer;
  z-index:9998;
  box-shadow:0 14px 28px rgba(41,85,255,0.28);
  transition:transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
}

#cookie-fab:hover{
  transform:translateY(-2px) scale(1.03);
  box-shadow:0 18px 32px rgba(41,85,255,0.34);
}

#cookie-fab:focus-visible{
  outline:3px solid rgba(76,111,255,0.28);
  outline-offset:3px;
}

.cookie-modal{
  position:fixed;
  inset:0;
  display:none;
  z-index:10000;
}

.cookie-modal.open{
  display:block;
}

.cookie-modal-overlay{
  position:absolute;
  inset:0;
  background:rgba(21,31,74,0.42);
  backdrop-filter:blur(3px);
}

.cookie-modal-dialog{
  position:relative;
  width:min(920px, calc(100vw - 32px));
  max-height:calc(100vh - 40px);
  overflow:auto;
  margin:20px auto;
  background:#ffffff;
  border:1px solid #dfe4f2;
  border-radius:20px;
  box-shadow:0 30px 70px rgba(14,24,61,0.24);
}

.cookie-modal-content{
  padding:28px 28px 24px;
}

.cookie-modal-close{
  position:absolute;
  top:12px;
  right:14px;
  width:42px;
  height:42px;
  border:none;
  border-radius:50%;
  background:transparent;
  color:#6c7aa2;
  font-size:30px;
  line-height:1;
  cursor:pointer;
}

.cookie-modal-close:hover{
  background:#f4f7ff;
  color:#23306b;
}

.cookie-modal-content h2{
  margin:0 0 12px;
  font-size:34px;
  color:#23306b;
}

.cookie-modal-intro{
  margin:0 0 22px;
  font-size:17px;
  line-height:1.7;
  color:#536487;
  max-width:760px;
}

.cookie-option{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:24px;
  padding:20px 0;
  border-top:1px solid #e6ebf7;
}

.cookie-option h3{
  margin:0 0 8px;
  font-size:22px;
  color:#2f5597;
}

.cookie-option p{
  margin:0;
  font-size:16px;
  line-height:1.7;
  color:#536487;
  max-width:680px;
}

.cookie-option-locked{
  align-items:flex-start;
}

.cookie-status.always-on{
  flex-shrink:0;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:10px 14px;
  border-radius:999px;
  background:rgba(76,111,255,0.10);
  color:#2f59d9;
  font-size:14px;
  font-weight:700;
}

.switch{
  position:relative;
  display:inline-block;
  width:58px;
  height:32px;
  flex-shrink:0;
}

.switch input{
  opacity:0;
  width:0;
  height:0;
}

.slider{
  position:absolute;
  inset:0;
  background:#d7def0;
  border-radius:999px;
  transition:0.25s;
}

.slider::before{
  content:"";
  position:absolute;
  height:24px;
  width:24px;
  left:4px;
  top:4px;
  background:white;
  border-radius:50%;
  box-shadow:0 3px 8px rgba(0,0,0,0.16);
  transition:0.25s;
}

.switch input:checked + .slider{
  background:linear-gradient(135deg,#4c6fff,#2955ff);
}

.switch input:checked + .slider::before{
  transform:translateX(26px);
}

.cookie-modal-actions{
  display:flex;
  gap:12px;
  flex-wrap:wrap;
  margin-top:26px;
}

.cookie-btn{
  min-width:170px;
  padding:13px 18px;
  border-radius:12px;
  font-size:15px;
  font-weight:700;
  cursor:pointer;
  transition:0.2s ease;
}

.cookie-btn-light{
  background:#ffffff;
  color:#23306b;
  border:1px solid #cfd8f3;
}

.cookie-btn-light:hover{
  background:#f7f9fc;
}

.cookie-btn-outline{
  background:#ffffff;
  color:#2f59d9;
  border:1px solid #cfd8f3;
}

.cookie-btn-outline:hover{
  background:#f5f8ff;
}

.cookie-btn-primary{
  background:linear-gradient(135deg,#4c6fff,#2955ff);
  color:#ffffff;
  border:none;
  box-shadow:0 8px 18px rgba(41,85,255,0.22);
}

.cookie-btn-primary:hover{
  transform:translateY(-1px);
  box-shadow:0 10px 22px rgba(41,85,255,0.28);
}

.cookie-modal-note{
  margin:18px 0 0;
  font-size:14px;
  line-height:1.6;
  color:#66779e;
}

.cookie-modal-note a{
  color:#2f59d9;
  font-weight:600;
  text-decoration:none;
}

.cookie-modal-note a:hover{
  text-decoration:underline;
}

body.cookie-modal-open{
  overflow:hidden;
}

@media (max-width:768px){
  #cookie-fab{
    width:50px;
    height:50px;
    left:12px;
    bottom:12px;
    font-size:20px;
  }

  .cookie-modal-dialog{
    width:calc(100vw - 20px);
    max-height:calc(100vh - 20px);
    margin:10px auto;
    border-radius:16px;
  }

  .cookie-modal-content{
    padding:22px 16px 18px;
  }

  .cookie-modal-content h2{
    font-size:26px;
    padding-right:34px;
  }

  .cookie-option{
    align-items:flex-start;
    flex-direction:column;
    gap:14px;
  }

  .cookie-option h3{
    font-size:19px;
  }

  .cookie-option p{
    font-size:15px;
  }

  .cookie-modal-actions{
    flex-direction:column;
  }

  .cookie-btn{
    width:100%;
    min-width:0;
  }
}

/* =========================================================
   33. MENU HAMBURGER
========================================================= */

.menu-toggle{
  display:none;
  font-size:20px;
  cursor:pointer;
  color:#2f3a68;
}

/* =========================================================
   34. MOBILE MENU
========================================================= */

@media (max-width:900px){
  .menu-toggle{
    display:block;
    position:absolute;
    right:20px;
    top:22px;
  }

  header{
    position:fixed;
  }

  .header-right-group{
    flex-direction:column;
    align-items:center;
    width:100%;
    display:none;
  }

  .header-right-group.open{
    display:flex;
  }

  nav{
    flex-direction:column;
    gap:14px;
    margin-top:10px;
  }

  .header-right{
    margin-top:10px;
  }
}

/* =========================================================
   35. FIX FINALE MENU HAMBURGER + HEADER MOBILE
========================================================= */

@media (max-width:1100px){
  body{
    padding-top:86px !important;
  }

  header{
    display:flex !important;
    align-items:center !important;
    justify-content:space-between !important;
    grid-template-columns:none !important;
    gap:12px !important;
    min-height:86px !important;
    padding:10px 16px !important;
    position:fixed !important;
    top:0 !important;
    left:0 !important;
    width:100% !important;
    z-index:2000 !important;
  }

  .brand{
    width:auto !important;
    min-width:0 !important;
    flex:1 1 auto !important;
    justify-content:flex-start !important;
  }

  .brand-logo{
    height:64px !important;
    width:auto !important;
  }

  .menu-toggle{
    display:flex !important;
    align-items:center !important;
    justify-content:center !important;
    position:relative !important;
    top:auto !important;
    right:auto !important;
    width:36px !important;
    height:36px !important;
    margin-left:auto !important;
    font-size:22px !important;
    color:#2f3a68 !important;
    background:transparent !important;
    border:none !important;
    cursor:pointer !important;
    z-index:2100 !important;
  }

  .header-right-group{
    display:none !important;
    position:absolute !important;
    top:100% !important;
    left:0 !important;
    right:0 !important;
    width:100% !important;
    padding:16px !important;
    background:rgba(255,255,255,0.98) !important;
    backdrop-filter:blur(12px) !important;
    border-bottom:1px solid rgba(31,67,188,0.08) !important;
    box-shadow:0 16px 28px rgba(0,0,0,0.10) !important;
    flex-direction:column !important;
    align-items:stretch !important;
    justify-content:flex-start !important;
    gap:14px !important;
  }

  .header-right-group.open{
    display:flex !important;
  }

  .header-right-group nav{
    display:flex !important;
    flex-direction:column !important;
    align-items:stretch !important;
    justify-content:flex-start !important;
    gap:8px !important;
    width:100% !important;
    margin:0 !important;
  }

  .header-right-group nav a{
    display:block !important;
    width:100% !important;
    text-align:left !important;
    padding:12px 14px !important;
    border-radius:14px !important;
  }

  .header-right{
    display:flex !important;
    flex-wrap:wrap !important;
    justify-content:flex-start !important;
    align-items:center !important;
    gap:10px !important;
    width:100% !important;
    margin-top:4px !important;
  }

  .header-right .login{
    width:auto !important;
    max-width:none !important;
  }

  .hero{
    padding-top:24px !important;
  }

  .page-header{
    padding-top:24px !important;
  }

  .about-page,
  .portfolio-page,
  .legal-page{
    padding-top:24px !important;
  }
}

@media (max-width:480px){
  body{
    padding-top:82px !important;
  }

  header{
    min-height:82px !important;
    padding:10px 14px !important;
  }

  .brand-logo{
    height:58px !important;
  }

  .menu-toggle{
    width:34px !important;
    height:34px !important;
    font-size:20px !important;
  }

  .header-right .login{
    width:100% !important;
    text-align:center !important;
  }
}

/* =========================================================
   36. RIFINITURA VISIVA MENU MOBILE - SICURA
========================================================= */

@media (max-width:1100px){
  .menu-toggle{
    border-radius:12px !important;
    transition:background 0.2s ease, transform 0.2s ease !important;
  }

  .menu-toggle:hover{
    background:rgba(65,104,255,0.08) !important;
  }

  .menu-toggle:active{
    transform:scale(0.96) !important;
  }

  .header-right-group{
    border-bottom-left-radius:18px;
    border-bottom-right-radius:18px;
  }

  .header-right-group nav a{
    font-size:16px !important;
    font-weight:600 !important;
  }

  .header-right-group nav a.active{
    background:linear-gradient(135deg,#4c6fff,#2955ff) !important;
    color:#ffffff !important;
    box-shadow:0 10px 22px rgba(41,85,255,0.22) !important;
  }

  .header-right{
    padding-top:4px;
    border-top:1px solid rgba(31,67,188,0.08);
  }

  .header-right .social-link{
    width:40px !important;
    height:40px !important;
  }

  .header-right .login{
    min-height:42px;
    border-radius:14px !important;
  }
}

/* =========================================================
   37. ANIMAZIONE ELEGANTE MENU MOBILE - SICURA
========================================================= */

@media (max-width:1100px){
  .header-right-group{
    display:flex !important;
    opacity:0 !important;
    visibility:hidden !important;
    pointer-events:none !important;
    transform:translateY(-10px) scale(0.98) !important;
    transform-origin:top center;
    transition:
      opacity 0.28s ease,
      transform 0.28s ease,
      visibility 0.28s ease !important;
  }

  .header-right-group.open{
    display:flex !important;
    opacity:1 !important;
    visibility:visible !important;
    pointer-events:auto !important;
    transform:translateY(0) scale(1) !important;
  }

  .header-right-group nav a{
    transition:
      background 0.2s ease,
      color 0.2s ease,
      transform 0.2s ease,
      box-shadow 0.2s ease !important;
  }

  .header-right-group nav a:hover{
    transform:translateX(4px) !important;
  }

  .header-right .social-link,
  .header-right .login{
    transition:
      transform 0.2s ease,
      box-shadow 0.2s ease,
      opacity 0.2s ease !important;
  }

  .header-right .social-link:hover,
  .header-right .login:hover{
    transform:translateY(-1px) !important;
  }
}

/* =========================================================
   38. HERO - FIX DESKTOP STRETTO
========================================================= */

@media (min-width:1101px) and (max-width:1400px){
  .hero{
    min-height:auto;
    padding:120px 48px 72px;
    background-position:left top, 88% center;
    background-size:100% 100%, cover;
  }

  .hero-text{
    width:500px;
    max-width:500px;
    margin-left:48px;
    margin-top:0;
  }

  .hero-text h1{
    font-size:52px;
    line-height:1.06;
    max-width:500px;
  }

  .hero-text p,
  .hero-text p:last-of-type{
    font-size:20px;
    line-height:1.45;
    max-width:440px;
  }
}

/* =========================================================
   39. HERO - FIX VOLTO SU DESKTOP STRETTO
========================================================= */

@media (min-width:1101px) and (max-width:1250px){
  .hero{
    background-position:left top, 92% center;
    background-size:100% 100%, cover;
  }

  .hero-text{
    width:460px;
    max-width:460px;
    margin-left:36px;
  }

  .hero-text h1{
    font-size:48px;
    max-width:460px;
  }

  .hero-text p,
  .hero-text p:last-of-type{
    max-width:400px;
  }
}

/* =========================================================
   40. HEADER - POSIZIONE INTERMEDIA MENU + SOCIAL + LOGIN
========================================================= */


/* =========================================================
   LEGAL PAGES
   Privacy, Cookie, Termini
========================================================= */

.legal-page{
  max-width:900px;
  margin:0 auto;
  padding:40px 24px 80px;
  background:white;
}

.legal-page h1{
  font-size:42px;
  color:#1f43bc;
  margin-bottom:24px;
}

.legal-page h2{
  font-size:24px;
  color:#2f5597;
  margin-top:32px;
  margin-bottom:12px;
}

.legal-page p,
.legal-page li{
  font-size:18px;
  line-height:1.7;
  color:#3d4f7a;
}

.legal-page ul{
  padding-left:22px;
}

@media (max-width:768px){

  .legal-page{
    padding:30px 18px 60px;
  }

  .legal-page h1{
    font-size:32px;
  }

  .legal-page h2{
    font-size:22px;
  }

  .legal-page p,
  .legal-page li{
    font-size:16px;
  }

}
/* =========================
   SISTEMA GRAFICO DEFINITIVO
   forma IDENTICA per servizi e progetti
========================= */

.services-page,
.projects-page {
  background: #f5f7fb;
  overflow: hidden;
}

/* base unica */
.portfolio-page {
  position: relative;
  overflow: hidden;
}

.portfolio-page .page-shell {
  position: relative;
}

/* FORMA UNICA IDENTICA */

/* STRUTTURA IMMAGINE UNICA IDENTICA */
.portfolio-page .page-shell::after {
  content: "";
  position: absolute;
  top: -40px;
  right: -300px;
  width: 1000px;
  height: 680px;
  background-repeat: no-repeat;
  background-position: center right;
  background-size: cover;
  border-top-left-radius: 420px;
  border-bottom-left-radius: 420px;
  z-index: 2;
  pointer-events: none;
  filter: contrast(1.05) saturate(1.05);
  background-image:
  linear-gradient(
    to right,
    rgba(255,255,255,0.75) 0%,
    rgba(255,255,255,0.65) 18%,
    rgba(255,255,255,0.50) 36%,
    rgba(255,255,255,0.32) 54%,
    rgba(255,255,255,0.16) 70%,
    rgba(255,255,255,0.05) 84%,
    rgba(255,255,255,0.00) 92%
  ),
  var(--dynamic-hero-image);
}

/* immagine servizi */
.services-page .page-shell {
  --dynamic-hero-image: url("../img/servizi-software.webp");
}

/* immagine progetti */
.projects-page .page-shell {
  --dynamic-hero-image: url("../img/bg-progetti.webp");
}

/* immagine web design */
.web-design-page.tab1 .page-shell {
  --dynamic-hero-image: url("../img/web-design-1.webp");
}

.web-design-page.tab2 .page-shell {
  --dynamic-hero-image: url("../img/web-design-2.webp");
}

.web-design-page.tab3 .page-shell {
  --dynamic-hero-image: url("../img/web-design-3.webp");
}

.web-design-page.tab4 .page-shell {
  --dynamic-hero-image: url("../img/web-design-4.webp");
}

.web-design-page.tab5 .page-shell {
  --dynamic-hero-image: url("../img/web-design-5.webp");
}

.web-design-page.tab6 .page-shell {
  --dynamic-hero-image: url("../img/web-design-6.webp");
}

/* contenuto sempre sopra */
.portfolio-page .page-shell > * {
  position: relative;
  z-index: 3;
}

/* ===== TABLET ===== */
@media (max-width: 1024px) {
  .portfolio-page::after {
    top: -40px;
    right: -260px;
    width: 700px;
    height: 560px;
    border-top-left-radius: 320px;
    border-bottom-left-radius: 320px;
  }

  .portfolio-page .page-shell::after {
    top: 20px;
    right: -240px;
    width: 620px;
    height: 460px;
    border-top-left-radius: 300px;
    border-bottom-left-radius: 300px;
    opacity: 0.85;
  }
}

/* ===== MOBILE ===== */
@media (max-width: 768px) {
  .portfolio-page::after {
    top: 0;
    right: -300px;
    width: 520px;
    height: 420px;
    border-top-left-radius: 260px;
    border-bottom-left-radius: 260px;
    opacity: 0.7;
  }

  .portfolio-page .page-shell::after {
    display: none;
  }
}
/* =========================================================
   FOOTER RESPONSIVE - TABLET E MOBILE
========================================================= */

@media (max-width:1024px){
  .home-footer{
    padding:18px 16px 14px;
  }

  .footer-container{
    grid-template-columns:1fr;
    justify-items:center;
    text-align:center;
    gap:18px;
  }

  .footer-brand{
    flex-direction:column;
    gap:10px;
  }

  .footer-brand-logo{
    height:58px;
  }

  .footer-text{
    align-items:center;
  }

  .footer-copy{
    font-size:13px;
    text-align:center;
    margin-top:0;
  }

  .footer-legal{
    justify-content:center;
    flex-wrap:wrap;
    white-space:normal;
    gap:10px;
    text-align:center;
  }

  .footer-legal a{
    font-size:13px;
  }

  .footer-credit-inline{
    font-size:12px;
  }

  .footer-separator{
    display:none;
  }
}

@media (max-width:640px){
  .home-footer{
    padding:16px 12px 12px;
  }

  .footer-container{
    gap:14px;
  }

  .footer-brand-logo{
    height:50px;
  }

  .footer-copy{
    font-size:12px;
    line-height:1.5;
  }

  .footer-legal{
    flex-direction:column;
    gap:8px;
  }

  .footer-legal a,
  .footer-credit-inline{
    font-size:12px;
  }
}
/* =========================================================
   FOOTER DESKTOP - SPOSTA SOLO I LINK A DESTRA
========================================================= */

@media (min-width:1025px){
  .footer-container{
    gap:36px;
  }

  .footer-brand{
    transform:translateX(6px);
  }

  .footer-legal{
    margin-left:120px;
    padding-right:14px;
  }
}
.footer-copy{
  white-space:nowrap;
  font-size:13px;
  color:#2c2c2c; 
  line-height:1.4;
}
.services-page[data-active-tab="tab1"] .page-shell {
  --dynamic-hero-image: url("../img/bg-servizi-software.webp");
}

.services-page[data-active-tab="tab2"] .page-shell {
  --dynamic-hero-image: url("../img/servizi-ai.webp");
}

.services-page[data-active-tab="tab3"] .page-shell {
  --dynamic-hero-image: url("../img/servizi-dashboard.webp");
}

.services-page[data-active-tab="tab4"] .page-shell {
  --dynamic-hero-image: url("../img/servizi-automazione.webp");
}

.projects-page[data-active-tab="tab1"] .page-shell {
  --dynamic-hero-image: url("../img/progetti-termoidrogest.webp");
}

.projects-page[data-active-tab="tab2"] .page-shell {
  --dynamic-hero-image: url("../img/bg-progetti.webp");
}

.projects-page[data-active-tab="tab3"] .page-shell {
  --dynamic-hero-image: url("../img/progetti-scadenzario-familiare.webp");
}

.projects-page[data-active-tab="tab4"] .page-shell {
  --dynamic-hero-image: url("../img/progetti-SSL.webp");
}

.projects-page[data-active-tab="tab5"] .page-shell {
  --dynamic-hero-image: url("../img/progetti-fraud detection.webp");
}

.projects-page[data-active-tab="tab6"] .page-shell {
  --dynamic-hero-image: url("../img/progetti-parco-auto.webp");
}

.projects-page[data-active-tab="tab7"] .page-shell {
  --dynamic-hero-image: url("../img/progetti-text-mining.webp");
}

.projects-page[data-active-tab="tab8"] .page-shell {
  --dynamic-hero-image: url("../img/progetti-tecnologie.webp");
}

.projects-page[data-active-tab="tab9"] .page-shell {
  --dynamic-hero-image: url("../img/progetti-metodo.webp");
}
/* =========================================================
   41. FLEET DEMO - COMPONENTE ISOLATO
========================================================= */

.fleet-demo-entry{
  margin-top:28px;
  padding:28px;
  border-radius:28px;
  background:linear-gradient(180deg, rgba(255,255,255,0.98) 0%, rgba(244,247,255,0.96) 100%);
  border:1px solid rgba(77,108,199,0.14);
  box-shadow:
    0 16px 34px rgba(28,46,109,0.06),
    inset 0 1px 0 rgba(255,255,255,0.72);
  display:flex;
  flex-direction:column;
  align-items:stretch;
  gap:24px;
  position:relative;
  z-index:1;
}

.fleet-demo-entry-head{
  max-width:980px;
}

.fleet-demo-kicker{
  display:inline-flex;
  align-items:center;
  padding:7px 12px;
  border-radius:999px;
  background:rgba(60,90,169,0.08);
  border:1px solid rgba(60,90,169,0.12);
  color:#3e59a4;
  font-size:11px;
  font-weight:700;
  text-transform:uppercase;
  letter-spacing:0.12em;
  margin-bottom:12px;
}

.fleet-demo-entry-head h4{
  margin:0 0 12px 0;
  font-size:32px;
  line-height:1.2;
  color:#21376d;
  max-width:980px;
}

.fleet-demo-entry-head p{
  margin:0;
  font-size:17px;
  line-height:1.85;
  color:#5a6b90;
  max-width:980px;
}

.fleet-demo-entry-subtext{
  margin-top:10px !important;
  font-size:15px !important;
  color:#6b7ca5 !important;
}

.fleet-demo-entry-body{
  display:grid;
  grid-template-columns:minmax(280px, 1.2fr) minmax(260px, 0.9fr);
  gap:24px;
  align-items:center;
}

.fleet-demo-entry-highlight{
  padding:22px 22px;
  border-radius:22px;
  background:linear-gradient(180deg, rgba(248,250,255,0.98) 0%, rgba(240,244,255,0.96) 100%);
  border:1px solid rgba(77,108,199,0.14);
  box-shadow:
    0 10px 24px rgba(28,46,109,0.05),
    inset 0 1px 0 rgba(255,255,255,0.75);
}

.fleet-demo-entry-highlight-label{
  font-size:12px;
  letter-spacing:0.12em;
  text-transform:uppercase;
  color:#7f8fb3;
  margin-bottom:10px;
  font-weight:700;
}

.fleet-demo-entry-highlight h5{
  margin:0 0 10px 0;
  font-size:28px;
  line-height:1.22;
  color:#21376d;
}

.fleet-demo-entry-highlight p{
  margin:0;
  font-size:16px;
  line-height:1.75;
  color:#5a6b90;
}

.fleet-demo-entry-actions{
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:14px;
  min-width:0;
  padding:18px 20px;
  border-radius:20px;
  background:linear-gradient(180deg, rgba(255,255,255,0.96) 0%, rgba(246,248,255,0.96) 100%);
  border:1px solid rgba(77,108,199,0.12);
  box-shadow:
    0 10px 24px rgba(28,46,109,0.04),
    inset 0 1px 0 rgba(255,255,255,0.72);
  text-align:center;
}

.fleet-demo-entry-actions-text{
  font-size:15px;
  color:#5a6b90;
  line-height:1.65;
  margin:0;
}

.fleet-demo-entry-note{
  font-size:14px;
  color:#6b7ca5;
  line-height:1.6;
}

.fleet-demo-open-btn{
  border:none;
  border-radius:999px;
  padding:14px 24px;
  background:linear-gradient(135deg,#4c6fff,#2955ff);
  color:#ffffff;
  font-size:15px;
  font-weight:700;
  cursor:pointer;
  box-shadow:0 12px 24px rgba(41,85,255,0.24);
  transition:
    transform 0.22s ease,
    box-shadow 0.22s ease,
    filter 0.22s ease;
}

.fleet-demo-open-btn:hover{
  transform:translateY(-2px);
  box-shadow:0 16px 28px rgba(41,85,255,0.30);
  filter:brightness(1.03);
}

.fleet-demo-note{
  font-size:13px;
  color:#7483a9;
  font-weight:600;
}

.fleet-demo-modal{
  position:fixed;
  inset:0;
  display:none;
  z-index:12000;
}

.fleet-demo-modal.open{
  display:block;
}

.fleet-demo-overlay{
  position:absolute;
  inset:0;
  background:rgba(16,24,60,0.42);
  backdrop-filter:blur(6px);
  -webkit-backdrop-filter:blur(6px);
  opacity:0;
  animation:fleetOverlayIn 0.35s ease forwards;
}

.fleet-demo-dialog{
  position:relative;
  width:min(1320px, calc(100vw - 34px));
  max-height:calc(100vh - 32px);
  margin:16px auto;
  overflow-y:auto;
  overflow-x:hidden;
  border-radius:28px;
  background:linear-gradient(180deg, #ffffff 0%, #f7f9ff 100%);
  border:1px solid rgba(41,69,143,0.12);
  box-shadow:0 30px 70px rgba(14,24,61,0.28);

  opacity:0;
  transform:translateY(22px) scale(0.97);
  animation:fleetModalIn 0.42s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.fleet-demo-close{
  position:absolute;
  top:14px;
  right:16px;
  width:42px;
  height:42px;
  border:none;
  border-radius:50%;
  background:rgba(244,247,255,0.96);
  color:#5c6d94;
  font-size:30px;
  line-height:1;
  cursor:pointer;
  z-index:2;
}

.fleet-demo-close:hover{
  background:#eef3ff;
  color:#23306b;
}

.fleet-demo-shell{
  display:grid;
  grid-template-columns:320px minmax(0, 1fr);
  min-height:min(820px, calc(100vh - 32px));
}

.fleet-demo-sidebar{
  padding:34px 22px 24px;
  background:
    linear-gradient(180deg, rgba(246,248,255,0.98) 0%, rgba(239,243,255,0.98) 100%);
  border-right:1px solid rgba(84,107,181,0.12);
}

.fleet-demo-sidebar-head{
  margin-bottom:24px;
}

.fleet-demo-sidebar-kicker{
  display:inline-flex;
  align-items:center;
  padding:6px 11px;
  border-radius:999px;
  background:rgba(76,111,255,0.10);
  color:#3455c4;
  font-size:11px;
  font-weight:700;
  text-transform:uppercase;
  letter-spacing:0.12em;
  margin-bottom:12px;
}

.fleet-demo-sidebar-head h3{
  margin:0 0 10px 0;
  font-size:28px;
  line-height:1.15;
  color:#21376d;
}

.fleet-demo-sidebar-head p{
  margin:0;
  font-size:15px;
  line-height:1.7;
  color:#60719a;
}

.fleet-demo-nav{
  display:flex;
  flex-direction:column;
  gap:12px;
  margin-top:8px;
  padding-top:6px;
}

.fleet-demo-nav-btn{
  width:100%;
  text-align:left;
  border:1px solid #dbe3fb;
  border-radius:16px;
  padding:14px 14px;
  background:linear-gradient(180deg, rgba(255,255,255,0.98) 0%, rgba(248,250,255,0.98) 100%);
  color:#334d8f;
  font-size:15px;
  font-weight:700;
  cursor:pointer;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    border-color 0.2s ease,
    background 0.2s ease;
}

.fleet-demo-nav-btn:hover{
  transform:translateX(4px);
  border-color:#bfd0ff;
  box-shadow:0 12px 22px rgba(31,67,188,0.12);
  background:linear-gradient(180deg, rgba(255,255,255,1) 0%, rgba(244,247,255,1) 100%);
}

.fleet-demo-nav-btn.active{
  border-color:rgba(60,90,169,0.26);
  background:linear-gradient(135deg, rgba(76,111,255,0.18), rgba(41,85,255,0.08));
  color:#21376d;
  box-shadow:
    0 12px 24px rgba(37,61,136,0.14),
    inset 0 0 0 1px rgba(77,108,199,0.12);
  transform:translateX(2px);
}

.fleet-demo-main{
  padding:34px;
  overflow:visible;
}

.fleet-demo-stage{
  height:100%;
}

.fleet-demo-slide{
  display:none;
  animation:fleetDemoFade 0.28s ease;
}

.fleet-demo-slide.active{
  display:block;
}

.fleet-demo-copy{
  margin-bottom:20px;
}

.fleet-demo-badge{
  display:inline-flex;
  align-items:center;
  padding:7px 12px;
  border-radius:999px;
  background:rgba(60,90,169,0.08);
  border:1px solid rgba(60,90,169,0.12);
  color:#3e59a4;
  font-size:11px;
  font-weight:700;
  text-transform:uppercase;
  letter-spacing:0.12em;
  margin-bottom:12px;
}

.fleet-demo-copy h4{
  margin:0 0 10px 0;
  font-size:34px;
  line-height:1.15;
  color:#203667;
  letter-spacing:-0.02em;
}

.fleet-demo-copy p{
  margin:0;
  max-width:820px;
  font-size:18px;
  line-height:1.8;
  color:#586a90;
}
.fleet-demo-legal{
  margin-top:20px;
  padding-top:12px;
  border-top:1.5px solid rgba(41,69,143,0.15); 
  font-size:10px;                               
  color:#a3acba;
  font-style:italic;
  letter-spacing:0.6px;
  opacity:0.75;
}

.fleet-demo-image-wrap{
  border-radius:24px;
  overflow:hidden;
  border:1px solid rgba(84,107,181,0.12);
  background:#ffffff;

  box-shadow:
    0 24px 50px rgba(25,41,99,0.12),
    0 6px 14px rgba(25,41,99,0.06),
    inset 0 1px 0 rgba(255,255,255,0.8);

  transition:
    transform 0.35s ease,
    box-shadow 0.35s ease;
}

.fleet-demo-image-wrap:hover{
  transform:translateY(-4px);
  box-shadow:
    0 32px 70px rgba(25,41,99,0.18),
    0 10px 20px rgba(25,41,99,0.08);
}

.fleet-demo-image-wrap img{
  display:block;
  width:100%;
  height:auto;
}

.fleet-demo-pwa-card{
  display:flex;
  align-items:flex-start;
  gap:18px;
  padding:28px;
  border-radius:24px;
  background:linear-gradient(180deg, rgba(255,255,255,0.98) 0%, rgba(244,247,255,0.96) 100%);
  border:1px solid rgba(93,117,194,0.14);
  box-shadow:
    0 14px 28px rgba(28,46,109,0.05),
    inset 0 1px 0 rgba(255,255,255,0.70);
}

.fleet-demo-pwa-icon{
  width:64px;
  height:64px;
  border-radius:18px;
  display:flex;
  align-items:center;
  justify-content:center;
  background:linear-gradient(135deg,#4c6fff,#2955ff);
  color:#ffffff;
  font-size:28px;
  flex-shrink:0;
  box-shadow:0 12px 24px rgba(41,85,255,0.24);
}

.fleet-demo-pwa-card ul{
  margin:0;
  padding-left:18px;
  color:#536487;
  font-size:17px;
  line-height:1.8;
}

.no-scroll,
body.fleet-demo-modal-open{
  overflow:hidden;
}

@keyframes fleetDemoFade{
  from{
    opacity:0;
    transform:translateY(8px);
  }
  to{
    opacity:1;
    transform:translateY(0);
  }
}

@media (max-width:1100px){
  .fleet-demo-entry{
    flex-direction:column;
    align-items:flex-start;
  }

  .fleet-demo-shell{
    grid-template-columns:1fr;
  }

  .fleet-demo-sidebar{
    border-right:none;
    border-bottom:1px solid rgba(84,107,181,0.12);
  }

  .fleet-demo-dialog{
    width:min(1100px, calc(100vw - 20px));
    max-height:calc(100vh - 20px);
    margin:10px auto;
  }
}

@media (max-width:768px){
  .fleet-demo-entry{
    padding:18px;
    border-radius:20px;
    gap:18px;
  }

  .fleet-demo-entry .fleet-demo-entry-text h4{
    font-size:20px !important;
  }

  .fleet-demo-entry .fleet-demo-entry-text p{
    font-size:15px !important;
    line-height:1.7 !important;
  }

  .fleet-demo-open-btn{
    width:100%;
    text-align:center;
  }

  .fleet-demo-entry-actions{
    width:100%;
  }

  .fleet-demo-dialog{
    width:calc(100vw - 14px);
    max-height:calc(100vh - 14px);
    margin:7px auto;
    border-radius:20px;
  }

  .fleet-demo-sidebar{
    padding:22px 16px 16px;
  }

  .fleet-demo-main{
    padding:18px 14px 20px;
  }

  .fleet-demo-sidebar-head h3{
    font-size:24px;
  }

  .fleet-demo-copy h4{
    font-size:24px;
    line-height:1.2;
  }

  .fleet-demo-copy p{
    font-size:15px;
    line-height:1.7;
  }

  .fleet-demo-nav-btn{
    font-size:14px;
    padding:12px 12px;
  }

  .fleet-demo-pwa-card{
    flex-direction:column;
    padding:20px 16px;
    border-radius:18px;
  }

  .fleet-demo-pwa-card ul{
    font-size:15px;
    line-height:1.7;
  }

    .fleet-demo-close{
    top:10px;
    right:10px;
    width:38px;
    height:38px;
    font-size:26px;
  }

  .fleet-demo-dialog{
    overflow-y:auto;
  }

  .fleet-demo-main{
    overflow:visible;
  }

  .fleet-demo-shell{
    min-height:auto;
  }
}
@media (min-width:1101px) and (max-width:1366px){
  .header-right-group{
    transform:none !important;
    max-width:none;
    gap:14px;
  }

  .header-right{
    gap:8px;
  }

  .login{
    padding:10px 14px;
    font-size:13px;
  }

  .social-link{
    width:36px;
    height:36px;
  }
}
@media (max-width:430px){
  .hero{
    padding:20px 14px 34px !important;
    background-position:center center !important;
    background-size:cover !important;
  }

  .hero-text{
    max-width:calc(100vw - 28px) !important;
  }

  .hero-text h1{
    font-size:24px !important;
    line-height:1.08 !important;
    max-width:260px !important;
    margin:0 0 10px 0 !important;
  }

  .hero-text p{
    font-size:13px !important;
    line-height:1.45 !important;
    max-width:240px !important;
    margin:0 0 10px 0 !important;
  }

  .cta{
    font-size:14px !important;
    padding:11px 16px !important;
    margin-top:16px !important;
  }
}
/* =========================================================
   FINTA NOTIFICA PWA
========================================================= */

.fleet-demo-pwa-visual{
  position:relative;
}

.fleet-demo-fake-notification{
  position:absolute;
  top:14px;
  left:14px;
  display:flex;
  align-items:center;
  gap:10px;

  background:rgba(255,255,255,0.95);
  backdrop-filter:blur(6px);
  -webkit-backdrop-filter:blur(6px);

  border-radius:14px;
  padding:10px 12px;

  box-shadow:
    0 10px 20px rgba(0,0,0,0.18),
    0 2px 6px rgba(0,0,0,0.08);

  border:1px solid rgba(0,0,0,0.05);

  transform:translateY(-10px);
  opacity:0;

  animation:fleetNotificationIn 0.6s ease forwards;
  animation-delay:0.5s;
}

.fleet-demo-fake-notification-icon{
  width:32px;
  height:32px;
  border-radius:10px;
  display:flex;
  align-items:center;
  justify-content:center;
  background:linear-gradient(135deg,#4c6fff,#2955ff);
  color:#fff;
  font-size:12px;
  font-weight:700;
}

.fleet-demo-fake-notification-body{
  display:flex;
  flex-direction:column;
  line-height:1.2;
}

.fleet-demo-fake-notification-body strong{
  font-size:13px;
  color:#1f2f63;
}

.fleet-demo-fake-notification-body span{
  font-size:12px;
  color:#5f6f95;
}

/* animazione */
@keyframes fleetNotificationIn{
  to{
    transform:translateY(0);
    opacity:1;
  }
}
/* CTA DEMO */
.fleet-demo-cta{
  margin-top:24px;
  padding:20px;
  border-radius:18px;
  background:linear-gradient(180deg,#f4f7ff,#eef3ff);
  border:1px solid rgba(41,85,255,0.15);
  text-align:center;
}

.fleet-demo-cta p{
  margin:0 0 12px 0;
  font-size:16px;
  color:#2f3f75;
  font-weight:600;
}

.fleet-demo-cta-btn{
  display:inline-block;
  padding:10px 18px;
  border-radius:999px;
  background:linear-gradient(135deg,#4c6fff,#2955ff);
  color:#fff;
  font-size:14px;
  font-weight:700;
  text-decoration:none;
  box-shadow:0 10px 20px rgba(41,85,255,0.25);
  transition:all 0.25s ease;
}

.fleet-demo-cta-btn:hover{
  transform:translateY(-2px);
  box-shadow:0 14px 26px rgba(41,85,255,0.35);
}
/* CTA SIDEBAR DEMO */
.fleet-demo-sidebar-cta{
  display:inline-block;
  width:100%;
  margin-top:14px;
  padding:12px 24px;
  border-radius:28px;
  text-align:center;
  font-size:16px;
  font-weight:500;
  font-family:inherit;
  letter-spacing:0.2px;
  line-height:1.2;
  text-decoration:none;
  border:none;
  cursor:pointer;
  position:relative;
  overflow:hidden;

  background:linear-gradient(90deg,#5c83ff,#2955ff);
  color:#ffffff;

  box-shadow:0 10px 22px rgba(44,79,255,0.28);
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease,
    background 0.25s ease;
}

/* Effetto luce (come il primo bottone) */
.fleet-demo-sidebar-cta::before{
  content:"";
  position:absolute;
  top:0;
  left:-100%;
  width:100%;
  height:100%;
  background:linear-gradient(
    120deg,
    transparent,
    rgba(255,255,255,0.35),
    transparent
  );
  transition:all 0.3s ease;
}

.fleet-demo-sidebar-cta:hover::before{
  left:100%;
}

/* Hover identico al primo */
.fleet-demo-sidebar-cta:hover{
  transform:translateY(-4px) scale(1.02);
  box-shadow:0 20px 42px rgba(44,79,255,0.45);
  background:linear-gradient(90deg,#6f92ff,#2a56ff);
}
.fleet-demo-sidebar-cta::before{
  content:"";
  position:absolute;
  top:0;
  left:-100%;
  width:100%;
  height:100%;
  background:linear-gradient(
    120deg,
    transparent,
    rgba(255,255,255,0.35),
    transparent
  );
  transition:0.6s;
}

.fleet-demo-sidebar-cta:hover::before{
  left:100%;
}

.fleet-demo-sidebar-cta:hover{
  transform:translateY(-4px) scale(1.02);
  box-shadow:0 20px 42px rgba(44,79,255,0.45);
  background:linear-gradient(90deg,#6f92ff,#2a56ff);
}
@keyframes fleetCtaPulse{
  0%{
    transform:scale(1);
    box-shadow:0 10px 20px rgba(41,85,255,0.25);
  }
  50%{
    transform:scale(1.04);
    box-shadow:0 16px 30px rgba(41,85,255,0.35);
  }
  100%{
    transform:scale(1);
    box-shadow:0 10px 20px rgba(41,85,255,0.25);
  }
}
.fleet-demo-sidebar-cta:hover{
  animation:none;
  transform:scale(1.05);
  box-shadow:0 18px 34px rgba(41,85,255,0.45);
  filter:brightness(1.05);
}
@keyframes fleetOverlayIn{
  from{
    opacity:0;
  }
  to{
    opacity:1;
  }
}

@keyframes fleetModalIn{
  from{
    opacity:0;
    transform:translateY(22px) scale(0.97);
  }
  to{
    opacity:1;
    transform:translateY(0) scale(1);
  }
}
.fleet-demo-modal.open .fleet-demo-sidebar{
  animation:fleetSidebarIn 0.5s cubic-bezier(0.22, 1, 0.36, 1) both;
  animation-delay:0.12s;
}

.fleet-demo-modal.open .fleet-demo-main{
  animation:fleetMainIn 0.6s cubic-bezier(0.22, 1, 0.36, 1) both;
  animation-delay:0.4s;
}

@keyframes fleetSidebarIn{
  from{
    opacity:0;
    transform:translateX(-18px);
  }
  to{
    opacity:1;
    transform:translateX(0);
  }
}

@keyframes fleetMainIn{
  from{
    opacity:0;
    transform:translateY(18px);
  }
  to{
    opacity:1;
    transform:translateY(0);
  }
}
.fleet-demo-fake-notification-icon{
  width:38px;
  height:38px;
  border-radius:10px;
  display:flex;
  align-items:center;
  justify-content:center;

  background:#ffffff;
  border:1px solid rgba(60,90,169,0.25);

  box-shadow:0 4px 10px rgba(0,0,0,0.08);
  overflow:hidden;
}

.fleet-demo-fake-notification-icon img{
  width:70%;
  height:auto;
  display:block;
}
.fleet-demo-fake-notification{
  position:absolute;
  top:14px;
  left:14px;
  display:flex;
  align-items:center;
  gap:10px;

  background:rgba(255,255,255,0.94);
  backdrop-filter:blur(12px);
  -webkit-backdrop-filter:blur(12px);

  border-radius:16px;
  padding:10px 12px;

  box-shadow:
    0 14px 30px rgba(0,0,0,0.16),
    0 3px 10px rgba(0,0,0,0.08);

  border:1px solid rgba(255,255,255,0.5);

  opacity:0;
  transform:translateY(-22px) scale(0.92);

  animation:fleetNotificationIOSIn 0.7s cubic-bezier(0.22, 1, 0.36, 1) forwards;
  animation-delay:0.65s;
}

@keyframes fleetNotificationIOSIn{
  0%{
    opacity:0;
    transform:translateY(-22px) scale(0.92);
    filter:blur(6px);
  }
  60%{
    opacity:1;
    transform:translateY(4px) scale(1.02);
    filter:blur(0);
  }
  100%{
    opacity:1;
    transform:translateY(0) scale(1);
    filter:blur(0);
  }
}
/* Assistente AI - sidebar demo */
.fleet-demo-assistant-box{
  margin-top:18px;
  padding:16px 16px 14px;
  border-radius:18px;
  background:linear-gradient(180deg,#f4f7ff,#eef3ff);
  border:1px solid rgba(41,85,255,0.15);
  display:flex;
  gap:12px;
  align-items:flex-start;
}

.fleet-demo-assistant-logo{
  width:46px;
  height:46px;
  border-radius:12px;
  background:#ffffff;
  border:1px solid rgba(60,90,169,0.18);
  display:flex;
  align-items:center;
  justify-content:center;
  flex-shrink:0;
  box-shadow:0 4px 10px rgba(0,0,0,0.08);
}

.fleet-demo-assistant-logo img{
  width:82%;
  height:auto;
}

.fleet-demo-assistant-content{
  min-width:0;
}

.fleet-demo-assistant-content h5{
  margin:0 0 6px 0;
  font-size:16px;
  line-height:1.25;
  color:#21376d;
  font-weight:700;
}

.fleet-demo-assistant-content p{
  margin:0;
  font-size:14px;
  color:#5a6b90;
  line-height:1.6;
}

.fleet-demo-assistant-content ul{
  margin:10px 0 0 0;
  padding-left:18px;
  color:#5a6b90;
  font-size:14px;
  line-height:1.65;
}

.fleet-demo-assistant-content li{
  margin-bottom:4px;
}

.fleet-demo-assistant-content div{
  margin-top:10px;
  font-size:13px;
  color:#6b7ca5;
  line-height:1.55;
}
@keyframes aiPulse {
  0%{
    transform:scale(1);
  }
  50%{
    transform:scale(1.03);
  }
  100%{
    transform:scale(1);
  }
}

.fleet-demo-assistant-logo{
  animation:aiPulse 4.5s ease-in-out infinite;
}
.fleet-demo-sidebar-head{
  margin-bottom:18px;
  padding-bottom:14px;
  border-bottom:1px solid rgba(84,107,181,0.12);
}
.fleet-demo-nav-btn::before{
  content:"";
  display:inline-block;
  width:6px;
  height:6px;
  border-radius:50%;
  background:rgba(41,85,255,0.35);
  margin-right:10px;
  vertical-align:middle;
}

.fleet-demo-nav-btn.active::before{
  background:#2955ff;
  box-shadow:0 0 0 3px rgba(41,85,255,0.15);
}
.fleet-demo-onboarding-note{
  margin-bottom:18px;
  padding:12px 16px;
  border-radius:14px;
  background:linear-gradient(180deg,#f4f7ff,#eef3ff);
  border:1px solid rgba(41,85,255,0.12);
  font-size:14px;
  color:#5a6b90;
  line-height:1.6;
}
/* =========================================================
   HEADER FIX DEFINITIVO (NON TOCCARE ALTRO)
========================================================= */

/* LOGO */

/* FIX DESKTOP */
@media (min-width:1101px){

  .header-right-group{
    justify-content:flex-end !important;
    max-width:none !important;
    margin:0 !important;
    transform:none !important;
    gap:14px !important;
    flex-wrap:wrap !important;
  }

  nav{
    justify-content:flex-end !important;
  }

  .header-right{
    flex-wrap:nowrap !important;
    gap:8px !important;
  }

}

/* FIX LAPTOP (evita taglio bottone) */
@media (min-width:1101px) and (max-width:1280px){

  .header-right .social-link{
    display:none !important;
  }

  .login{
    padding:10px 14px !important;
    font-size:13px !important;
  }

}

/* LOGO RESPONSIVE */
@media (min-width:1400px){
  .brand-logo{ height:82px !important; }
}

@media (min-width:1101px) and (max-width:1399px){
  .brand-logo{ height:70px !important; }
}

@media (max-width:1100px){
  .brand-logo{ height:58px !important; }
}

@media (max-width:480px){
  .brand-logo{ height:52px !important; }
}
/* =========================================================
   42. ANIMAZIONE HERO IMMAGINE PAGINE INTERNE
========================================================= */

/* stato iniziale */
.portfolio-page .page-shell::after{
  opacity:0;
  transform:translateX(90px) scale(1.02);
  transition:
    opacity 0.95s ease,
    transform 1.05s cubic-bezier(0.22, 1, 0.36, 1);
  will-change:transform, opacity;
}

/* stato finale */
.portfolio-page.hero-visual-ready .page-shell::after{
  opacity:1;
  transform:translateX(0) scale(1);
}

/* piccolo ingresso anche del blocco testo principale */
.portfolio-page .premium-intro{
  opacity:0;
  transform:translateY(22px);
  transition:
    opacity 0.75s ease,
    transform 0.85s cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay:0.08s;
}

.portfolio-page.hero-visual-ready .premium-intro{
  opacity:1;
  transform:translateY(0);
}

/* leggera entrata del contenuto sotto */
.portfolio-page .services-layout{
  opacity:0;
  transform:translateY(18px);
  transition:
    opacity 0.8s ease,
    transform 0.9s cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay:0.18s;
}

.portfolio-page.hero-visual-ready .services-layout{
  opacity:1;
  transform:translateY(0);
}

/* su mobile niente animazioni pesanti */
@media (max-width:768px){
  .portfolio-page .premium-intro,
  .portfolio-page .services-layout{
    opacity:1;
    transform:none;
    transition:none;
  }

  .portfolio-page .page-shell::after{
    transition:
      opacity 0.65s ease,
      transform 0.7s ease;
    transform:translateX(40px);
  }

  .portfolio-page.hero-visual-ready .page-shell::after{
    transform:translateX(0);
  }
}

/* accessibilità: riduce animazioni se richiesto dal browser */
@media (prefers-reduced-motion: reduce){
  .portfolio-page .page-shell::after,
  .portfolio-page .premium-intro,
  .portfolio-page .services-layout{
    opacity:1 !important;
    transform:none !important;
    transition:none !important;
    animation:none !important;
  }
}
/* =========================================================
   44. ANIMAZIONE IMMAGINE AL CAMBIO TAB
========================================================= */

@keyframes heroShapeReveal{
  from{
    clip-path: inset(0 0 0 100%);
    opacity: 0.88;
  }
  to{
    clip-path: inset(0 0 0 0);
    opacity: 1;
  }
}

.services-page.hero-image-animate .page-shell::after,
.projects-page.hero-image-animate .page-shell::after,
.web-design-page.hero-image-animate .page-shell::after{
  animation: heroShapeReveal 0.9s cubic-bezier(0.22, 1, 0.36, 1);
  animation-delay: 0.08s;
  animation-fill-mode: both;
  will-change: clip-path, opacity;
}

@media (max-width:768px){
  .services-page.hero-image-animate .page-shell::after,
  .projects-page.hero-image-animate .page-shell::after,
  .web-design-page.hero-image-animate .page-shell::after{
    animation: none !important;
  }
}

@media (prefers-reduced-motion: reduce){
  .services-page.hero-image-animate .page-shell::after,
  .projects-page.hero-image-animate .page-shell::after,
  .web-design-page.hero-image-animate .page-shell::after{
    animation: none !important;
    clip-path: none !important;
    opacity: 1 !important;
  }
}
/* =========================================================
   45. ANIMAZIONE CARD CONTENUTO AL CAMBIO TAB
========================================================= */

@keyframes panelContentFadeUp{
  from{
    opacity:0;
    transform:translateY(18px);
  }
  to{
    opacity:1;
    transform:translateY(0);
  }
}

.service-panel.active .premium-card{
  animation:panelContentFadeUp 0.55s ease both;
}

.service-panel.active .feature-box{
  opacity:0;
  animation:panelContentFadeUp 0.5s ease both;
}

.service-panel.active .feature-box:nth-child(1){
  animation-delay:0.10s;
}

.service-panel.active .feature-box:nth-child(2){
  animation-delay:0.18s;
}

.service-panel.active .feature-box:nth-child(3){
  animation-delay:0.26s;
}

.service-panel.active .feature-box:nth-child(4){
  animation-delay:0.34s;
}

@media (max-width:768px){
  .service-panel.active .premium-card,
  .service-panel.active .feature-box{
    animation:none !important;
    opacity:1 !important;
    transform:none !important;
  }
}

@media (prefers-reduced-motion: reduce){
  .service-panel.active .premium-card,
  .service-panel.active .feature-box{
    animation:none !important;
    opacity:1 !important;
    transform:none !important;
  }
}
/* =========================================================
   46. HOVER PREMIUM CARD
========================================================= */


@media (max-width:768px){
  .feature-box:hover{
    transform:none;
  }

  .feature-box:hover::before{
    transform:translateX(-130%);
  }
}

@media (prefers-reduced-motion: reduce){
  .feature-box,
  .feature-box::before{
    transition:none !important;
  }

  .feature-box:hover{
    transform:none !important;
  }

  .feature-box:hover::before{
    transform:translateX(-130%) !important;
  }
}
/* =========================================================
   47. REVEAL ON SCROLL
========================================================= */

.reveal-on-scroll{
  opacity:0;
  transform:translateY(36px);
  transition:
    opacity 0.8s ease,
    transform 0.9s cubic-bezier(0.22, 1, 0.36, 1);
  will-change:opacity, transform;
}

.reveal-on-scroll.is-visible{
  opacity:1;
  transform:translateY(0);
}

.reveal-delay-1{
  transition-delay:0.06s;
}

.reveal-delay-2{
  transition-delay:0.14s;
}

.reveal-delay-3{
  transition-delay:0.22s;
}

@media (max-width:768px){
  .reveal-on-scroll{
    opacity:1;
    transform:none;
    transition:none;
  }
}

@media (prefers-reduced-motion: reduce){
  .reveal-on-scroll{
    opacity:1 !important;
    transform:none !important;
    transition:none !important;
  }
}
/* CTA PREMIUM EFFECT */

/* effetto luce */
.cta::after {
  content: "";
  position: absolute;
  top: 0;
  left: -120%;
  width: 120%;
  height: 100%;
  background: linear-gradient(
    120deg,
    transparent,
    rgba(255,255,255,0.35),
    transparent
  );
  transition: all 0.6s ease;
}

.cta:hover::after {
  left: 120%;
}

.fleet-demo-open-btn{
  display:inline-block;
  width:100%;
  max-width:300px;
  margin:14px 0;
  min-width:260px;
  text-align:center;

  background:linear-gradient(90deg,#5c83ff,#2955ff);
  color:#ffffff;
  padding:14px 28px;
  border-radius:28px;
  text-decoration:none;
  font-weight:500;
  font-size:16px;
  font-family:inherit;
  letter-spacing:0.2px;
  line-height:1.2;
  border:none;
  cursor:pointer;
  position:relative;
  overflow:hidden;
  box-shadow:0 10px 22px rgba(44,79,255,0.28);
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease,
    background 0.25s ease;
}

.fleet-demo-open-btn::before{
  content:"";
  position:absolute;
  top:0;
  left:-100%;
  width:100%;
  height:100%;
  background:linear-gradient(
    120deg,
    transparent,
    rgba(255,255,255,0.35),
    transparent
  );
  transition:all 0.3s ease;
}

.fleet-demo-open-btn:hover::before{
  left:100%;
}

.fleet-demo-open-btn:hover{
  transform:translateY(-4px) scale(1.02);
  box-shadow:0 20px 42px rgba(44,79,255,0.45);
  background:linear-gradient(90deg,#6f92ff,#2a56ff);
}

.fleet-demo-ai-preview{
  margin:18px 0 22px;
  padding:16px 18px;
  background:rgba(62, 89, 164, 0.05);
  border:1px solid rgba(62, 89, 164, 0.12);
  border-radius:12px;

  opacity:0;
  transform:translateY(10px);
  animation:fleetAIFadeIn 0.6s ease forwards;
  animation-delay:0.3s;
}

.fleet-demo-ai-preview-label{
  font-size:11px;
  text-transform:uppercase;
  letter-spacing:0.6px;
  color:#7f8fb3;
  margin-bottom:6px;
}

.fleet-demo-ai-preview-list{
  display:flex;
  flex-direction:column;
  gap:10px;
}

.fleet-demo-ai-preview-query{
  display:block;
  width:100%;
  text-align:left;
  font-size:15px;
  font-weight:600;
  color:#2d3e6f;
  margin:0;
  padding:12px 14px;
  border:none;
  border-radius:10px;
  background:rgba(255,255,255,0.88);
  box-shadow:inset 0 0 0 1px rgba(62, 89, 164, 0.10);
  cursor:pointer;
  opacity:0;
  transform:translateY(8px);
  animation:fleetPromptIn 0.45s ease forwards;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    background 0.2s ease;
}

.fleet-demo-ai-preview-query:hover{
  transform:translateY(-1px);
  background:#ffffff;
  box-shadow:
    0 8px 18px rgba(62, 89, 164, 0.10),
    inset 0 0 0 1px rgba(62, 89, 164, 0.16);
}

.fleet-demo-ai-preview-query-1{
  animation-delay:0.45s;
}

.fleet-demo-ai-preview-query-2{
  animation-delay:0.70s;
}

.fleet-demo-ai-preview-query-3{
  animation-delay:0.95s;
}

.fleet-demo-ai-preview-response{
  font-size:14px;
  color:#5a6b90;
  line-height:1.5;
}

.fleet-demo-assistant-box{
  transition:transform 0.25s ease, box-shadow 0.25s ease;
}

.fleet-demo-assistant-box:hover{
  transform:translateY(-3px);
  box-shadow:0 12px 28px rgba(41,85,255,0.18);
}

.fleet-demo-slide-highlight{
  animation:fleetDemoSlideHighlight 1.1s ease;
}

@keyframes fleetAIFadeIn{
  to{
    opacity:1;
    transform:translateY(0);
  }
}

@keyframes fleetPromptIn{
  to{
    opacity:1;
    transform:translateY(0);
  }
}

@keyframes fleetDemoSlideHighlight{
  0%{
    transform:scale(0.985);
    box-shadow:0 0 0 rgba(41,85,255,0);
  }
  35%{
    transform:scale(1.01);
    box-shadow:0 0 0 10px rgba(41,85,255,0.10);
  }
  100%{
    transform:scale(1);
    box-shadow:0 0 0 0 rgba(41,85,255,0);
  }
}
@media (max-width:480px){
  .portfolio-page,
  .portfolio-page .page-shell,
  .portfolio-page .services-layout,
  .portfolio-page .services-content,
  .portfolio-page .service-panel,
  .portfolio-page .premium-card{
    width:100% !important;
    max-width:100% !important;
    min-width:0 !important;
  }

  .portfolio-page .premium-card{
    padding:20px 14px !important;
    overflow:hidden !important;
  }

  .portfolio-page .service-panel h3{
    font-size:20px !important;
    line-height:1.15 !important;
    max-width:100% !important;
    word-break:break-word !important;
    overflow-wrap:anywhere !important;
  }

  .portfolio-page .service-panel p,
  .portfolio-page .service-panel ul,
  .portfolio-page .service-panel li{
    font-size:15px !important;
    line-height:1.6 !important;
    max-width:100% !important;
    word-break:break-word !important;
    overflow-wrap:anywhere !important;
  }

  .portfolio-page .panel-lead{
    font-size:15px !important;
    line-height:1.6 !important;
    max-width:100% !important;
  }

  .premium-feature-grid{
    grid-template-columns:1fr !important;
  }

  .feature-box{
    min-width:0 !important;
  }
}
@media (max-width:480px){
  .portfolio-page .page-intro h1,
  .portfolio-page .premium-card h3,
  .portfolio-page .fleet-demo-copy h4,
  .fleet-demo-entry-head h4,
  .fleet-demo-entry-highlight h5{
    font-size:18px !important;
    line-height:1.18 !important;
    letter-spacing:0 !important;
    max-width:100% !important;
    word-break:break-word !important;
    overflow-wrap:anywhere !important;
    white-space:normal !important;
  }

  .portfolio-page .panel-meta-row{
    gap:6px !important;
  }

  .panel-topline,
  .panel-tag,
  .fleet-demo-kicker,
  .fleet-demo-badge{
    max-width:100% !important;
    white-space:normal !important;
    text-align:left !important;
  }

  .editorial-divider{
    max-width:140px !important;
  }
}
@media (min-width:769px) and (max-width:1200px){
  .hero{
    min-height:auto;
    padding:90px 32px 56px;
    background-position:left top, 72% center;
    background-size:cover;
  }

  .hero-text{
    width:100%;
    max-width:420px;
    margin-left:24px;
    margin-top:0;
  }

  .hero-text h1{
    font-size:46px;
    line-height:1.08;
    max-width:420px;
    word-break:break-word;
    overflow-wrap:anywhere;
  }

  .hero-text p{
    font-size:18px;
    line-height:1.5;
    max-width:400px;
  }

  .hero-text p:last-of-type{
    font-size:18px;
    line-height:1.5;
    max-width:400px;
  }

  .hero .cta{
    margin-top:18px;
  }
}
@media (max-width:430px){
  .portfolio-page{
    padding:28px 10px 42px !important;
  }

  .page-shell{
    width:100% !important;
    max-width:100% !important;
    overflow:hidden !important;
  }

  .premium-intro,
  .services-layout,
  .services-content,
  .service-panel,
  .premium-card{
    width:100% !important;
    max-width:100% !important;
    min-width:0 !important;
  }

  .premium-card{
    padding:18px 12px !important;
    border-radius:18px !important;
    overflow:hidden !important;
  }

  .page-intro h1,
  .portfolio-page .service-panel h3,
  .fleet-demo-copy h4,
  .fleet-demo-entry-head h4,
  .fleet-demo-entry-highlight h5{
    font-size:17px !important;
    line-height:1.18 !important;
    letter-spacing:0 !important;
    max-width:100% !important;
    white-space:normal !important;
    word-break:break-word !important;
    overflow-wrap:anywhere !important;
  }

  .page-intro p,
  .panel-lead,
  .portfolio-page .service-panel p,
  .portfolio-page .service-panel ul,
  .portfolio-page .service-panel li{
    font-size:14px !important;
    line-height:1.55 !important;
    max-width:100% !important;
    white-space:normal !important;
    word-break:break-word !important;
    overflow-wrap:anywhere !important;
  }

  .premium-feature-grid{
    grid-template-columns:1fr !important;
    gap:12px !important;
  }

  .feature-box{
    min-width:0 !important;
    padding:14px !important;
  }

  .feature-box h4{
    font-size:16px !important;
    line-height:1.3 !important;
  }

  .feature-box p{
    font-size:14px !important;
    line-height:1.55 !important;
  }
}
@media (max-width:430px){
  .premium-card{
    min-height:auto !important;
    height:auto !important;
    overflow-x:hidden !important;
    overflow-y:visible !important;
  }

  .service-panel,
  .service-panel.active,
  .portfolio-page .services-content{
    overflow:visible !important;
  }

  .fleet-demo-entry{
    overflow:visible !important;
  }
}
@media (max-width:930px) and (orientation:landscape){
  .projects-page #tab1 .premium-card{
    min-height:auto !important;
    height:auto !important;
    padding:18px 14px !important;
    overflow-x:hidden !important;
    overflow-y:visible !important;
  }

  .projects-page #tab1 h3,
  .projects-page #tab1 .panel-lead,
  .projects-page #tab1 p,
  .projects-page #tab1 li,
  .projects-page #tab1 .fleet-demo-entry-head h4,
  .projects-page #tab1 .fleet-demo-entry-highlight h5,
  .projects-page #tab1 .fleet-demo-entry-highlight p,
  .projects-page #tab1 .fleet-demo-entry-actions-text,
  .projects-page #tab1 .fleet-demo-entry-note{
    max-width:100% !important;
    white-space:normal !important;
    word-break:break-word !important;
    overflow-wrap:anywhere !important;
  }

  .projects-page #tab1 h3{
    font-size:22px !important;
    line-height:1.15 !important;
  }

  .projects-page #tab1 .panel-lead,
  .projects-page #tab1 p,
  .projects-page #tab1 li{
    font-size:15px !important;
    line-height:1.55 !important;
  }

  .projects-page #tab1 .fleet-demo-entry-body{
    grid-template-columns:1fr !important;
    gap:16px !important;
  }

  .projects-page #tab1 .fleet-demo-open-btn{
    max-width:100% !important;
    min-width:0 !important;
  }
}
@media (max-width:430px){
  .projects-page #tab1,
  .projects-page #tab1 .content-card,
  .projects-page #tab1 .premium-card{
    height:auto !important;
    min-height:auto !important;
    max-height:none !important;
    overflow:visible !important;
  }

  .projects-page #tab1 .fleet-demo-entry{
    margin-top:18px !important;
    overflow:visible !important;
  }

  .projects-page #tab1 .fleet-demo-entry-body{
    display:flex !important;
    flex-direction:column !important;
    align-items:stretch !important;
    gap:16px !important;
  }

  .projects-page #tab1 .fleet-demo-entry-actions{
    width:100% !important;
    overflow:visible !important;
  }
}
@media (max-width:430px) and (orientation:portrait){
  .projects-page #tab1,
  .projects-page #tab1.service-panel,
  .projects-page #tab1.service-panel.active,
  .projects-page #tab1 .content-card,
  .projects-page #tab1 .premium-card,
  .projects-page .services-content,
  .projects-page .service-panel,
  .projects-page .service-panel.active{
    height:auto !important;
    min-height:auto !important;
    max-height:none !important;
    overflow:visible !important;
  }

  .projects-page #tab1 .premium-card{
    padding-bottom:28px !important;
  }

  .projects-page #tab1 .fleet-demo-entry{
    display:block !important;
    overflow:visible !important;
    margin-top:18px !important;
  }

  .projects-page #tab1 .fleet-demo-entry-body{
    display:block !important;
    overflow:visible !important;
  }

  .projects-page #tab1 .fleet-demo-entry-highlight,
  .projects-page #tab1 .fleet-demo-entry-actions{
    display:block !important;
    width:100% !important;
    max-width:100% !important;
    overflow:visible !important;
  }

  .projects-page #tab1 .fleet-demo-entry-actions{
    margin-top:16px !important;
    text-align:center !important;
  }

  .projects-page #tab1 .fleet-demo-open-btn{
    display:block !important;
    width:100% !important;
    max-width:260px !important;
    margin:12px auto !important;
  }
}

/* =========================================================
   FAMILY DEMO — ANIMAZIONE SLIDE (OBBLIGATORIO)
========================================================= */

.family-demo-modal .fleet-demo-slide.pre-active{
  opacity:0;
  transform:translateX(30px);
}

.family-demo-modal .fleet-demo-slide.active{
  opacity:1;
  transform:translateX(0);
  transition:all 0.4s ease;
}

/* =========================================================
   FAMILY DEMO - RIFINITURA PREMIUM
========================================================= */

.family-demo-modal .fleet-demo-sidebar{
  background:
    radial-gradient(circle at 20% 0%, rgba(76,111,255,0.12), transparent 34%),
    linear-gradient(180deg, rgba(247,249,255,0.99) 0%, rgba(239,244,255,0.99) 100%);
}

.family-demo-modal .fleet-demo-sidebar-kicker{
  background:rgba(76,111,255,0.12);
  color:#3455c4;
}

.family-demo-modal .fleet-demo-sidebar-head h3{
  font-size:28px;
  line-height:1.16;
  color:#21376d;
}

.family-demo-modal .fleet-demo-sidebar-head p{
  color:#60719a;
}

.family-demo-modal .fleet-demo-assistant-box{
  margin-top:18px;
  background:linear-gradient(180deg,#f7f9ff,#eef3ff);
  border:1px solid rgba(41,85,255,0.14);
  box-shadow:
    0 12px 28px rgba(41,85,255,0.10),
    inset 0 1px 0 rgba(255,255,255,0.75);
}

.family-demo-modal .fleet-demo-assistant-box h5{
  margin:0 0 8px 0;
  font-size:17px;
  color:#21376d;
}

.family-demo-modal .fleet-demo-assistant-box p{
  margin:0;
  font-size:14px;
  line-height:1.65;
  color:#5a6b90;
}

.family-demo-modal .fleet-demo-ai-preview{
  border-radius:18px;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.94), rgba(244,247,255,0.94));
  box-shadow:
    0 14px 30px rgba(28,46,109,0.06),
    inset 0 1px 0 rgba(255,255,255,0.75);
}

.family-demo-modal .fleet-demo-copy h4{
  font-size:34px;
  line-height:1.15;
  color:#203667;
}

.family-demo-modal .fleet-demo-copy p{
  max-width:860px;
}

.family-demo-modal .fleet-demo-image-wrap{
  min-height:220px;
  display:flex;
  align-items:center;
  justify-content:center;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.98), rgba(246,248,255,0.98));
}

.family-demo-modal .fleet-demo-image-wrap img{
  width:100%;
  height:auto;
  object-fit:cover;
}

.family-demo-modal .fleet-demo-fake-notification{
  z-index:2;
}

.family-demo-modal .fleet-demo-nav-btn.active{
  background:linear-gradient(135deg, rgba(76,111,255,0.20), rgba(41,85,255,0.08));
}

.family-demo-modal .fleet-demo-sidebar-cta{
  margin-top:16px;
}

/* =========================================================
   FAMILY DEMO - ANIMAZIONI PREMIUM SLIDE
========================================================= */

.family-demo-modal .fleet-demo-slide{
  opacity:0;
  transform:translateY(18px) scale(0.985);
  filter:blur(6px);
  transition:
    opacity 0.45s ease,
    transform 0.55s cubic-bezier(0.22, 1, 0.36, 1),
    filter 0.45s ease;
}

.family-demo-modal .fleet-demo-slide.active{
  opacity:1;
  transform:translateY(0) scale(1);
  filter:blur(0);
}

.family-demo-modal .fleet-demo-slide.active .fleet-demo-copy{
  animation:familyCopyIn 0.55s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.family-demo-modal .fleet-demo-slide.active .fleet-demo-image-wrap{
  animation:familyImageIn 0.65s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.family-demo-modal .fleet-demo-nav-btn{
  position:relative;
  overflow:hidden;
}

.family-demo-modal .fleet-demo-nav-btn::after{
  content:"";
  position:absolute;
  inset:0;
  background:linear-gradient(
    120deg,
    transparent,
    rgba(255,255,255,0.45),
    transparent
  );
  transform:translateX(-120%);
  transition:transform 0.6s ease;
}

.family-demo-modal .fleet-demo-nav-btn:hover::after{
  transform:translateX(120%);
}

@keyframes familyCopyIn{
  from{
    opacity:0;
    transform:translateY(14px);
  }
  to{
    opacity:1;
    transform:translateY(0);
  }
}

@keyframes familyImageIn{
  from{
    opacity:0;
    transform:translateY(22px) scale(0.97);
    filter:blur(8px);
  }
  to{
    opacity:1;
    transform:translateY(0) scale(1);
    filter:blur(0);
  }
}

/* CLICK FEEDBACK */

.family-demo-modal .fleet-demo-ai-preview-query{
  transition:transform 0.15s ease, box-shadow 0.2s ease;
}

.family-demo-modal .fleet-demo-ai-preview-query:active{
  transform:scale(0.97);
  box-shadow:0 6px 12px rgba(0,0,0,0.08) inset;
}

/* =========================================================
   MODAL OPEN EFFECT — PREMIUM (BLUR + DEPTH)
========================================================= */

.fleet-demo-modal{
  opacity:0;
  pointer-events:none;
  transition:opacity 0.35s ease;
}

.fleet-demo-modal.open{
  opacity:1;
  pointer-events:auto;
}

/* OVERLAY (sfondo blur) */
.fleet-demo-overlay{
  backdrop-filter:blur(6px);
  background:rgba(20,30,60,0.35);
  opacity:0;
  transition:all 0.35s ease;
}

.fleet-demo-modal.open .fleet-demo-overlay{
  opacity:1;
}

/* MODALE (zoom elegante) */
.fleet-demo-dialog{
  transform:scale(0.96) translateY(20px);
  opacity:0;
  transition:all 0.35s cubic-bezier(.2,.8,.2,1);
}

.fleet-demo-modal.open .fleet-demo-dialog{
  transform:scale(1) translateY(0);
  opacity:1;
}

/* =========================================================
   SLIDE SMOOTH IMPROVEMENT
========================================================= */

.family-demo-modal .fleet-demo-slide{
  opacity:0;
  transform:translateX(20px);
  transition:all 0.35s ease;
}

.family-demo-modal .fleet-demo-slide.active{
  opacity:1;
  transform:translateX(0);
}

/* =========================================================
   MODAL OPEN EFFECT — PREMIUM
========================================================= */

.fleet-demo-modal{
  opacity:0;
  pointer-events:none;
  transition:opacity 0.35s ease;
}

.fleet-demo-modal.open{
  opacity:1;
  pointer-events:auto;
}

.fleet-demo-overlay{
  backdrop-filter:blur(6px);
  background:rgba(20,30,60,0.35);
  opacity:0;
  transition:all 0.35s ease;
}

.fleet-demo-modal.open .fleet-demo-overlay{
  opacity:1;
}

.fleet-demo-dialog{
  transform:scale(0.96) translateY(20px);
  opacity:0;
  transition:all 0.35s cubic-bezier(.2,.8,.2,1);
}

.fleet-demo-modal.open .fleet-demo-dialog{
  transform:scale(1) translateY(0);
  opacity:1;
}

/* =========================================================
   FAMILY DEMO — SLIDE SMOOTH FINAL
========================================================= */

.family-demo-modal .fleet-demo-slide{
  opacity:0;
  transform:translateX(20px);
  transition:all 0.35s ease;
}

.family-demo-modal .fleet-demo-slide.active{
  opacity:1;
  transform:translateX(0);
}

/* Nasconde il box "Prova una richiesta" solo nella demo Scadenzario familiare */
.family-demo-modal .fleet-demo-ai-preview{
  display:none !important;
}