/* --- Content from styles.css --- */
.hover-underline-animation {
    display: inline-block;
    position: relative;
    color: #1e3a8a;
}

.hover-underline-animation::after {
    content: '';
    position: absolute;
    width: 100%;
    transform: scaleX(1);
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: #1e3a8a;
    transform-origin: bottom right;
    transition: transform 0.25s ease-out;
}

.underline-fixed::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: #1e3a8a;
    transform-origin: bottom right;
    transform: scaleX(1);
}

html {
    scroll-behavior: smooth;
}

.footerText {
    white-space: nowrap;
    font-size: 2rem;
    color: #f3f3f4;
}

.footerText:hover {
    font-style: bold;
    text-decoration: none !important;
    color: #1e3a8a !important;
    transition: all 0.3s;
}

#footerCustom {
    display: flex;
    justify-content: space-around;
    align-items: center;
    height: auto !important;
}

.footerTextDiv {
    bottom: 0;
    margin-bottom: 5rem;
    position: absolute;
    flex: 1;
    text-align: center;
}

.title {
    align-items: center;
    align-content: center;
    text-align: center;
    margin-top: 5rem;
    margin-bottom: 4rem;
    font-size: 2rem;
}

@media (min-width: 768px) {
    .title {
        font-size: 3rem;
    }
}

.navbar-light .navbar-nav .nav-link {
    color: #f3f3f4 !important;
    font-size: 2.5rem;
}

.custom-link {
    font-size: 2rem;
    color: #5c5c5c;
    text-decoration: none;
}

.custom-link:hover {
    font-style: bold;
    transition: all 0.5s;
}

.navbar-toggler {
    border: 0 !important;
}

.navbar-toggler:focus,
.navbar-toggler:active,
.navbar-toggler-icon:focus {
    outline: none !important;
    box-shadow: none !important;
    border: 0 !important;
}

.toggler-icon {
    width: 3rem;
    height: 5px;
    background-color: #f3f3f4;
    display: block;
    transition: all 0.5s;
}

.middle-bar {
    margin: 5px auto;
}

.navbar-toggler .top-bar {
    transform: rotate(45deg);
    transform-origin: 10% 10%;
}

.navbar-toggler .middle-bar {
    opacity: 0;
    filter: alpha(opacity=0);
}

.navbar-toggler .bottom-bar {
    transform: rotate(-45deg);
    transform-origin: 10% 90%;
}

.navbar-toggler.collapsed .top-bar {
    transform: rotate(0);
}

.navbar-toggler.collapsed .middle-bar {
    opacity: 1;
    filter: alpha(opacity=100);
}

.navbar-toggler.collapsed .bottom-bar {
    transform: rotate(0);
}

.navbar-toggler.collapsed .toggler-icon {
    background-color: #f3f3f4;
}

.back-img {
    background:
        linear-gradient(to bottom, rgba(0, 0, 0, 0) 60%, rgba(0, 0, 0, 1) 100%),
        url('assets/fotosullahome.png');
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    position: absolute;
    right: 0;
    bottom: 0;
    z-index: -1;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: all 0.3s;
}

.heroTextDiv {
    transition: all 0.3s;
    z-index: 2 !important;
    max-width: 100%;
    text-align: center;
    background-color: #1e3a8a;
    position: absolute;
    bottom: 10rem;
}

.heroText {
    color: #f3f3f4;
    font-size: 8rem;
    line-height: 0.9;
    margin-top: 4rem;
    transition: all 0.3s;
}

.subHeroText {
    color: #f3f3f4;
    font-size: 1.6rem;
    margin-top: 1rem;
}

.section {
    height: auto;
    display: block;
    justify-content: center;
    align-items: center;
    transition: all 0.3s;
}

.arrow-container {
    background-color: transparent;
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 5rem;
    overflow: hidden;
}

.arrow1 {
    position: absolute;
    width: 100%;
    height: 100%;
    background: transparent;
    clip-path: polygon(0% 100%, 50% 100%, 0% 0%);
    background-color: #f3f3f4;
    color: black;
}

