/* =========================================================
   STYLE CLEAN
   Sovrascritture pulite e progressive
   ========================================================= */

/* =========================================================
   01. HEADER CLEAN
========================================================= */

:root{
  --header-height-desktop: 84px;
  --header-height-mobile: 82px;
}

@media (min-width:1101px){
  body{
    padding-top:var(--header-height-desktop);
  }

  header{
    display:grid;
    grid-template-columns:auto 1fr;
    align-items:center;
    min-height:var(--header-height-desktop);
    padding:10px 24px 10px 40px;
    position:fixed;
    top:0;
    left:0;
    width:100%;
    z-index:2000;
  }

  .brand{
    margin-left:0;
    min-width:0;
  }

  .brand-logo{
    height:72px;
    width:auto;
    max-width:100%;
    object-fit:contain;
  }

  .header-right-group{
    display:flex;
    align-items:center;
    justify-content:flex-end;
    gap:14px;
    width:100%;
    margin:0;
    max-width:none;
    transform:none;
    flex-wrap:wrap;
  }

  nav{
    display:flex;
    align-items:center;
    justify-content:flex-end;
    gap:8px;
    margin:0;
    flex-wrap:wrap;
  }

  .header-right{
    display:flex;
    align-items:center;
    justify-content:flex-end;
    gap:8px;
    flex-wrap:nowrap;
    width:auto;
    margin:0;
    padding:0;
    border-top:none;
  }

  .menu-toggle{
    display:none;
  }
}

@media (min-width:1101px) and (max-width:1280px){
  .header-right .social-link{
    display:flex !important;
  }

  .login{
    padding:10px 14px;
    font-size:13px;
  }
}

@media (max-width:1100px){
  body{
    padding-top:var(--header-height-mobile);
  }

  header{
    display:flex;
    align-items:center;
    justify-content:space-between;
    min-height:var(--header-height-mobile);
    padding:10px 16px;
    position:fixed;
    top:0;
    left:0;
    width:100%;
    z-index:2000;
  }

  .brand{
    margin-left:0;
    min-width:0;
    flex:1 1 auto;
    width:auto;
    justify-content:flex-start;
  }

  .brand-logo{
    height:58px;
    width:auto;
    max-width:100%;
    object-fit:contain;
  }

  .menu-toggle{
    display:flex;
    align-items:center;
    justify-content:center;
    width:36px;
    height:36px;
    margin-left:auto;
    border:none;
    background:transparent;
    color:#2f3a68;
    font-size:22px;
    cursor:pointer;
    border-radius:12px;
    transition:background 0.2s ease, transform 0.2s ease;
    z-index:2100;
  }

  .menu-toggle:hover{
    background:rgba(65,104,255,0.08);
  }

  .menu-toggle:active{
    transform:scale(0.96);
  }

  .header-right-group{
    position:absolute;
    top:100%;
    left:0;
    right:0;
    display:flex;
    flex-direction:column;
    align-items:stretch;
    justify-content:flex-start;
    gap:14px;
    width:100%;
    padding:16px;
    background:rgba(255,255,255,0.98);
    backdrop-filter:blur(12px);
    -webkit-backdrop-filter:blur(12px);
    border-bottom:1px solid rgba(31,67,188,0.08);
    border-bottom-left-radius:18px;
    border-bottom-right-radius:18px;
    box-shadow:0 16px 28px rgba(0,0,0,0.10);

    opacity:0;
    visibility:hidden;
    pointer-events:none;
    transform:translateY(-10px) scale(0.98);
    transform-origin:top center;
    transition:
      opacity 0.28s ease,
      transform 0.28s ease,
      visibility 0.28s ease;
  }

  .header-right-group.open{
    opacity:1;
    visibility:visible;
    pointer-events:auto;
    transform:translateY(0) scale(1);
  }

  .header-right-group nav{
    display:flex;
    flex-direction:column;
    align-items:stretch;
    justify-content:flex-start;
    gap:8px;
    width:100%;
    margin:0;
  }

  .header-right-group nav a{
    display:block;
    width:100%;
    text-align:left;
    padding:12px 14px;
    border-radius:14px;
    font-size:16px;
    font-weight:600;
  }

  .header-right-group nav a:hover{
    transform:translateX(4px);
  }

  .header-right{
    display:flex;
    flex-wrap:wrap;
    justify-content:flex-start;
    align-items:center;
    gap:10px;
    width:100%;
    margin-top:4px;
    padding-top:4px;
    border-top:1px solid rgba(31,67,188,0.08);
  }

  .header-right .social-link{
    width:40px;
    height:40px;
  }

  .header-right .login{
    width:auto;
    max-width:none;
    min-height:42px;
    border-radius:14px;
  }
}

