/*
Theme Name: PA Gestionale
Author: Custom
Version: 4.1 PREMIUM CLEAN
*/

/* ================= ROOT ================= */

:root {
  --blue: #1e3a8a;
  --blue-soft: #3b5fc0;
  --yellow: #fbbf24;
  --text: #1f2937;
  --light: #f1f5f9;
  --section: #eef2f7;
}

/* ================= GLOBAL ================= */

* {
  transition: all 0.25s ease;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial;
  color: var(--text);
  background: linear-gradient(
    180deg,
    #ffffff 0%,
    #f1f5f9 40%,
    #e2e8f0 100%
  );
  line-height: 1.6;
}

body.home {
  background: radial-gradient(
    circle at top,
    #f8fafc,
    #e2e8f0
  );
}

.container {
  width: 95%;
  max-width: 1400px;
  margin: auto;
}

p {
  color: #4b5563;
}

h1, h2, h3 {
  color: #111827;
}

img {
  max-width: 100%;
  height: auto;
}


/* ================= HEADER ================= */


.site-header {
position: sticky;
    top: 1%;
    z-index: 999;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(3px);
    border-bottom: 2px solid #e5e7eb05;
    border-radius: 3rem;
    width: 95%;
    margin: 0 auto;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
 
}

.logo img {
  height: auto;
	max-height: 80px;
  width: 20%;
  display: block;
padding: 3%;
}

.logo {
  flex-shrink: 0;
}
.logo-link {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.logo-text {
  font-size: 20px;
  font-weight: 600;
  color: #1e3a8a;
}

@media (max-width: 768px) {
    
  .logo img {
    max-height: 80px;
  }
}



/* ================= MENU ================= */

.main-nav ul {
  list-style: none;
  gap: 50px;
}

@media (min-width: 768px) {
  .main-nav ul {
    display: flex;
    gap: 25px;
  }
}

.main-nav a {
  text-decoration: none;
  color: var(--text);
  font-weight: 500;
  position: relative;
}

.main-nav a::after {
    content: "";
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0%;
    height: 3px;
    background-image: linear-gradient(92deg, rgb(8 50 152) -0.4%, rgb(75 167 244) 106.1%);
    transition: 0.3s;
}

.main-nav a:hover::after {
  width: 100%;
}

.main-nav {
  flex-shrink: 0;
}

.main-nav {
  position: relative;
}
/* ================= BUTTON ================= */

.btn-primary {
  display: inline-block;
  padding: 12px 22px;
  background: var(--blue);
  color: white;
  text-decoration: none;
  border-radius: 6px;
}

.btn-primary:hover {
  background: var(--blue-soft);
}

.btn-outline {
  border: 2px solid var(--blue);
  color: var(--blue);
  padding: 12px 20px;
  border-radius: 6px;
  text-decoration: none;
}

.btn-outline:hover {
  background: var(--blue);
  color: white;
}

/* ================= SECTIONS ================= */

.section {
  padding: 90px 0;
background: transparent;
}

.section.alt {
  background: rgba(255,255,255,0.7);
  backdrop-filter: blur(5px);
}

.section-title {
  text-align: center;
  margin-bottom: 40px;
  font-size: 28px;
}

/* ================= GRID ================= */

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 25px;
}

/* ================= RIVENDITORE ================= */

.rivenditore-section {
  background: #f8fafc;
  text-align: center;
}

.rivenditore-sub {
  max-width: 700px;
  margin: 0 auto 40px;
  color: #6b7280;
  font-size: 16px;
}

/* BOX */
.rivenditore-box {
  background: white;
  padding: 40px;
  border-radius: 16px;

  border: 1px solid #e5e7eb;

  display: flex;
  justify-content: center;
  align-items: center;
  gap: 40px;

  flex-wrap: wrap;
}

/* LOGHI */
.rivenditore-box img {
  max-height: 80px;
  object-fit: contain;

  transition: 0.3s;
}

.rivenditore-box img:hover {
  transform: scale(1.05);
}

/* ================= CIVILIA ================= */

.civilia-split {
    padding-top: 5%!important;
  background: #f8fafc;
}

.civilia-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

@media (max-width: 768px) {
    .civilia-grid {
    display: block;
    }
}

.civilia-left h2 {
margin-bottom: 10px;
}

.civilia-desc {
  font-size: 18px;
  margin-bottom: 25px;
}

.civilia-buttons {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
}

