/* ! Reset */
body, html{ 
  font-family: "Inter", sans-serif;
  font-size: 16px; 
  box-sizing: border-box;
  margin: 0;padding: 0;
  background-color: var(--white-premium);
}
*,*:before,*:after{ box-sizing: border-box; }

*:focus,
*:focus-visible {
  outline: none !important;
  box-shadow: none !important;
}

h1,h2,h3,h4,h5,h6, p, ol, ul{margin: 0 0 1rem 0;padding: 0;}

ol,ul{list-style-type: none;}

img{height: auto;}

.pacifico{
  font-family: "Pacifico", cursive;
}

h1{
  font-size: 1px;
  width: 1px;height: 1px;
  overflow: hidden;
  position: absolute;
  clip: rect(1px, 1px, 1px, 1px);
  white-space: nowrap;
  top: -10000px;
}
h2{font-size: 3rem;margin-bottom: 0;line-height: 50px;} 
h3{font-size: 2rem;} 
h4{font-size: 1rem;} 
h5{font-size: 0.8rem;} 
h6{font-size: 0.6rem;}
a{text-decoration:none}

@media (max-width: 768px) {
  h2{font-size: 2.5rem;}
}

/* ─── CTA BUTTONS ─── */
.cta {
display: inline-flex;
align-items: center;
justify-content: center;
padding: 12px 28px;
border-radius: 999px;
font-size: 15px;
font-weight: 600;
text-decoration: none;
cursor: pointer;
transition: all 0.2s ease;
background-color: var(--black-premium);
color: var(--white-premium);
border: 1.5px solid transparent;
width: fit-content;
}

.cta:hover {
background-color: var(--black-soft-cta);
transform: translateY(-1px);
}

/* ─── CTA GHOST ─── */
.cta-ghost {
  width: fit-content;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 28px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s ease;
  background: transparent;
  color: var(--black-premium);
  border: 1.5px solid var(--gray-light);
}

.cta-ghost:hover {
  background: var(--white-muted);
  transform: translateY(-1px);
}

/* ─── CTA LIGHT ─── */
.cta-light {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 28px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s ease;
  background-color: var(--white-premium);
  color: var(--black-premium);
  border: 1.5px solid transparent;
}

.cta-light:hover {
  background-color: var(--white-soft);
  transform: translateY(-1px);
}

/* ─── CTA GHOST LIGHT ─── */
.cta-ghost-light {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 28px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s ease;
  background: transparent;
  color: var(--white-premium);
  border: 1.5px solid rgba(255, 255, 255, 0.25);
}

.cta-ghost-light:hover {
  background: rgba(255, 255, 255, 0.08);
  transform: translateY(-1px);
}

