/* Centra il testo della general_info */
.general_info {
    text-align: center;
    letter-spacing: 0.04em;
}
/* Footer */
.footer {
    width: 100%;
    background: #ececec;
    padding: 32px 0 24px 0;
    display: flex;
    justify-content: center;
    align-items: center;
    border-top: 1px solid #d0d0d0;
    margin-top: 60px;
}
.footer-content {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 32px;
    font-size: 1.1rem;
    color: #2c3e50;
}
.footer-info {
    display: flex;
    flex-direction: column;
    gap: 7px;
}
.footer-address, .footer-phone, .footer-piva {
    font-size: 1.08rem;
    color: #2c3e50;
    font-weight: 500;
}
.footer-copyright {
    font-size: 0.98rem;
    color: #888;
    margin-top: 6px;
}
.footer-logo {
    height: 60px;
    width: auto;
    margin-right: 24px;
}
.footer-address {
    font-size: 1.1rem;
    color: #2c3e50;
    font-weight: 500;
}
.popup-form{
    display: flex; 
    flex-direction: column;
    padding:0;
}

.form{
    display: flex;
    flex-direction: column;
    width: 500px;
    gap:0;
    text-align: left;
}

.form .get_in_touch{
    color: #ffa500;
}

.form .popup-title{
    color: #2c3e50;
    font-size: 1.8rem;
    margin-top: 20px;
    font-weight: 200;
}

.form .popup-subtitle{
    color: #7f8c8d;
    font-size: .9rem;
    margin-top: 20px;
    font-weight: 400;
}

.form hr{
    text-align: center;
    margin: 30px 0;
    border: none;
    border-top: 1px solid #ccc;
    width: 100%;
}

.popup-field{
    display: flex;
    flex-direction: column;
    gap: 5px;
    width: 100%;
    margin-bottom: 20px;
}

.popup-field .label{
    font-size: .8rem;
    font-weight: 600;
    color: #2c3e50;
}

.popup-field input,
.popup-field textarea { 
    padding: 10px;
    margin-top: 5px;
    margin-bottom:10px; 
    background-color:  #c8c8c839; 
    border-radius: 5px; 
    font-size: 1rem; 
    border: none;
}

.popup-field#checkbox {
    flex-direction: row;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.popup-field#checkbox input {
    width: auto;
    margin: 0;
}

.popup-field#checkbox .label{
    font-size: .8rem;
    font-weight: 600;
    color: #2c3e50;
    margin: 0;
}

.general_info{
    color:#39465489;
    line-height: 1.3rem;
    font-weight: 700;
    font-size: .9rem;
}

.info{
    display: flex;
    flex-direction: column;
    width: 400px;
}

.info .img{
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 20px;
}

.info .contact-info{
    background-color: #f0f0f084;
    display: flex;
    align-items: center;
    flex-direction: row;
    font-size: 1.1rem;
    margin-bottom: 20px;
    border-radius: 25px;
    margin:15px 0px 0px 0px;
    padding: 20px 20px;
    text-align: left;
}

.info .contact-info svg{
    width: 35px;
    height: 35px;
    fill: #0051ff;
    background-color: #0051ff17;
    padding:10px;
    border-radius: 50%;
    stroke-width: 25;
    margin-right: 10px;
}

.info .contact-info .contact-label{
    padding-left: 10px;
}


.info .contact-info .label{
    color: #2c3e50;
    font-size: 1.1rem;
    font-weight: 600;
}

.info .contact-info .value{
    color: #8c8c8c;
    font-size: .9em;
    font-weight: 300;
    margin-top: 6px;
}

#popup-custom.popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.8);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 2000;
}
#popup-custom.active {
    display: flex;
}

.popup-content{
    display: flex;
    flex-direction: row;
    justify-content: center;
    gap: 1rem;
    background: #fff;
    padding: 32px 24px;
    border-radius: 12px;
    min-width: 320px;
    max-width: 90vw;
    box-shadow: 0 8px 32px rgba(44,62,80,0.18);
    position: relative;
    text-align: left;
    width: 900px;
    max-height: 90vh;
    overflow-y: auto;
}