.civilia-right img {
  border-radius: 12px;
  box-shadow: 0 25px 50px rgba(0,0,0,0.1);
}

.civilia-right img:hover {
  transform: scale(1.03);
}

.civilia-title {
  font-size: 38px;
  color: #00143e;
  font-weight: 700;
}

@media (max-width: 768px) {
    .civilia-title {
         font-size: 50px;
         text-align: center;
    }
    
    .civilia-desc {
  font-size: 20px;
  margin-bottom: 30px;
}

.civilia-buttons {
display: flex;
  gap: 20px;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  align-content: center;
}

.civilia-right img {
border-radius: 5%;
  box-shadow: 0px 25px 50px rgba(0,0,0,0.2);
  margin-top: 5%;
}

    
}

/* Next arancione */
.civilia-title span {
  color: #f97316;
}

/* ================= AZIENDA ================= */

.azienda-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.azienda-left img {
  border-radius: 15px;
  box-shadow: 0 20px 40px rgba(0,0,0,0.08);
}

.azienda-img { order: 1; margin: 2%; }
.azienda-text { order: 2; }

.azienda-img img:hover {
  transform: scale(1.05);
  border-radius: 5%;
}

/* testo */
.azienda-desc {
  margin-bottom: 5%;
  max-width: 600px;
}

/* bottone */
.read-more-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;

  margin: 15px 0 25px 0;

  color: #1e3a8a;
  font-weight: 600;
  text-decoration: none;

  position: relative;
}

/* linea animata */
.read-more-link::after {
  content: "";
  position: absolute;
  bottom: -3px;
  left: 0;
  width: 0%;
  height: 2px;
  background: #1e3a8a;
  transition: 0.3s;
}

.read-more-link:hover::after {
  width: 100%;
}

.read-more-link:hover {
  transform: translateX(3px);
}

/* punti */
.azienda-points {
  margin-top: 5%;
  margin-bottom: 5%;
  width: fit-content;
}

.azienda-points div {
  gap: 5%;
}

@media (max-width: 768px) {

    .azienda-grid {
        display: block;
    }
    
    .azienda-text h2 {
        color: #111827;
  text-align: center;
  font-size: xx-large;
  font-weight: bold;
    }
    
.azienda-desc {
  margin-bottom: 10%;
  max-width: 600px;
}


    .azienda-text a {
        display:flex;
        justify-content: center;
        align-items: center;
    }
    
    .azienda-points {
margin-top: 5%;
  margin-bottom: 5%;
  width: auto;
  display: flex;
}

.azienda-points div {
  gap: 5%;
}
    
}
/* ================= SERVIZI ================= */

.reparti-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;

  max-width: 100%;
  margin: 0 auto; /* centra tutto */
  padding: 2%;
  margin-bottom: 3rem;

}

/* CARD LINK */
.reparto-card {
  text-decoration: none;
  color: inherit;
  display: flex;
}

/* CARD */
.reparto-inner {
  background: white;
  padding: 30px;
  border-radius: 20px;
  border: 1px solid #e5e7eb;

  display: flex;
  flex-direction: column;

  width: 100%;
  height: 100%; /* tutte uguali */
}

/* TESTO */
.reparto-inner h3 {
  margin-bottom: 15px;
  font-size: 18px;
}

.reparto-inner p {
  flex-grow: 1; /* riempie lo spazio */
  font-size: 14px;
  line-height: 1.5;
}

/* HOVER */
.reparto-inner:hover {
  transform: translateY(-6px);
  border-color: var(--blue);
  box-shadow: 0 15px 35px rgba(0,0,0,0.08);
}

@media (max-width: 768px) {
    .reparti-grid {
    display: flex;
    max-width: 58%;
    justify-content: center;
    align-content: center;
    flex-wrap: wrap;
    }
    
    .reparto-card {
      display: flex;
      text-align: center;
    }
    
    .reparto-inner {
background: white;
  padding: 20px;
  border-radius: 10%;
  border-top: 2px solid #e5e7ec;
  width: 100%;
  height: 100%;
    }
    
    .reparto-inner p {
        display:none;
        
    }
}


/* ================= FAQ ================= */

.faq {
  max-width: 800px;
  margin: auto;
}

.faq-item {
  border-bottom: 1px solid #e5e7eb;
  padding: 15px 0;
}

.faq-question {
  cursor: pointer;
  font-weight: 600;
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
}

.faq-item.active .faq-answer {
  max-height: 300px;
  margin-top: 10px;
}