.arrow2 {
    position: absolute;
    width: 100%;
    height: 100%;
    background: transparent;
    clip-path: polygon(100% 0%, 50% 100%, 100% 100%);
    background-color: #f3f3f4;
    color: black;
}

.arrow-container-white {
    background-color: black;
    width: 100%;
    height: 5rem;
    overflow: hidden;
    margin-top: -1px;
}

.arrow-white {
    margin-top: -0.1px;
    position: relative;
    width: 100%;
    height: 100%;
    background: transparent;
    clip-path: polygon(50% 100%, 100% 0, 0 0);
    background-color: #f3f3f4;
    color: black;
}

@media (max-height: 680px) {
    .heroText {
        font-size: 4rem !important;
        line-height: 0.9;
        margin-top: 1rem !important;
    }
    .heroTextProducts {
        font-size: 2rem !important;
        line-height: 0.9;
        margin-top: 0 !important;
    }
    .subHeroText {
        font-size: 1rem !important;
    }
}

@media (max-height: 830px) {
    .heroTextProducts {
        margin-top: 15rem !important;
    }
}

@media (max-width: 1480px), (max-height: 900px) {
    .heroText {
        font-size: 7rem;
        margin-top: 3rem;
    }
    .paddingSec0 {
        padding-top: 8rem;
    }
    .footerBackSize {
        font-size: 3rem;
    }
    .footerTitleTextSize {
        font-size: 2rem;
    }
    .footerTextSize {
        font-size: 1.3rem;
        margin-top: 2rem;
    }
    .footerLinkSize {
        font-size: 1.2rem;
    }
}

@media (max-width: 991px) {
    .navbar-collapse {
        transition: ease all 0.7s;
        text-align: center;
        margin: 0 !important;
        text-decoration: underline;
    }
    .navbar-nav {
        display: flex;
        flex-direction: column;
        align-items: center;
        width: 100%;
        margin-top: 7rem;
    }
    .nav-item {
        margin: 0.5rem 0;
    }
    .nav-link {
        transition: ease all 1s;
        font-size: 2rem !important;
        border-radius: 0.5rem;
    }
    .footerTextDiv {
        margin-top: 7rem;
    }
    .heroText {
        font-size: 6.5rem;
    }
}

@media (max-width: 991px), (max-height: 740px) {
    .nav-link {
        font-size: 1.5rem !important;
    }
    .subHeroText {
        font-size: 1rem;
    }
    #companyLogo {
        width: 150px;
        transition: ease all 0.3s;
    }
    .footerBackSize {
        font-size: 2.5rem;
        padding-left: 0;
    }
    .footerImg {
        width: 9rem;
    }
    .footerTitleTextSize {
        font-size: 2rem;
    }
    .footerTextSize {
        font-size: 1.3rem;
        margin-top: 0.5rem !important;
    }
    .footerLinkSize {
        font-size: 1rem;
    }
}

@media (max-width: 767px), (max-height: 600px) {
    #companyLogo {
        margin-left: 0rem !important;
        width: 140px;
    }
    .heroText {
        font-size: 5rem;
        line-height: 1.3;
        margin-top: 5rem;
    }
    .bigTextSection0 {
        font-size: 3rem;
        margin-top: 2rem;
    }
    .footerText {
        font-size: 1.5rem;
    }
    .footerBackSize {
        font-size: 2.5rem;
        padding-left: 0;
    }
    .footerImg {
        width: 9rem;
    }
    .footerTitleTextSize {
        font-size: 2rem;
    }
    .footerTextSize {
        font-size: 1.3rem;
        margin-top: 2rem;
        text-align: center !important;
    }
    .footerLinkSize {
        font-size: 1rem;
        padding: 0px;
    }
}

@media (max-height: 650px) {
    .heroTextProducts {
        margin-top: 10rem !important;
    }
}

@media (max-height: 600px) {
    .heroTextProducts {
        font-size: 2rem !important;
        margin-top: 8rem !important;
    }
}