#closePopupCustom:hover {
    color: #f9d923;
}
#closePopupCustom {
    position: absolute;
    top: 25px;
    right: 25px;
    cursor: pointer;
    font-size: 2rem;
    color: #2c3e50;
    transition: color 0.2s;
    z-index: 10;
}
.menu.menu-fixed-top {
    top: 0 !important;
    bottom: auto !important;
    position: fixed !important;
    width: 100vw;
    left: 0;
    right: 0;
    z-index: 1000;
    background: #ececec !important;
    box-shadow: 0 2px 12px rgba(44,62,80,0.08);
    transition: top 0.3s, background 0.3s;
    height: 90px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.menu.menu-fixed-top .menu-items a {
    background-color: transparent !important;
    color: #2c3e50 !important;
    font-weight: 600;
    border: none;
    box-shadow: none;
    font-size: 1.15rem;
    padding: 12px 28px;
}
.menu.menu-fixed-top .menu-items a:hover {
    background-color: #f4f4f4;
    color: #0051ff;
}
.menu.menu-fixed-top .menu-items {
    position: absolute;
    left: 50%;
    top: 50%;
    bottom: auto;
    transform: translate(-50%, -50%);
    margin: 0;
    z-index: 1001;
    display: flex;
    align-items: center;
    height: auto;
}

.menu.menu-hidden {
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
}
.menu.menu-fixed-top .menu-logo {
    height: 100px;
    width: auto;
    margin-left: 0;
    margin-right: 40px;
    margin-top:10px;
    margin-bottom:10px;
}

html{
    scroll-behavior: smooth;
}

#menu, .menu {
    position: fixed;
    left: 0;
    bottom: 0;
    width: 100%;
    background: transparent;
    display: flex;
    justify-content: center;
    gap: 2rem;
    padding: 1rem 0;
    z-index: 100;
}
.menu img {
    width: 40px;
    height: 40px;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.menu-items{
    position: fixed;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 2rem;
    bottom: 70px;
    top: auto;
    transition: top 0.3s, bottom 0.3s;
}
.menu.menu-fixed-top .menu-items {
    top: 50%;
    bottom: auto;
    transform: translateY(-50%);
    position: absolute;
    left: 120px;
    width: auto;
    z-index: 1001;
}

.menu-items a {
    display: inline-block;
    background-color: #2c3e50;
    color: white;
    text-decoration: none;
    font-size: 1.1rem;
    padding: 10px 20px;
    transition: color 0.3s ease;
    white-space: nowrap;
    border-radius: 20px;
}

.menu-items a:hover {
    background-color: #496374;
}

.hidden {
    display: none;
}

.shown {
    display: flex;
}

#cover::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 30%;
    pointer-events: none;
    z-index: 2;
    background: linear-gradient(to bottom, rgba(255,255,255,0) 0%, rgba(236,240,241,0.85) 100%);
}
body {
    font-family: 'Inter', Arial, sans-serif;
    background-color: #f4f4f4;
    margin: 0;
    padding: 0;
}
.title {
    position: relative;
    font-size: 4rem;
    color: #2c3e50;
    text-align: center;
}
.subtitle {
    color: #7f8c8d;
    text-align: center;
    margin-top: 20px;
}
#cover{
    display: flex;
    flex-direction: column;
    height: 100vh;
    background-image: url('img/cover.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

#cover .logo {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 20px;
}

#cover::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('img/cover.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    transform: scaleX(-1);
    z-index: 0;
    opacity: 1;
}

.front{
    z-index: 1;
    display: flex;
    width:34%;
    height: auto;
    min-height: 320px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    text-align: center;
    margin-top:14vh;
    margin-left: 110px;

    background: rgba(255, 255, 255, 0.62); /* trasparenza */
    backdrop-filter: blur(10px);          /* effetto vetro */
    -webkit-backdrop-filter: blur(15px);  /* supporto Safari */

    border-radius: 25px;

    border: 1px solid rgba(255, 255, 255, 0.782);

    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.2),      /* ombra esterna */
        inset 0 1px 0 rgba(255, 255, 255, 0.3); /* luce sopra */

  padding: 36px 30px;
}