@media (max-width:480px){
  body{
    padding-top:var(--header-height-mobile);
  }

  header{
    min-height:var(--header-height-mobile);
    padding:10px 14px;
  }

  .brand-logo{
    height:52px;
  }

  .menu-toggle{
    width:34px;
    height:34px;
    font-size:20px;
  }

  .header-right .login{
    width:100%;
    text-align:center;
  }
}
/* =========================================================
   HEADER CLEAN OVERRIDE BRIDGE
   ========================================================= */

@media (max-width:1100px){
  body{
    padding-top:var(--header-height-mobile) !important;
  }

  header{
    display:flex !important;
    align-items:center !important;
    justify-content:space-between !important;
    grid-template-columns:none !important;
    min-height:var(--header-height-mobile) !important;
    padding:10px 16px !important;
  }

  .brand{
    margin-left:0 !important;
    flex:1 1 auto !important;
    width:auto !important;
    justify-content:flex-start !important;
  }

  .brand-logo{
    height:58px !important;
    width:auto !important;
    max-width:100% !important;
    object-fit:contain !important;
  }

  .menu-toggle{
    display:flex !important;
  }

  .header-right-group{
    display:flex !important;
    position:absolute !important;
    top:100% !important;
    left:0 !important;
    right:0 !important;
    width:100% !important;
    flex-direction:column !important;
    align-items:stretch !important;
    padding:16px !important;

    opacity:0 !important;
    visibility:hidden !important;
    pointer-events:none !important;
    transform:translateY(-10px) scale(0.98) !important;
  }

  .header-right-group.open{
    opacity:1 !important;
    visibility:visible !important;
    pointer-events:auto !important;
    transform:translateY(0) scale(1) !important;
  }

  .header-right-group nav{
    display:flex !important;
    flex-direction:column !important;
    width:100% !important;
  }

  .header-right-group nav a{
    display:block !important;
    width:100% !important;
    text-align:left !important;
  }

  .header-right{
    display:flex !important;
    width:100% !important;
  }
}
/* =========================================================
   PROJECTS TAB1 - FIX RESPONSIVE CONTENUTO
========================================================= */

@media (max-width:1100px){
  .projects-page #tab1 .fleet-demo-entry-body{
    grid-template-columns:1fr !important;
    gap:16px !important;
  }

  .projects-page #tab1 .fleet-demo-entry-highlight,
  .projects-page #tab1 .fleet-demo-entry-actions{
    width:100% !important;
    max-width:100% !important;
    min-width:0 !important;
  }

  .projects-page #tab1 .fleet-demo-open-btn{
    width:100% !important;
    max-width:100% !important;
    min-width:0 !important;
  }
}

@media (max-width:768px){
  .projects-page #tab1,
  .projects-page #tab1 .content-card,
  .projects-page #tab1 .premium-card,
  .projects-page #tab1 .fleet-demo-entry{
    overflow:visible !important;
    height:auto !important;
    min-height:auto !important;
    max-height:none !important;
  }

  .projects-page #tab1 h3,
  .projects-page #tab1 h4,
  .projects-page #tab1 h5,
  .projects-page #tab1 p,
  .projects-page #tab1 li{
    max-width:100% !important;
    overflow-wrap:anywhere !important;
    word-break:break-word !important;
    white-space:normal !important;
  }
}
/* =========================================================
   PROSSIMA AREA DI PULIZIA: HERO + PAGE HEADER
========================================================= */
@media (max-width:768px){
  .page-header{
    padding:40px 16px 28px !important;
    min-height:auto !important;
  }

  .portfolio-page{
    padding:32px 16px 50px !important;
  }

  .page-intro h1{
    font-size:30px !important;
    line-height:1.14 !important;
    max-width:100% !important;
    word-break:break-word !important;
    overflow-wrap:anywhere !important;
  }

  .page-intro p{
    font-size:15px !important;
    line-height:1.6 !important;
    max-width:100% !important;
  }

  .premium-intro{
    margin-bottom:28px !important;
  }
}
/* =========================================================
   PULIZIA COMPONENTE: FLEET DEMO BUTTON + ENTRY
========================================================= */
.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-body{
  display:grid;
  grid-template-columns:minmax(280px, 1.2fr) minmax(260px, 0.9fr);
  gap:24px;
  align-items:center;
}