:root {
  /* ! Brand colors */
  --phonetastico-color: #ff3131;

  /* Menu */
  --menu-bg: #FFFFFF;
  --menu-color:  #0B0D12;

  /* White System */
  --white-premium: #FFFFFF;
  --white-soft: #f5f5f7;
  --white-muted: #EEF1F6;

  /* Black Premium System */
  --black-premium: #0B0D12;   /* hero, background principale */
  --black-soft: #12141A;      /* section scure */
  --black-muted: #1A1D24;     /* card scure */
  --black-soft-cta: rgb(28, 28, 28);
  
  /* Blue Trust */
  --blue-premium: #0A3D91;    /* colore principale di fiducia */
  --blue-soft: #E9F0FB;       /* sfondi chiari */
  --blue-accent: #2e75e8;     /* CTA, link, focus */
  --blue-deep: #081F4D;       /* testi scuri o sfondi profondi */
  --blue-muted: #2B4C7E;      /* testi secondari */

  /* Neutral Grays */
  --gray-light: #E5E7EB;
  --gray-medium: #6B7280;
  --gray-dark: #1F2937;
  --gray-deep: #111827;

  /* Status Colors */
  --success-trust: #16A34A;   /* verde fiducia */
  --warning-soft: #F59E0B;    /* arancione warning */
  --error-soft: #DC2626;      /* rosso errore */

  /* Shadow System */
  --shadow-soft: 0 10px 30px rgba(0, 0, 0, 0.1);
  --shadow-medium: 0 20px 50px rgba(0, 0, 0, 0.15);
  --shadow-deep: 0 30px 80px rgba(0, 0, 0, 0.25);

  /* ! RGB colors */
  /* Menu */
  --menu-bg-rgb: 29, 29, 31;
  --menu-color-rgb: 255, 255, 255;

  /* White System */
  --white-premium-rgb: 255, 255, 255;
  --white-soft-rgb: 245, 245, 247;
  --white-muted-rgb: 238, 241, 246;

  /* Black Premium System */
  --black-premium-rgb: 11, 13, 18;
  --black-soft-rgb: 18, 20, 26;
  --black-muted-rgb: 26, 29, 36;
  
  /* Blue Trust */
  --blue-premium-rgb: 10, 61, 145;
  --blue-soft-rgb: 233, 240, 251;
  --blue-accent-rgb: 31, 106, 225;
  --blue-deep-rgb: 8, 31, 77;
  --blue-muted-rgb: 43, 76, 126;

  /* Neutral Grays */
  --gray-light-rgb: 229, 231, 235;
  --gray-medium-rgb: 107, 114, 128;
  --gray-dark-rgb: 31, 41, 55;
  --gray-deep-rgb: 17, 24, 39;

  /* Status Colors */
  --success-trust-rgb: 22, 163, 74;
  --warning-soft-rgb: 245, 158, 11;
  --error-soft-rgb: 220, 38, 38;

  /* Shadow System */
  --shadow-soft-rgb: 0, 0, 0, 0.1;
  --shadow-medium-rgb: 0, 0, 0, 0.15;
  --shadow-deep-rgb: 0, 0, 0, 0.25;
}

/* =========================
   HEADER
========================= */
.header{
  user-select: none;
  height: 45px;
  display: flex;
  align-items: center;
  background-color: rgba(var(--menu-color-rgb), 0.8);
  backdrop-filter: blur(7.5px);
  -webkit-backdrop-filter: blur(10px);
  position: fixed;
  top:0;
  left:0;
  z-index: 9999;
  width: 100%;
  padding: 0;
  transition: background-color 0.2s ease;
  border-bottom: 1px solid #00000013;
}

.header:hover{
  background-color: rgba(var(--menu-color-rgb), 1);
}

.header__content{
  max-width: 1000px;
  height: 100%;
  width: 100%;
  margin: 0 auto;
  display: flex;
  justify-content: center;
  align-items: center;
}

.header__logo img{
  height: 28px;
  width: auto;
}

.header__logo,
.header__quick{
  display: flex;
  justify-content: center;
  align-items: center;
  width: fit-content;
}

.header__quick{
  gap: 12px;
}

.header__quick a img{
  height: 14px;
  opacity: 0.8;
}

/* =========================
   MENU
========================= */
.header__menu{
  padding: 0;
  margin: 0 20px;
  width: fit-content;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 18px;
}

.header__menu li{
  display: inline-block;
  position: relative;
}

.header__quick .header_menu-accountBtn button{
  border: none;
  width: fit-content;
  height: fit-content;
  background-color: transparent;
  margin: 0;padding: 0;
  transform: translateY(2px);
}

.header__quick .header_menu-accountBtn button:hover{
  cursor: pointer;
}

.header__menu li a{
  color: var(--menu-color);
  opacity: 0.8;
  display: block;
  padding: 5px;
  font-size: 13px;
}

/* =========================
   HOVER PER OGNI LI
========================= */
.hover-box{
  position: absolute;
  top: 40px;
  left: 50%;
  transform: translateX(-50%);
  min-width: 40px;
  background-color: rgba(var(--menu-color-rgb), 0.99);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 100;
  border-radius: 10px;
  gap: 6px;
  padding: 10px;
  border: 1px solid #00000013;
}

.hover-box a{
  color: var(--menu-color);
  margin: 0;
  text-align: left;
  width: 100%;
  border-radius: 6px;
  transition: background-color 0.3s ease;
  padding: 3px;
}
.hover-box a:hover{
  background-color: rgba(var(--gray-light-rgb), 0.37);
}

/* ! BackBtnMobile */
.header__menu-backBtn-container{
  display: none;
}

.header__menu-backBtn{
  fill: var(--gray-medium);
}