@media (max-width: 492px), (max-height: 400px) {
    .heroText {
        font-size: 4.5rem;
    }
    .heroTextDiv {
        margin-top: 1rem;
    }
    #companyLogo {
        width: 130px;
    }
    .footerText {
        font-size: 1.3rem;
    }
    .metric {
        font-size: 2.5rem;
        margin-top: 1.2rem;
    }
    .metric-text {
        font-size: 1rem;
    }
}

@media (max-width: 768px) {
    .arrow-container {
        height: 4rem;
    }
}

@media (max-width: 768px) {
    .arrow-container-white {
        height: 4rem;
    }
}

/* --- Content from StylesAccordion.css --- */
.sectionAccordion * {
    box-sizing: border-box;
}
.sectionAccordion *::before,
.sectionAccordion *::after {
    box-sizing: border-box;
}
.sectionAccordion {
    min-height: 60vh;
    padding: 2rem;
    padding-top: 1rem;
    width: 70%;
    display: flex;
    display: block;
    justify-content: center;
    align-items: center;
}
.accordion {
    margin-left: 20%;
    position: relative;
    font-size: 5rem;
    color: #f3f3f4;
}
.accordion .accordion-item {
    border-bottom: 1px solid #e5e5e5;
}
.accordion button[aria-expanded='true'] {
    border-bottom: 1px solid white;
}
.accordion button {
    position: relative;
    display: block;
    text-align: left;
    width: 100%;
    padding: 1em 0;
    color: #f3f3f4;
    font-size: 1.15rem;
    font-weight: 400;
    border: none;
    background: none;
    outline: none;
}
.accordion button:hover,
.accordion button:focus {
    cursor: pointer;
    color: #f3f3f4;
}
.accordion button:hover .icon,
.accordion button:focus .icon {
    cursor: pointer;
    color: #f3f3f4;
    border: 1px solid #f3f3f4;
}
.accordion .accordion-title {
    font-size: 1.8rem;
    position: relative;
    display: inline-block;
    padding-bottom: 0.2rem;
    padding-right: 1.5rem;
    transition: color 200ms ease-in-out;
}
.accordion .accordion-title::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 2px;
    background-color: #1e3a8a;
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 300ms ease-in-out;
}
.accordion .accordion-title:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}
.accordion .accordion-role {
    font-size: 1.8rem !important;
}
.accordion .accordion-role-description {
    font-size: 1.5rem !important;
}
.accordion .icon {
    display: inline-block;
    position: absolute;
    top: 30px;
    right: 0;
    width: 22px;
    height: 22px;
    border: 1px solid;
    border-radius: 22px;
    margin-left: 2rem;
}
.accordion .icon::before {
    display: block;
    position: absolute;
    content: '';
    top: 9px;
    left: 5px;
    width: 10px;
    height: 2px;
    background: currentColor;
}
.accordion .icon::after {
    display: block;
    position: absolute;
    content: '';
    top: 5px;
    left: 9px;
    width: 2px;
    height: 10px;
    background: currentColor;
}
.accordion button[aria-expanded='true'] {
    color: #1e3a8a;
}
.accordion button[aria-expanded='true'] .icon::after {
    width: 0;
}
.accordion button[aria-expanded='true']+.accordion-content {
    opacity: 1;
    max-height: 15em;
    transition: all 400ms linear;
    will-change: opacity, max-height;
}
.accordion .accordion-content {
    opacity: 0;
    max-height: 0;
    overflow: hidden;
    transition: opacity 200ms linear, max-height 400ms ease-in-out;
    will-change: opacity, max-height;
}
.accordion .accordion-content p {
    font-size: 1.3rem;
    font-weight: 300;
    margin: 2em 0;
}
@media (max-width: 1600px) {
    .accordion-title {
        font-size: 1.5rem !important;
    }
    .sectionAccordion {
        width: 90%;
        padding: 1rem;
    }
    .accordion .accordion-content p {
        font-size: 1rem;
    }
}
@media (max-width: 991px) {
    .accordion {
        margin-top: 1rem;
        margin-left: 10%;
    }
    .accordion-title {
        font-size: 1.5rem !important;
    }
    .accordion .accordion-content p {
        font-size: 1rem;
    }
}
@media (max-width: 767px) {
    .accordion {
        margin-left: 1%;
    }
    .accordion-title {
        font-size: 1.2rem !important;
    }
    .sectionAccordion {
        width: 100%;
        padding: 0.5rem;
    }
    .accordion .accordion-content p {
        font-size: 1rem;
    }
}