.fleet-demo-entry-highlight,
.fleet-demo-entry-actions{
  min-width:0;
}

.fleet-demo-open-btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:100%;
  max-width:300px;
  min-width:0;
  margin:14px 0;
  padding:14px 28px;
  border:none;
  border-radius:28px;
  background:linear-gradient(90deg,#5c83ff,#2955ff);
  color:#ffffff;
  text-decoration:none;
  font-family:inherit;
  font-size:16px;
  font-weight:500;
  letter-spacing:0.2px;
  line-height:1.2;
  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:left 0.6s 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);
}

@media (max-width:768px){
  .fleet-demo-entry{
    padding:18px;
    border-radius:20px;
    gap:18px;
  }

  .fleet-demo-entry-body{
    grid-template-columns:1fr;
    gap:16px;
  }

  .fleet-demo-entry-actions{
    width:100%;
  }

  .fleet-demo-open-btn{
    max-width:100%;
  }
}
/* =========================================================
   PULIZIA COMPONENTE: 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:36px;
}

.footer-left{
  min-height:1px;
}

.footer-brand{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:16px;
}

.footer-brand-logo{
  height:64px;
  width:auto;
  flex-shrink:0;
}

.footer-text{
  display:flex;
  flex-direction:column;
  justify-content:center;
  align-items:flex-start;
}

.footer-copy{
  white-space:nowrap;
  font-size:13px;
  color:#2c2c2c;
  line-height:1.4;
  font-weight:500;
  margin-top:0;
}

.footer-copy br{
  display:block;
  margin-bottom:4px;
}

.footer-legal{
  display:flex;
  justify-content:flex-end;
  align-items:center;
  gap:14px;
  flex-wrap:nowrap;
  white-space:nowrap;
  margin-left:120px;
  padding-right:14px;
}

.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;
}

.footer-separator{
  color:#9aa6c3;
  font-size:13px;
  margin:0 6px;
}

.footer-credit-inline{
  font-size:13px;
  color:#7a86a8;
  text-decoration:none;
  opacity:0.8;
  transition:all 0.25s ease;
}

.footer-credit-inline:hover{
  opacity:1;
  color:#2f5597;
}

@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-left{
    display:none;
  }

  .footer-brand{
    flex-direction:column;
    gap:10px;
  }

  .footer-brand-logo{
    height:58px;
  }

  .footer-text{
    align-items:center;
  }

  .footer-copy{
    white-space:normal;
    font-size:13px;
    text-align:center;
  }

  .footer-legal{
    margin-left:0;
    padding-right:0;
    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;
  }
}

/* ===== MOBILE ===== */
@media (max-width:768px){

  .hero{
    min-height:70vh;
    padding:60px 20px;
    justify-content:center;
    text-align:left;
  }

  .hero-text{
    max-width:100%;
  }

  .hero-text h1{
    font-size:30px;
    line-height:1.25;
  }

  .hero-text p{
    font-size:15px;
  }

  .hero-text .cta{
    width:100%;
    text-align:center;
  }
}

/* =========================================================
   PROGETTI - LARGHEZZA CONTENUTO UNIFORME
========================================================= */

@media (min-width:1025px){
  .projects-page .services-content{
    max-width:980px !important;
  }

  .projects-page .service-panel,
  .projects-page .content-card,
  .projects-page .premium-card{
    width:100% !important;
    max-width:980px !important;
  }
}
/* =========================================================
   RESET SICURO COMPONENTI PROGETTI
========================================================= */

.projects-page .service-panel{
  display: none;
}

.projects-page .service-panel.active{
  display: block;
}
/* =========================================================
   PROGETTI - CONTENITORE STABILE
========================================================= */

.projects-page .services-content{
  display: flex;
  flex-direction: column;
}

.projects-page .service-panel{
  width: 100%;
}
/* =========================================================
   PROGETTI - CARD CONTENUTO UNIFORME
========================================================= */

.projects-page .content-card,
.projects-page .premium-card{
  width:100%;
  max-width:100%;
  min-width:0;
  box-sizing:border-box;
}
/* =========================================================
   PROGETTI - TITOLI E TESTI SENZA STRETTEZZE
========================================================= */

.projects-page .premium-card h3,
.projects-page .premium-card p,
.projects-page .premium-card li,
.projects-page .panel-lead{
  max-width:100%;
  min-width:0;
  overflow-wrap:break-word;
}
/* =========================================================
   SERVIZI - CONTENITORE STABILE
========================================================= */