/* ================= MAPPA ================= */

#enti-map { width: 100%; height: 500px; border-radius: 3%; margin-top: 3%; z-index: 0;}

@media (max-width: 768px) {

    #enti-map {
    width: 95%;
      height: 250px;
      border-radius: 3%;
      display: flex;
      justify-content: center;
      align-content: center;
      margin: 0 auto;
        margin-top: 0px;
      margin-top: 20%;
    }
    
}

/* ================= CONTATTI ================= */

/* GRID */

.contact-main {
  display: grid;
  grid-template-columns: repeat(4,1fr);
  gap: 25px;
}

/* CARD */
.contact-card {
  position: relative;

  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(8px);

  padding: 30px;
  border-radius: 16px;

  border: 1px solid rgba(0,0,0,0.05);

  text-align: center;


  transition: all 0.3s ease;
}

/* HOVER */
.contact-card:hover {
  transform: translateY(-8px) scale(1.02);

  box-shadow: 
    0 20px 40px rgba(0,0,0,0.08),
    0 5px 15px rgba(0,0,0,0.05);

  border-color: #1e3a8a;
}

/* ICONA (IMPORTANTE) */
.contact-card h3 {
  font-size: 18px;
  margin-bottom: 10px;
  color: #1e3a8a;
}

/* TESTO */
.contact-card p {
  font-size: 14px;
  color: #4b5563;
}

/* ================= AREE ================= */

.areas-grid {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 1rem;
}

.area-inner {
  background: white;
  padding: 30px;
  border-radius: 12px;
  border: 1px solid #e5e7eb;
  min-height: 18vh;
}

.area-inner:hover {
  transform: scale(1.1);
  border-color: var(--blue);
}

@media (max-width: 768px) {
    
    .contact-top h1{
        text-align: center;
    }
    
    .contatti-box {
        text-align: center;

    }
    
    .areas-grid {
      display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    
    .area-inner {
    background: white;
    padding: 1rem;
    border-radius: 2rem;
    border: 1px solid #e5e7eb;
    min-height: auto;
    }
    
    .area-card {
        display: grid;
        text-align: center;

    }
    
    .area-inner p{
        display: none;
    }
}

/* ===== BOX AREA SUPPORTO ===== */

.supporto-box {
  margin-top: 3rem;
  padding: 1%;
  background: rgba(255,255,255,0.9);
  border-radius: 2rem;
  border: 1px solid #e5e7eb;
}

/* TITOLO */
.supporto-title {
  font-size: x-large;
  color: #4b5563;
}

/* GRID INTERNA */
.supporto-grid {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 15px;
  padding: 2%;
}


/* ================= DIPENDENTI ================= */
.dipendenti-grid {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 25px;
}

.dipendente-card {
  background: white;
  padding: 20px;
  border-radius: 10px;

  border: 1px solid #e5e7eb;

  display: flex;
  gap: 15px;
  align-items: center;
}

@media (max-width: 768px) {
    .dipendenti-grid {
        display: flex;
        gap: 25px;
        flex-direction: column;
    }
    
    .dipendente-card {
      background: white;
      padding: 20px;
      border-radius: 30px;
      border: 1px solid #e5e7eb;
      display: flex;
      gap: 15px;
      align-items: center;
      justify-content: center;
    }
    
    .supporto-grid {
grid-template-columns: repeat(2,1fr);
    }
    
    .supporto-title {
        text-align: center;
}
    
}


/* SEZIONE  PARTNER*/
.partner-section {
  background: #f8fafc;
  text-align: center;
}


.partner-block {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 50px;
  margin-top: 40px;
}

/* TOP (PIÙ GRANDI) */
.partner-top img {
  height: 70px;
}

/* STANDARD */
.partner-block img {
  height: 55px;
  object-fit: contain;

  /* RIMOSSO GRIGIO */
  filter: none;
  opacity: 1;

  transition: all 0.3s ease;
}

/* HOVER */
.partner-block img:hover {
  transform: scale(1.08);
}

/* ===== FOOTER ===== */
.site-footer {
    background: #023da7;
  width: 100%;
  display: grid;
  justify-content: space-around;
}

/* GRID */
.footer-grid {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 10px;
  align-items: baseline;
}

/* LOGO */
.footer-logo img {
  max-height: 60px;
}

.footer-logo img:hover {
  transform: scale(1.5);
}

/* BRAND */
.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* TITOLI */
.footer-col h3 {
  color: white;
  font-size: 20px;
  margin-bottom: 10px;
}

.footer-col h4 {
  color: #ffffff;
  font-size: 24px;
  margin-bottom: 12px;
}

.footer-col h5 {
  color: #ffffff;
  font-size: 24px;
  margin-bottom: 12px;
}

/* TESTO */
.footer-desc {
  font-size: 14px;
  color: #cbd5e1;
}

/* LINK */
.footer-links {
  list-style: none;
  padding: 0;
}

.footer-links li {
margin-bottom: 8px;
}

.footer-links a {
  color: #cbd5e1;
  text-decoration: none;
  transition: 0.2s;
}

.footer-links a:hover {
  color: white;
}

/* CONTATTI */
.footer-contact p {
  font-size: 18px;
  margin-bottom: 10px;
  color: #cbd5e1;
  text-wrap: nowrap;
}

.footer-contact span {
  margin-right: 6px;
}
.footer-contact a {
  color: #cbd5e1;
  text-decoration: none;
}

.footer-contact a:hover {
  color: #ffffff;
  text-decoration: underline;
}
/* BOTTOM */
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  margin-top: 30px;
  padding: 15px 0;
  text-align: center;
  font-size: 13px;
  color: #9ca3af;
}