/* --- Content from story.css --- */
.bodystory {
    font-family: openSansRegular;
    background-color: #f3f3f4;
    color: black;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding-top: 1rem;
    padding-bottom: 1rem;
}

.story-section {
    display: flex;
    align-items: center;
    width: 100%;
    max-width: 70%;
    border-radius: 10px;
    background-color: #f3f3f4;
    transition: ease all 0.3s;
}

.story-image {
    max-width: 45%;
    border-radius: 10px;
    overflow: hidden;
}

.story-image img {
    width: 70%;
    height: auto;
    border-radius: 10px;
}

.story-content {
    max-width: 50%;
    text-align: left;
}

.story-content h1 {
    font-size: 3rem;
    margin-bottom: 20px;
}

.story-content p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    color: black;
}

.story-content .btn {
    text-decoration: none;
    color: #f3f3f4;
    padding: 10px 30px;
    border-radius: 50px;
    font-size: 1.2rem;
    background-color: #1e3a8a;
    transition: background-color 0.3s, color 0.3s;
}

.story-content .btn:hover {
    background-color: black;
    color: #f3f3f4;
}

@media (max-width: 1250px) {
    .story-section {
        max-width: 90%;
    }
    .story-image img {
        width: 70%;
    }
}

@media (max-width: 767px) {
    .bodystory {
        padding-top: 5rem;
    }
    .story-section {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    .story-image {
        max-width: 90%;
        margin-bottom: 3rem;
        padding-top: 0;
        margin-top: 0;
    }
    .story-content {
        max-width: 100%;
        text-align: center;
    }
    .story-content h1 {
        font-size: 2.5rem;
    }
    .story-content p {
        font-size: 1rem;
    }
    .story-content .btn {
        font-size: 1rem;
        padding: 10px 20px;
    }
}

/* --- Content from timeline.css --- */
.containerTimeline {
    display: flex;
    width: 1300px;
    flex-direction: row;
    align-items: center;
    gap: 0;
    padding: 0;
}

.dm-timeline-point {
    position: sticky;
    top: 50vh;
}

.dm-timeline-bar {
    transform: translateX(29px);
}

.dm-timeline-left {
    position: sticky;
    top: 70%;
    padding-right: 5rem;
    transform: translateY(-12rem);
}

.dm-progress-bar {
    background: red;
    height: 0%;
}

.dm-bar-container {
    position: absolute;
    left: calc(50% - 10%/2);
    height: 100%;
}

.textDescription {
    font-size: 1.3rem;
    font-weight: 500;
    color: #f3f3f4;
    margin-bottom: 1rem;
}

.timelineTitle_Top {
    font-size: 2rem;
    color: #f3f3f4;
    display: none;
}

.svgSize {
    width: 7rem;
    margin-bottom: 3rem;
}

.btn-inizia {
    color: #f3f3f4;
    font-size: 1.5rem;
    padding: 1rem 2rem;
    border-radius: 5px;
    border: 1px solid #f3f3f4 !important;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-inizia:hover {
    background-color: #f3f3f4;
    color: #1e3a8a;
    text-decoration: none;
}

.container-questionario {
    text-align: center;
    width: 45%;
    border: 2px solid black;
    background-color: #1e3a8a;
    padding: 1rem;
    padding-bottom: 2rem;
    border-radius: 1rem;
}

.rightTimeline {
    text-align: center;
    width: 45%;
    border: 2px solid #1e3a8a;
    padding: 1rem;
    border-radius: 1rem;
}

@media(max-width:1024px) {
    .dm-bar-container {
        position: absolute;
        left: calc(50% - 10%/2);
        height: 100%;
    }
}

@media(max-width:768px) {
    .dm-bar-container {
        position: absolute;
        left: 0%;
        height: 100%;
    }
    .svgSize {
        width: 4rem;
        margin-bottom: 2rem;
    }
    .textDescription {
        font-size: 1rem;
    }
    .rightTimeline {
        width: 70%;
    }
}

@media (max-width: 678px) {
    .container-questionario {
        width: 65%;
        padding: 2rem;
        border-radius: 1rem;
    }
    .btn-inizia {
        background-color: #1e3a8a;
        color: white;
        font-size: 1.2rem;
        padding: 1rem 2rem;
        border-radius: 5px;
        border: none;
        cursor: pointer;
        transition: all 0.3s;
    }
}

/* Additional styles that might be in missing files (basic implementation) */
body {
    font-family: 'Lato', sans-serif;
}
.font-raleway-regular { font-family: 'Raleway', sans-serif; font-weight: 400; }
.font-raleway-bold { font-family: 'Raleway', sans-serif; font-weight: 700; }
.font-bebas { font-family: 'Bebas Neue', sans-serif; }
.font-lato-regular { font-family: 'Lato', sans-serif; font-weight: 400; }
.font-lato-bold { font-family: 'Lato', sans-serif; font-weight: 700; }

/* Basic styles for pricing to prevent layout collapse */
.pricing-styles { background-color: black; padding: 1rem 0; color: white; }
.pricing-container { max-width: 1200px; margin: 0 auto; }

/* --- START: Improved Pricing Switcher Styles --- */

.pricing-switcher {
    display: flex;
    justify-content: center;
    margin-bottom: 2.5rem; /* Increased margin for better spacing */
}

.pricing-switcher-container {
    display: flex;
    position: relative;
    background-color: #333; /* Darker background for the toggle area */
    border-radius: 50px;
    padding: 5px;
    border: 1px solid #1e3a8a;
}

/* Visually hide the radio buttons but keep them accessible */
.pricing-switcher-container input[type="radio"] {
    display: none;
}

.pricing-switcher-container label {
    position: relative;
    z-index: 1;
    padding: 10px 25px; /* Added more padding for a better look */
    margin: 0;
    color: #f3f3f4;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s ease-in-out;
    white-space: nowrap; /* Prevents text wrapping on small screens */
}

/* Change text color of selected label */
.pricing-switcher-container input[type="radio"]:checked+label {
    color: black;
}

/* The moving pill/background */
.pricing-switcher-pill {
    position: absolute;
    top: 5px;
    left: 5px; /* Start at the first element's position */
    height: calc(100% - 10px);
    background-color: #f3f3f4; /* Pill color */
    border-radius: 50px;
    transition: transform 0.3s cubic-bezier(0.68, -0.55, 0.27, 1.55); /* Smooth, bouncy transition */
}

/* --- Logic for moving the pill --- */
/* When 'Mensile' is checked */
.pricing-switcher-container input#monthly-1:checked~.pricing-switcher-pill {
    width: calc(33.33% - 7px); /* Adjust width to fit one-third */
    transform: translateX(0%);
}