/* Visibile solo con classe active gestita dal JS */
.hover-box.active {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(-50%);
}

.hover-box-mobile{
  display: none;
}
/* =========================
   MOBILE
========================= */
@media (max-width: 768px){
  .hover-box-mobile{display: block;}
  .hover-box-mobile{width: 100%;display: flex;flex-direction: column;gap: 15px;font-size: 13px;font-weight: 600;}
  .hover-box-mobile a{color: var(--gray-medium);}

  .hover-box{display: none;}

  .header{
    border-bottom: 1px solid var(--gray-light);
    padding: 10px;
  }

  .header__content{
    width: 100%;
    max-width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 45px;
  }

  .header__menu{
    width: 100%;
    margin-left: 0;
    padding-left: 40px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    position: absolute;
    top: 0;
    left: 0;
    background-color: var(--menu-bg);
    height: 0;
    overflow: hidden;
    opacity: 0;
    transition: all 1s cubic-bezier(.215,.1,.355,1), opacity 0.5s ease;
  }

  .header__logo{
    padding-left: 5px;
  }

  .header__logo img{
    height: 30px;
    width: auto;
   }

  .header__quick{
    display: flex;justify-content: right;align-items: center;
    gap: 18px;
    padding: 0px 10px 0px 0px;
  }

  .menu-open .header__menu{
    opacity: 1;
    height: 100vh;
    padding-top: 50px;
  }

  .header__menu li{
    width: 50%;
    margin-right: 50%;
    font-weight: 650;
    margin-top: 15px;
  }

  .header__menu li a:hover{
    cursor: pointer;
  }
  
  #account-btn svg{
    height: 18px;width: 18px;
  }

  .icon-hamburger{
    height: fit-content;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transform: translateY(-5px);
  }
  .icon-hamburger:hover{
    cursor: pointer;
  }

  .icon-hamburger span{
    height: 1px;
    width: 17px;
    background: var(--menu-color);
    margin-top: 10px;
    transition: all 0.2s cubic-bezier(.215,.61,.380,1);
  }

  .menu-open .icon-hamburger span:nth-child(1){
    transform: rotate(45deg) translate(4px,4px);
  }

  .menu-open .icon-hamburger span:nth-child(2){
    transform: rotate(-45deg) translate(4px,-4px);
  }

 .menu-items-content {
  width: 100%;
  opacity: 1;
  transform: translateX(0); /* posizione normale */
  transition: opacity 0.5s ease, transform 0.5s ease; /* dissolve + sposta */
  pointer-events: auto; /* cliccabile di default */
  }

  .menu-open{overflow-y: hidden;}

  /* ! BackBtnMobile */
  .header__menu-backBtn-container{
    width: 100%;
    height: 40px;
    display: flex;align-items: center;
  }

  .hover-box_riparazioniContent, .hover-box_prezziContent, .hover-box_serviziContent, .hover-box_supportoContent{
    position: absolute;top: 125px;left: 55px;opacity: 0;z-index: -1;transition: all 0.5s ease;
  }

  /* ! Pulsante */
  .header__menu-backBtn{
    opacity: 0;
    margin-left: 20px;
    transform: translateX(0px);
    transition: opacity 0.3s ease, margin-left 0.5s ease, transform 0.5s ease;
  }
  .header__menu-backBtn:hover{
    cursor: pointer;
    transform: translateX(-5px);
  }

  /* ! Comparse/scomparse */
  .disappear {
  opacity: 0;
  transform: translateX(-20px); /* spostamento a sinistra */
  pointer-events: none; /* non cliccabile quando sparisce */
  }
  .header-btn-active{
    opacity: 1;
    margin-left: 0;
  }
  
  .hover-box_active{
    opacity: 1;left: 40px;z-index: 1;
  }
}

@media (max-width: 600px){
  .menu-open{
    overflow-y: hidden;
  }
}

.header__menu li .mobile-home-header-btn{
    display: none;
}
@media (max-width: 768px) {
  .header__menu li .mobile-home-header-btn{
    display: block;
  }
}

/* ! Footer */
.footer-justfix {
  background-color: var(--white-soft);
  color: var(--black-muted);
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  line-height: 1.5;
  padding: 40px 20px 20px;
}