.footer-orari h5 {
  color: #ffffff;
  margin-top: 15px;
  margin-bottom: 6px;
}

.footer-orari p {
  color: #ffffff;
  margin-top: 15px;
  margin-bottom: 6px;
}


@media (max-width: 768px) {
  .footer-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }
  
  .footer-contact p {
    text-wrap: wrap;
    }
}


/* ===== HAMBURGER NASCOSTO DESKTOP ===== */
.menu-toggle {
    display: none;
}

.menu-toggle img {
    width: 1.5rem;
    height: auto;
}

  @keyframes sca-rot-hamburger {
      0% {
          transform: scale(1) rotate(0deg);
      }
      50% {
          transform: scale(1.3) rotate(90deg);
      }
      100% {
          transform: scale(1) rotate(0deg);
      }
  }

/* ===== MOBILE ===== */
@media (max-width: 768px) {

  /* mostra hamburger */
  .menu-toggle {
    display: flex;
    justify-content: center;

  }
  
    .menu-toggle:active {
        background-color: #99bce9;
        animation-name: sca-rot-hamburger;
        animation-duration: 1s;
        border-radius: 0.5rem;
  }
  
     .menu-toggle:active img {
        animation-name: sca-rot-hamburger;
        animation-duration: 1s;
        height: auto;
    }
  

  
  
  /*
  .menu-toggle:active {
        background-color: #99bce9;
        transform: scale(1.3) rotate(45deg);
        border-radius: 0.5rem;
  }

    .menu-toggle:active img {
        width: 2rem;
        height: auto;
    }
    */

  /* menu chiuso */
  .main-nav {
    display: none;
  }

  /* menu aperto */
  .main-nav.active {
        display: flex;
        position: fixed;
        top: 115%;
        right: 0%;
        width: 50vw;
        height: fit-content;
        background: #f5f5f5;
        padding: 5%;
        flex-direction: column;
        box-shadow: -7px 7px 20px 6px rgb(129 173 227 / 36%);
        transition: right 1s ease;
        border-radius: 5% 0% 0% 5%;
        z-index: 9999;
  }

  /* lista */
  .main-nav ul {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: flex-start;
  }
}




/* ================= QUALITA ================= */

.qualita-intro {
  max-width: 800px;
  margin: auto;
  text-align: center;
  font-size: 16px;
}

.qualita-actions {
    display: flex;
    justify-content: center;
    margin: 2%;
}


/* DOCUMENTI */
.documenti-grid {
  display: grid;
  grid-template-columns: repeat(2,1fr);
  gap: 25px;
  margin-top: 30px;
}

.doc-card {
  display: block;
  background: white;
  padding: 25px;
  border-radius: 12px;
  border: 1px solid #e5e7eb;
  text-decoration: none;
  color: inherit;
  transition: 0.3s;
}

.doc-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(0,0,0,0.08);
  border-color: #1e3a8a;
}

/* VALUTAZIONE */


.valutazione-box {
  margin-top: 60px;
  background: #f8fafc;
  padding: 40px;
  border-radius: 16px;
  text-align: center;
}

.valutazione-box h2 {
  margin-bottom: 10px;
}