.services-page .services-content{
  display:flex;
  flex-direction:column;
}

.services-page .service-panel{
  width:100%;
}

.services-page .content-card,
.services-page .premium-card{
  width:100%;
  max-width:100%;
  min-width:0;
  box-sizing:border-box;
}
/* =========================================================
   BASE RESPONSIVE SICURA
========================================================= */

img,
video,
iframe{
  max-width:100%;
  height:auto;
}

.projects-page .premium-card,
.services-page .premium-card,
.projects-page .content-card,
.services-page .content-card{
  overflow-x:hidden;
}
/* =========================================================
   TABLET E MOBILE - LAYOUT SERVIZI / PROGETTI
========================================================= */

@media (max-width:1024px){
  .services-page .services-layout,
  .projects-page .services-layout{
    display:flex;
    flex-direction:column;
    gap:28px;
  }

  .services-page .services-sidebar,
  .projects-page .services-sidebar,
  .services-page .services-content,
  .projects-page .services-content{
    width:100%;
    max-width:100%;
  }

  .services-page .premium-sidebar,
  .projects-page .premium-sidebar{
    position:relative;
    top:auto;
  }
}
/* =========================================================
   SMARTPHONE - CARD E TESTI PIU' STABILI
========================================================= */

@media (max-width:768px){
  .services-page .premium-card,
  .projects-page .premium-card{
    padding:22px 16px;
    border-radius:22px;
    min-height:auto;
    height:auto;
  }

  .services-page .service-panel h3,
  .projects-page .service-panel h3{
    font-size:26px;
    line-height:1.2;
    max-width:100%;
    overflow-wrap:anywhere;
  }

  .services-page .panel-lead,
  .projects-page .panel-lead,
  .services-page .service-panel p,
  .projects-page .service-panel p,
  .services-page .service-panel li,
  .projects-page .service-panel li{
    font-size:15px;
    line-height:1.6;
    max-width:100%;
    overflow-wrap:anywhere;
  }

  .services-page .premium-feature-grid,
  .projects-page .premium-feature-grid{
    grid-template-columns:1fr;
    gap:12px;
  }
}

/* =========================================================
   CONSOLIDAMENTO AVANZATO: HEADER DEFINITIVO
========================================================= */
header{
  position:fixed;
  top:0;
  left:0;
  width:100%;
  z-index:2000;
}

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);
}

.brand{
  display:flex;
  align-items:center;
}

.brand-logo{
  display:block;
  max-width:100%;
  object-fit:contain;
}

.header-right-group{
  width:100%;
}

nav{
  margin:0;
}

.header-right{
  display:flex;
  align-items:center;
}

@media (min-width:1101px){
  body{
    padding-top:84px;
  }

  header{
    display:grid;
    grid-template-columns:auto 1fr;
    align-items:center;
    min-height:84px;
    padding:10px 24px 10px 40px;
  }

  .brand{
    margin-left:0;
    min-width:0;
    justify-content:flex-start;
  }

  .brand-logo{
    height:72px;
    width:auto;
  }

  .header-right-group{
    display:flex;
    align-items:center;
    justify-content:flex-end;
    gap:14px;
    max-width:none;
    flex-wrap:wrap;
  }

  nav{
    display:flex;
    align-items:center;
    justify-content:flex-end;
    gap:8px;
    flex-wrap:wrap;
  }

  .header-right{
    justify-content:flex-end;
    gap:8px;
    flex-wrap:nowrap;
    width:auto;
    margin:0;
    padding:0;
    border-top:none;
  }

  .menu-toggle{
    display:none;
  }
}

@media (min-width:1101px) and (max-width:1280px){
  .header-right .social-link{
    display:flex !important;
  }

  .login{
    padding:10px 14px;
    font-size:13px;
  }
}