.footer-justfix a {
  color: var(--black-premium);
  text-decoration: none;
  opacity: 0.8;
}

.footer-justfix a:hover {
  opacity: 1;
}

.footer-legal {
  max-width: 800px;
  margin: 0 auto 30px;
  text-align: left;
}

.footer-legal p {
  margin: 8px 0;
}

.footer-sitemap {
  display: flex;
  justify-content: left;
  flex-wrap: wrap;
  gap: 60px;
  max-width: 800px;
  margin: 0 auto;
}

.sitemap-column h4 {
  font-weight: 600;
  margin-bottom: 4px;
  color: var(--black-premium);
}

.sitemap-column ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.sitemap-column li {
  margin: 1px 0;
}

@media (max-width: 768px) {
  .footer-sitemap {
    flex-direction: column;
    gap: 20px;
  }
}

.developerMiniBanner{
  padding: 2px;
  text-align: center;
  color: var(--white-muted);
  user-select: none;
  width: 100%;height: fit-content;
  position: relative;
  font-size: 13px;
}
.developerMiniBanner p{
  position: relative;z-index: 2;
  width: fit-content;margin: 0 auto;
}
.developerMiniBanner a{
  position: absolute;z-index: 4;
  left: 0;top: 0;
  width: 100%;height: 100%;
}
.developerMiniBanner img{
  position: absolute;z-index: 1;
  height: 100%;width: 100%;left: 0;top: 0;
}












/* ! ---------
UI styles 
------------*/

.ui-accesso-completato{display: none;}
.nascosto{display: none;}
.body-overflow-remove {overflow: hidden;}
.ui-hidden{opacity: 0;pointer-events: none;}

.closeBtn {
  position: absolute;
  top: 20px;
  right: 20px;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--gray-medium);
  transition: color 0.2s ease;
  padding: 4px;
}

.closeBtn:hover {
  color: var(--black-premium);
}

/* ! UI LOGIN & REGISTER */

.ui-loginNDregister {
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    position: fixed;
    z-index: 99999999999;
    background-color: rgba(0, 0, 0, 0.552);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 1;
    pointer-events: all;
    transition: opacity 0.4s ease-in-out;
}

.ui-panel-login {
    height: auto;
    width: 90%;
    max-width: 480px;
    border-radius: 24px;
    background-color: var(--white-premium);
    box-shadow: 0px 0px 40px 10px rgba(0, 0, 0, 0.2);
    padding: 40px 40px 40px 40px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    position: relative;
}
.ui-panel-login .cta{margin: 0 auto;}

.ui-panel-login h3 {
  text-align: center;
    font-size: 26px;
    font-weight: 800;
    color: var(--black-premium);
    letter-spacing: -0.02em;
  margin-bottom: 5px;
}

.ui-panel-login .sottotitolo {
    font-size: 14px;
    color: var(--gray-medium);
    margin-top: 0px;margin-bottom: 10px;
    text-align: center;
    margin-top: -15px;
}

#formLogin {
    display: flex;
    flex-direction: column;
    gap: 17px;
}

.ui-panel-login .campo {
    position: relative;
    display: flex;
    flex-direction: column;
}

.ui-panel-login .campo label {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 15px;
    color: var(--gray-medium);
    pointer-events: none;
    transition: all 0.18s ease;
    z-index: 2;
    padding: 0 4px;
    border-radius: 4px;
}

.ui-panel-login .label-style {
    width: 100%;
    padding: 22px 16px 10px 16px;
    border-radius: 12px;
    border: 1px solid rgba(0, 0, 0, 0.15);
    background: var(--white-premium);
    color: var(--black-premium);
    font-size: 15px;
    font-family: inherit;
    transition: all 0.2s ease;
    outline: none;
    position: relative;
    z-index: 1;
}

.ui-panel-login .label-style:focus + label,
.ui-panel-login .label-style:not(:placeholder-shown) + label {
    top: 9px;
    left: 13px;
    transform: translateY(0);
    font-size: 11px;
    font-weight: 600;
    color: var(--blue-accent);
}

.ui-panel-login .label-style:hover {
    border-color: rgba(0, 0, 0, 0.375);
}