.valutazione-box p {
  margin-bottom: 20px;
}

/* HERO REPARTO */

.reparto-hero {
  background: #1e3a8a;
  padding: 80px 0;
  text-align: center;
}

.reparto-hero h1 {
  color: white;
  font-size: 36px;
  margin-bottom: 10px;
}

.reparto-hero p {
  color: #cbd5e1;
  max-width: 600px;
  margin: auto;
}

.avviso-home {
    background-image: linear-gradient(110deg, rgb(187 187 187) 11.3%, rgba(239, 238, 249, 1) 91.7%);
  color: white;
  padding: 2%;
}

.avviso-box {
    display: flex;
    align-items: center;
    gap: 10%;
    justify-content: center;
}

.avviso-img img{
  border-radius: 1rem;
  max-width: 200px;
}


@media (max-width: 768px) {
    
    .avviso-home {
        margin-top:1%;
        margin-left:1%;
        margin-right:1%;
        border-radius:2%;
        padding: 2%;
        background-image: linear-gradient(180deg, rgb(187 187 187) 11.3%, rgba(239, 238, 249, 1) 91.7%);
    }

  .avviso-box {
    flex-direction: column;
    text-align: center;
  }

  .avviso-img img {
    max-width: 70%;
  }

}

/* LAVORA CON NOI */

.totale-lavora-con-noi {
margin-top: 1rem;
margin-right: 4rem;
margin-bottom: 4rem;
margin-left: 4rem;
}

.top-lavora-con-noi {
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
}

.info-e-img {
display: flex;
justify-content: space-between;
align-items: center;
}

.info-gen-lavora {
display: flex;
flex-direction: column;
gap: 1rem;
}

.img-lavora {
width: 40%;
height: auto;
border-radius: 2rem;
}

.img-lavora:hover {
    transform: scale(1.1);
    box-shadow: 9px 8px 13px 0px #a781057d;
}

.sezione-descrizione-lavora {
margin-top: 2rem;
border-radius: 2rem;
padding: 2%;
display: grid;
grid-auto-flow: row;
align-content: center;
justify-content: center;
align-items: center;
justify-items: center;
}

.titolo-sezione-lavora {
display: flex;
justify-content: center;
font-size: x-large;
font-weight: bold;
color: #0247b3;
background: rgb(175 175 175 / 20%);
width: fit-content;
text-align: center;
margin: 0 auto;
padding: 1rem;
border-radius: 1rem;
z-index: 100;
position: relative;
backdrop-filter: blur(3px);
margin-bottom: 2rem;
}

.content-descr-lavora {
padding: 2rem;
margin: 1rem;
border: 2px solid #0247b330;
border-radius: 2rem;
max-width:50vw;
}

.content-descr-lavora:hover {
    transform: scale(1.1);
    box-shadow: 9px 8px 13px 0px #c8d6ee;
}

.descr-lavora {
display: flex;
flex-direction: column;
}


@media (max-width: 768px) {
    
    
    .totale-lavora-con-noi {
        margin-top: 1rem;
        margin-right: 2rem;
        margin-bottom: 2rem;
        margin-left: 2rem;
    }
    
    .info-gen-lavora h2{
        font-size: larger;
        text-align: center;
    }
    
    .info-gen-lavora div{
        font-size: large;
        text-align: center;
        font-weight: 500;
    }
    
    .info-e-img {
        display: block;
    }
    
    .img-lavora {
        width: 100%;
        margin-top: 1rem;
    }
    
    .sezione-descrizione-lavora {
        padding: 0;
    }
    
    
    .titolo-sezione-lavora {
        margin-bottom: 1rem;
    }
    
    .content-descr-lavora {
        max-width: 100vw;
    }
    
    
}

.assistenza-box {
  margin-top: 40px;
  padding: 30px;

  background: linear-gradient(135deg, #1e3a8a, #3b5fc0);
  color: white;

  border-radius: 16px;
  text-align: center;

  box-shadow: 0 15px 35px rgba(0,0,0,0.1);
}

.assistenza-box h3 {
  margin-bottom: 15px;
  color: white;
}

/* bottone */
.btn-ticket {
  display: inline-block;
  margin-top: 10px;

  background: white;
  color: #1e3a8a;

  padding: 12px 20px;
  border-radius: 8px;

  font-weight: 600;
  text-decoration: none;

  transition: 0.3s;
}

.btn-ticket:hover {
  background: #ffffff;
  transform: scale(1.05);
}