.front .front-title {
    font-family: 'Inter', Arial, sans-serif;
    font-size: 1.9rem;
    font-weight: 800;
    letter-spacing: -0.01em;
    margin: 0;
    line-height: 1.3;
}
.front .front-subtitle {
    font-family: 'Inter', Arial, sans-serif;
    font-size: 1rem;
    font-weight: 500;
    color: #3b4a56;
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.5);
    margin: 0;
}
.front .link-contatti {
    margin-top: 4px;
}
.front img {
    width:100%;
    mix-blend-mode: multiply;
    background: transparent !important;
}

.front #front-contatti {
    margin-top: 40px;
}

h1, h2, h3, p {
    text-align: center;
}

.noi_card{
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    padding: 50px 20px 50px 20px;
    width: 1060px;
    margin: 50px auto 0 auto;
    background-color: #2c3e50;
    box-shadow: 15px 25px 20px rgba(0, 0, 0, 0.3);
    border-radius: 25px;
    color: whitesmoke;
}

.noi_card h2,p {
    text-align: left;
}

.noi_card svg {
    width: 200px;
    height: 200px;
    fill:whitesmoke;
    stroke-width:25;
}

.noi_card_header{
    width: 500px;
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
}

.section{
    height: auto;
    margin-bottom: 50px;
}

/* sezioni body */
.card-section {
    display: flex;
    justify-content: center;
    margin-top: 50px;
}
.noi_card_body{
    padding-right: 60px;
}

.card{
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 350px;
    width: 300px;
    background-color: #2c3e50;
    border-radius: 25px;
    box-shadow: 15px 25px 20px rgba(0, 0, 0, 0.3);
    margin: 20px;
    padding: 20px;
}

.card-icon {
    width: 150px;
    height: 150px;
    margin-bottom: 20px;
    fill:none;
    stroke:whitesmoke;
    stroke-width:25;
}

.p_card {
    color: white;
    text-align: center;
    font-size: 1.4rem;
}

.testo {
    font-size: 1.2rem;
    color: #2c3e50;
    line-height: 1.7;
    text-align: justify;
    padding: 10vh 10vw 0;
}
.cta-wrapper {
    text-align: center;
    margin: 0;
}
.link-contatti {
    display: flex;
    align-items: center;
    gap: 10px;

    font-size: 1.2rem;
    color: #2c3e50;
    text-decoration: none;

    padding: 10px 16px;
    border: 2px solid #2c3e50;
    border-radius: 20px;

    cursor: pointer;

    width: fit-content;
    margin: 20px auto 0; /* 🎯 centraggio orizzontale */
    transition: 0.3s ease;
}

.link-contatti:hover {
    background-color: #2c3e50;
    color: white;
    transition: cubic-bezier(0.075, 0.82, 0.165, 1) 1s;
}
.link-contatti svg {
    width: 50px;
    height: 50px;
    fill:  #2c3e50;
    stroke-width: 25;
    margin-left: 10px;
    vertical-align: middle;
}
.link-contatti:hover svg {
    fill:  whitesmoke;
    stroke-width: 25;
    transition: cubic-bezier(0.075, 0.82, 0.165, 1) 1s;
}

/* card consulenza */
.steps{
    display: flex;
    width: auto;
    height: auto;
    flex-direction: row;
    gap: 20px;
    margin-top: 20px;
    justify-content: center;
}

.step_card{
    display: flex;
    flex-direction: row;
    justify-content: left;
    align-items: center;
    width: 240px;
    height: 500px;
    border-radius: 25px;
    box-shadow: 15px 25px 20px rgba(0, 0, 0, 0.1);
    background-color: #e1dddd4d;
}

.step_number{
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    border-radius: 25px;
    height: 100%;
    width:100%;
    clip-path: polygon(0 0, 35% 0, 100% 50%, 35% 100%, 0 100%);
    color: whitesmoke;
    box-shadow: inset 0px 0px 10px rgba(0,0,0,0.5);
}

.step_number .num{
    height: auto;
    line-height: 7rem;
    font-size: 7rem;
}

.step_number .step_const{
    font-size: 1.7rem;
}