@media (max-width:1100px){
  body{
    padding-top:82px !important;
  }

  header{
    display:flex !important;
    align-items:center !important;
    justify-content:space-between !important;
    min-height:82px !important;
    padding:10px 16px !important;
  }

  .brand{
    margin-left:0 !important;
    min-width:0 !important;
    flex:1 1 auto !important;
    width:auto !important;
    justify-content:flex-start !important;
  }

  .brand-logo{
    height:58px !important;
    width:auto !important;
  }

  .menu-toggle{
    display:flex !important;
    align-items:center !important;
    justify-content:center !important;
    width:36px !important;
    height:36px !important;
    margin-left:auto !important;
    border:none !important;
    background:transparent !important;
    color:#2f3a68 !important;
    font-size:22px !important;
    cursor:pointer !important;
    border-radius:12px !important;
    z-index:2100 !important;
  }

  .header-right-group{
    display:flex !important;
    position:absolute !important;
    top:100% !important;
    left:0 !important;
    right:0 !important;
    flex-direction:column !important;
    align-items:stretch !important;
    justify-content:flex-start !important;
    gap:14px !important;
    padding:16px !important;
    background:rgba(255,255,255,0.98) !important;
    backdrop-filter:blur(12px) !important;
    -webkit-backdrop-filter:blur(12px) !important;
    border-bottom:1px solid rgba(31,67,188,0.08) !important;
    border-bottom-left-radius:18px !important;
    border-bottom-right-radius:18px !important;
    box-shadow:0 16px 28px rgba(0,0,0,0.10) !important;
    opacity:0 !important;
    visibility:hidden !important;
    pointer-events:none !important;
    transform:translateY(-10px) scale(0.98) !important;
    transform-origin:top center !important;
    transition:
      opacity 0.28s ease,
      transform 0.28s ease,
      visibility 0.28s ease !important;
  }

  .header-right-group.open{
    opacity:1 !important;
    visibility:visible !important;
    pointer-events:auto !important;
    transform:translateY(0) scale(1) !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;
    font-size:16px !important;
    font-weight:600 !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;
    padding-top:4px !important;
    border-top:1px solid rgba(31,67,188,0.08) !important;
  }

  .header-right .social-link{
    width:40px !important;
    height:40px !important;
  }

  .header-right .login{
    width:auto !important;
    max-width:none !important;
    min-height:42px !important;
    border-radius:14px !important;
  }
}

@media (max-width:480px){
  header{
    padding:10px 14px !important;
  }

  .brand-logo{
    height:52px !important;
  }

  .menu-toggle{
    width:34px !important;
    height:34px !important;
    font-size:20px !important;
  }

  .header-right .login{
    width:100% !important;
    text-align:center !important;
  }
}
/* =========================================================
   CONSOLIDAMENTO: CARD CONTENUTO (FEATURE BOX)
========================================================= */

.feature-box{
  background:#ffffff;
  border-radius:16px;
  padding:18px;
  box-shadow:0 10px 22px rgba(20,30,80,0.08);
  display:flex;
  flex-direction:column;
  gap:8px;
  height:100%;
}

.feature-box h4{
  margin:0;
  font-size:16px;
  line-height:1.3;
}

.feature-box p{
  margin:0;
  font-size:14px;
  line-height:1.6;
}

/* =========================================================
   CONSOLIDAMENTO: GRID FEATURE
========================================================= */

.premium-feature-grid{
  display:grid;
  grid-template-columns:repeat(3, 1fr);
  gap:16px;
}

@media (max-width:1024px){
  .premium-feature-grid{
    grid-template-columns:repeat(2, 1fr);
  }
}

@media (max-width:768px){
  .premium-feature-grid{
    grid-template-columns:1fr;
  }
}

/* =========================================================
   CONSOLIDAMENTO: LAYOUT SIDEBAR + CONTENT
========================================================= */

.services-layout{
  display:grid;
  grid-template-columns:320px 1fr;
  gap:40px;
}

@media (max-width:1024px){
  .services-layout{
    grid-template-columns:1fr;
  }
}

/* =========================================================
   ALLINEAMENTO CONTENUTO PAGINE
========================================================= */

.services-content,
.projects-page .services-content{
  width:100%;
  max-width:100%;
}

/* =========================================================
   UNIFORMAZIONE LARGHEZZA CARD CENTRALE
========================================================= */

@media (min-width:1025px){
  .services-content{
    max-width:980px !important;
  }

  .service-panel,
  .content-card,
  .premium-card{
    width:100% !important;
    max-width:980px !important;
    margin-left:auto;
    margin-right:auto;
  }
}
/* =========================================================
   MENU ACCESSO PIATTAFORME
========================================================= */

.profile-access{
  position:relative;
  display:inline-flex;
  align-items:center;
}

.profile-access-toggle{
  border:none;
  cursor:pointer;
  gap:9px;
  font-family:inherit;
}

.profile-access-chevron{
  font-size:11px;
  transition:transform 0.22s ease;
}

.profile-access.open .profile-access-chevron{
  transform:rotate(180deg);
}