.ui-panel-login .label-style:focus {
    border-color: var(--blue-accent);
    background: var(--white-premium);
    box-shadow: 0 0 0 3px rgba(var(--blue-accent-rgb), 0.15);
}

.ui-panel-login .label-style::placeholder {
    color: rgba(0, 0, 0, 0.076);
}

.ui-panel-login .label-style.errore {
    border-color: var(--error-soft);
    background: rgba(var(--error-soft-rgb), 0.04);
    box-shadow: 0 0 0 3px rgba(var(--error-soft-rgb), 0.12);
}

.ui-panel-login .label-style.errore:focus,
.ui-panel-login .label-style.errore:hover {
    border-color: var(--blue-accent);
    background: var(--white-premium);
    box-shadow: 0 0 0 3px rgba(var(--blue-accent-rgb), 0.15);
}

.ui-panel-login .separatore {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--gray-medium);
    font-size: 13px;
}

.ui-panel-login .separatore::before,
.ui-panel-login .separatore::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--gray-light);
}

.ui-panel-login .link-registrati {
    font-size: 14px;
    color: var(--gray-medium);
    text-align: center;
}

.ui-panel-login .link-registrati a {
    color: var(--black-premium);
    text-decoration: none;
    font-weight: 600;
}

.ui-panel-login .link-registrati a:hover {
    color: var(--blue-accent);
    text-decoration: underline;
}

.ui-panel-login #esito-login {
    font-size: 13px;
    padding: 12px 14px;
    border-radius: 10px;
    text-align: center;
}

.ui-panel-login #esito-login.esito-errore {
    background: rgba(var(--error-soft-rgb), 0.08);
    color: var(--error-soft);
    border: 1px solid rgba(var(--error-soft-rgb), 0.2);
}

.ui-panel-login #esito-login.esito-successo {
    background: rgba(var(--success-trust-rgb), 0.08);
    color: var(--success-trust);
    border: 1px solid rgba(var(--success-trust-rgb), 0.2);
}

@media (max-width: 600px) {
    .ui-panel {
        padding: 32px 24px;
        border-radius: 20px;
    }
    .ui-panel h2 {
        font-size: 22px;
    }
}

/* ! account panel */
.ui-panel-managment{
  height: auto;
  width: 90%;
  max-width: 480px;
  border-radius: 24px;
  background-color: var(--white-premium);
  box-shadow: 0px 0px 40px 10px rgba(0, 0, 0, 0.2);
  padding: 40px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  opacity: 1;
  position: relative;
}

/* ! managment panel */

.ui-panel-managment h3 {
    text-align: center;
    font-size: 26px;
    font-weight: 800;
    color: var(--black-premium);
    letter-spacing: -0.02em;
}

.mgmt-avatar {
  user-select: none;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background-color: var(--blue-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
}

.mgmt-avatar span {
  font-size: 26px;
  font-weight: 800;
  color: white;
  text-transform: uppercase;
}

.mgmt-info {
  display: flex;
  flex-direction: column;
  gap: 0;
  border: 1px solid rgba(0,0,0,0.1);
  border-radius: 16px;
  overflow: hidden;
}

.mgmt-info-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 18px;
  gap: 12px;
}

.mgmt-info-row:not(:last-child) {
  border-bottom: 1px solid rgba(0,0,0,0.07);
}

.mgmt-info-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--gray-medium);
}

.mgmt-info-value {
  font-size: 14px;
  color: var(--black-premium);
  font-weight: 500;
  text-align: right;
  word-break: break-all;
}

.cta-logout {
  margin: 0 auto;
}

.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  background: var(--black-premium);
  color: var(--white-premium);
  padding: 20px 20px 14px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  z-index: 9999;
  font-size: 13px;
  width: fit-content;
  border-radius: 0px 30px 0px 0px;
}

.cookie-banner a {
  color: var(--blue-accent);
  text-decoration: underline;
}

.cookie-banner p{
  margin-bottom: 0;
}

.cookie-banner.nascosto {
  display: none;
}

/* ! ---------
UI Uni styles 
------------*/
.ui-accesso-completato{display: none;}
.nascosto{display: none;}
.body-overflow-remove {overflow: hidden;}
.ui-hidden{opacity: 0;pointer-events: none;}