.step_text{
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: left;
    height: 100%;
    width: 30%;
    gap: 60%;
}

.step_text svg{
    width: 70px;
    height: 70px;
    fill:none;
    stroke:#7f8c8d;
    stroke-width:25;
}

.step_text_content{
    font-size: .7rem;
    color: #2c3e50;
    line-height: 1em;
    margin-left: -90%;
    color: #7f8c8d;
    text-align: right;

    padding-right: 20px;
}

.step_text_content b{
    font-size: 1.2rem;
}

.marquee {
  overflow: hidden;
  white-space: nowrap;
  background: #f5f5f5;
  padding: 15px 0;
  margin-bottom: 50px;
}

.marquee-content {
  display: inline-flex;
  gap: 50px;
  animation: scroll 15s linear infinite;
}

.marquee-content span {
  font-size: 1.2rem;
  background-color: #2c3e50;
  color: white;
  padding: 15px 30px;
  border-radius: 25px;

}

/* animazione */
@keyframes scroll {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

.text_btn{
    display: flex;
    align-items: center;
    flex-direction: column;
    line-height: .8rem;
    font-size: 1rem;
}

.text_btn b{
    font-size: 1.8rem;
}

#finalCTA{
    padding: 30px;
}

.menu-icon {
    display: none;
}
/* -------------------- FAQ / Domande frequenti -------------------- */
.faq-section {
    max-width: 880px;
    margin: 100px auto 0;
    padding: 0 20px;
}
.faq-section h2 {
    color: #2c3e50;
    margin-bottom: 10px;
}
.faq-subtitle {
    color: #7f8c8d;
    text-align: center;
    font-size: 1.05rem;
    max-width: 620px;
    margin: 0 auto 40px;
    line-height: 1.6;
}
.faq-controls {
    display: flex;
    flex-direction: column;
    gap: 18px;
    margin-bottom: 32px;
}
.faq-search-wrapper {
    position: relative;
    max-width: 480px;
    margin: 0 auto;
    width: 100%;
}
.faq-search-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    fill: #7f8c8d;
    pointer-events: none;
}
.faq-search {
    width: 100%;
    box-sizing: border-box;
    padding: 14px 18px 14px 46px;
    border-radius: 25px;
    border: 1px solid #d7d7d7;
    background: #fff;
    font-size: 1rem;
    font-family: inherit;
    color: #2c3e50;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.faq-search::placeholder {
    color: #a9adb1;
}
.faq-search:focus {
    outline: none;
    border-color: #2c3e50;
    box-shadow: 0 0 0 3px rgba(44,62,80,0.1);
}
.faq-chips {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
}
.faq-chip {
    font-family: inherit;
    font-size: 0.92rem;
    font-weight: 600;
    padding: 9px 20px;
    border-radius: 20px;
    border: 2px solid #2c3e50;
    background: transparent;
    color: #2c3e50;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease;
}
.faq-chip:hover {
    background: rgba(44,62,80,0.08);
}
.faq-chip.active {
    background: #2c3e50;
    color: #fff;
}
.faq-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.faq-item {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 2px 12px rgba(44,62,80,0.08);
    overflow: hidden;
}
.faq-question {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 18px 22px;
    background: transparent;
    border: none;
    text-align: left;
    font-family: inherit;
    font-size: 1.02rem;
    font-weight: 600;
    color: #2c3e50;
    cursor: pointer;
}
.faq-question:hover {
    background: rgba(44,62,80,0.04);
}
.faq-question-text {
    flex: 1;
}
.faq-chevron {
    width: 20px;
    height: 20px;
    fill: #ff8c00;
    flex-shrink: 0;
    transition: transform 0.25s ease;
}
.faq-question[aria-expanded="true"] .faq-chevron {
    transform: rotate(180deg);
}
.faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 22px;
    color: #6b7580;
    font-size: 0.96rem;
    line-height: 1.7;
    transition: max-height 0.35s ease, padding 0.35s ease;
}
.faq-answer.open {
    max-height: 1200px;
    padding: 0 22px 20px;
}
.faq-empty {
    display: none;
    text-align: center;
    color: #7f8c8d;
    padding: 30px 0;
}