.profile-access-menu{
  position:absolute;
  top:calc(100% + 12px);
  right:0;
  width:360px;
  padding:10px;
  background:rgba(255,255,255,0.98);
  backdrop-filter:blur(14px);
  -webkit-backdrop-filter:blur(14px);
  border:1px solid rgba(41,85,255,0.12);
  border-radius:20px;
  box-shadow:0 22px 50px rgba(28,46,109,0.18);
  z-index:3000;
  opacity:0;
  visibility:hidden;
  pointer-events:none;
  transform:translateY(-8px) scale(0.98);
  transform-origin:top right;
  transition:opacity 0.2s ease, visibility 0.2s ease, transform 0.2s ease;
}

.profile-access.open .profile-access-menu{
  opacity:1;
  visibility:visible;
  pointer-events:auto;
  transform:translateY(0) scale(1);
}

.profile-access-title{
  padding:8px 10px 10px;
  font-size:12px;
  font-weight:800;
  color:#66739d;
  text-transform:uppercase;
  letter-spacing:0.7px;
}

.profile-access-item{
  display:flex;
  align-items:center;
  gap:12px;
  width:100%;
  min-height:62px;
  padding:10px 12px;
  border-radius:14px;
  color:#26325f;
  text-decoration:none;
  transition:background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.profile-access-item:hover{
  background:#f4f7ff;
  transform:translateX(3px);
}

.profile-access-icon{
  display:flex;
  align-items:center;
  justify-content:center;
  width:40px;
  height:40px;
  flex:0 0 40px;
  border-radius:12px;
  background:linear-gradient(135deg,#edf2ff,#dfe7ff);
  color:#315cff;
  font-size:16px;
}

.profile-access-text{
  display:flex;
  flex-direction:column;
  gap:3px;
  min-width:0;
  flex:1 1 auto;
}

.profile-access-text strong{
  font-size:14px;
  line-height:1.25;
  color:#26325f;
}

.profile-access-text small{
  font-size:12px;
  line-height:1.3;
  color:#7a86a8;
}

.profile-access-arrow{
  flex:0 0 auto;
  font-size:12px;
  color:#8b96b8;
  transition:transform 0.2s ease;
}

.profile-access-item:hover .profile-access-arrow{
  transform:translateX(3px);
  color:#315cff;
}

.profile-access-item-disabled{
  cursor:default;
  opacity:0.62;
}

.profile-access-item-disabled:hover{
  background:transparent;
  transform:none;
}

.profile-access-item-disabled .profile-access-icon{
  background:#f2f3f7;
  color:#8b94aa;
}

.profile-access-badge{
  flex:0 0 auto;
  padding:5px 7px;
  border-radius:999px;
  background:#eef1f7;
  color:#77819a;
  font-size:9px;
  line-height:1;
  font-weight:800;
  text-transform:uppercase;
  letter-spacing:0.3px;
}

@media (max-width:1100px){
  .profile-access{
    width:100%;
    display:flex;
    flex-direction:column;
    align-items:stretch;
  }

  .profile-access-toggle{
    width:100% !important;
    max-width:none !important;
    justify-content:center;
  }

  .profile-access-menu{
    position:relative;
    top:auto;
    right:auto;
    width:100%;
    margin-top:10px;
    padding:8px;
    border-radius:16px;
    box-shadow:0 12px 28px rgba(28,46,109,0.12);
    transform:translateY(-6px);
    transform-origin:top center;
    display:none;
    opacity:0;
    visibility:hidden;
    pointer-events:none;
  }

  .profile-access.open .profile-access-menu{
    display:block;
    opacity:1;
    visibility:visible;
    pointer-events:auto;
    transform:translateY(0);
  }

  .profile-access-title{
    padding:8px 8px 10px;
  }

  .profile-access-item{
    min-height:58px;
    padding:9px 10px;
  }

  .profile-access-icon{
    width:38px;
    height:38px;
    flex-basis:38px;
  }
}

@media (max-width:480px){
  .profile-access-menu{
    padding:7px;
  }

  .profile-access-item{
    gap:9px;
    padding:9px 8px;
  }

  .profile-access-icon{
    width:36px;
    height:36px;
    flex-basis:36px;
    font-size:14px;
  }

  .profile-access-text strong{
    font-size:13px;
  }

  .profile-access-text small{
    font-size:11px;
  }

  .profile-access-badge{
    padding:4px 6px;
    font-size:8px;
  }
}