/* When 'Trimestrale' is checked */
.pricing-switcher-container input#semes-1:checked~.pricing-switcher-pill {
    width: calc(33.33% - 7px); /* Adjust width to fit one-third */
    transform: translateX(100%);
}

/* When 'Semestrale' is checked */
.pricing-switcher-container input#yearly-1:checked~.pricing-switcher-pill {
    width: calc(33.33% - 7px); /* Adjust width to fit one-third */
    transform: translateX(200%);
}

/* --- Responsive adjustments for the switcher --- */
@media (max-width: 480px) {
    .pricing-switcher-container label {
        padding: 8px 15px; /* Reduce padding on small screens */
        font-size: 0.9rem;
    }
}

/* --- END: Improved Pricing Switcher Styles --- */
.pricing-list { list-style: none; padding: 0; display: flex; justify-content: center; gap: 1rem; flex-wrap: wrap; }
.pricing-list > li { flex: 1; min-width: 300px; max-width: 350px; }
.pricing-wrapper { border: 1px solid #1e3a8a; border-radius: 10px; padding: 2rem; height: 100%; display: flex; flex-direction: column; }

/* Make all pricing cards the same height */
.pricing-list > li {
    display: flex;
    flex-direction: column;
}

.pricing-wrapper {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.pricing-body {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.pricing-features {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

/* Mobile responsive - stack vertically */
@media (max-width: 768px) {
    .pricing-list {
        flex-direction: column;
        align-items: center;
    }
    
    .pricing-list > li {
        width: 100%;
        max-width: 350px;
        margin-bottom: 1rem;
    }
    
    /* Make PLUS card appear above BASE card when stacked vertically */
    .pricing-list > li:first-child {
        order: 2;
    }
    
    .pricing-list > li:nth-child(2) {
        order: 1;
    }
}
.pricing-header { text-align: center; }
.pricing-features { list-style: none; padding: 0; }
.pricing-wrapper > li.is-hidden {
    display: none !important;
}

.pricing-wrapper > li.is-visible {
    display: flex !important;
    flex-direction: column;
    height: 100%;
}
.exclusive .pricing-wrapper { border-color: white; transform: scale(1.05); }

/* Basic styles for card slider */
.divCards { background-color: #f3f3f4; padding: 1rem 0; }
.motivationalPhrase { text-align: center; font-size: 1.5rem; max-width: 800px; margin: 1rem auto 1rem auto; }

.banner-container {
    background-color: #f3f3f4;
    border-top: 3px solid #1e3a8a;
    border-bottom: 3px solid #1e3a8a;
    padding: 1rem 0;
    margin: 1rem 0;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}
.motivationalPhrase2 { text-align: center; font-size: 3rem; margin-bottom: 1rem; }
.containerSwiper { position: relative; }
.card-item { background: white; border-radius: 10px; text-align: center; padding: 1rem; border: 1px solid #ddd; }
.user-image { width: 100%; height: auto; border-radius: 5px; margin-bottom: 1rem; }

/* Animated phrases fallback */
.phrasesDiv { text-align: center; padding: 1rem 0; background-color: #f3f3f4; margin-bottom: 0; }
.phrase-one, .phrase-two { font-size: 2rem; }
.phrase-two { font-weight: bold; }

/* Footer styles */
.footerContainer { background-color: black; color: #f3f3f4; }
.footerTitleTextSize { font-size: 1.5rem; font-weight: bold; }
.footerTextSize { font-size: 1rem; }
.tornasu { color: #1e3a8a; text-decoration: none; }
.footerLinkSize a { color: #1e3a8a; }

/* Pricing button styles */
.pricing-footer {
    margin-top: auto;
    padding-top: 2rem;
}

.pricing-btn {
    width: 100%;
    padding: 1rem;
    background-color: #1e3a8a;
    border: none;
    color: white;
    border-radius: 5px;
    font-weight: bold;
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

.pricing-btn:hover {
    background-color: #1e40af;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.3);
}

.pricing-btn-plus {
    background: linear-gradient(45deg, #1e3a8a, #3b82f6);
    box-shadow: 0 4px 15px rgba(30, 58, 138, 0.3);
}

.pricing-btn-plus:hover {
    background: linear-gradient(45deg, #1e40af, #2563eb);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(30, 58, 138, 0.4);
}

/* Pricing card background styles */
.pricing-list > li {
    background-color: #2a2a2a;
    transition: all 0.3s ease;
}

.pricing-list > li:nth-child(2) {
    background-color: #3a3a3a;
    transform: scale(1.05);
    box-shadow: 0 8px 25px rgba(0,0,0,0.3);
} 