* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Dosis", sans-serif;
}

html {
    font-size: 100% !important;
}

body {
    color: #1a3a5f;
    background-color: #ffffff;

}

/* Header Section */
.header {
    background-image: url('https://www.edises.it/demo/intro-formazione/images/Banner solo sfondo.png');
    background-size: cover;
    background-position: center;
    background-blend-mode: overlay;
    color: white;
    padding: 2rem;
    text-align: center;
    position: relative;
    overflow: hidden;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

@media (max-width: 768px) {
    .header {
        padding: 1rem;
        min-height: 100vh;
    }
}


.header::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: inherit;
    background-size: cover;
    background-position: center;
    animation: zoomBackground 20s ease-out infinite;
    z-index: 0;
}


.header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    opacity: 0.95;
    z-index: 1;
}


.header-content {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2rem;
}

@media (min-width: 768px) {
    .header-content {
        gap: 3rem;
    }
}

.logo {
    height: 12rem;
    width: auto;
    z-index: 2;
    flex-shrink: 0;
}

.logo img {
    height: 100%;
    width: auto;
    object-fit: contain;
}

/* Video Container - Make it the hero element */
.video-hero {
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.video-container {
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    background: #000;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 12px;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .logo {
        height: 10rem;
    }
    
    .video-hero {
        max-width: 800px;
    }
}

@media (max-width: 768px) {
    .logo {
        height: 8rem;
    }
    
    .video-hero {
        max-width: 100%;
        padding: 0 1rem;
    }
    
    .video-container {
        border-radius: 8px;
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    }
    
    .video-container iframe {
        border-radius: 8px;
    }
    
    .header-content {
        justify-content: center;
        min-height: 100vh;
    }
}

@media (max-width: 480px) {
    .logo {
        height: 6rem;
    }
    
    .header-content {
        gap: 1.5rem;
        justify-content: center;
        min-height: 100vh;
    }
    
    .video-container {
        border-radius: 6px;
    }
    
    .video-container iframe {
        border-radius: 6px;
    }
}

/* Video focused layout - minimal text styling */
.video-title {
    color: #8cb277;
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 1rem;
    text-align: center;
}

@media (max-width: 768px) {
    .video-title {
        font-size: 1.2rem;
    }
}

/* Buttons */
.btn {
    display: inline-block;
    background-color: #0e3f82;
    color: white;
    font-weight: bold;
    padding: 0.75rem 2rem;
    text-decoration: none;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    transition: background-color 0.2s;
}

.btn:hover {
    background-color: #0e3f82;
}

.btn-full {
    width: 100%;
}

.btn-50 {
    width: 100%;
    text-align: center;
    color: #0e3f82 !important;
    background-color: transparent !important;
    border: 2px solid #0e3f82 !important;
    border-radius: 25px !important;
    transition: all 0.3s ease;
}

.btn-50:hover {
    background-color: #0e3f82 !important;
    color: white !important;
}

/* Main Content */
.benefits-section {
    background-color: #f0faef;
    padding: 2rem 1.5rem 2rem 1.5rem;

}

.container {
    max-width: 72rem;
    margin: 0 auto;
}

.grid {
    display: grid;
    gap: 2rem;
}

@media (min-width: 768px) {
    .grid-cols-2 {
        grid-template-columns: repeat(2, 1fr);
    }

    .grid-cols-3 {
        grid-template-columns: 40% 40% 20%;
    }

    .grid-cols-4 {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* Mobile responsive for 3-column grid */
@media (max-width: 767px) {
    .grid-cols-3 {
        grid-template-columns: 1fr;
    }

    /* Hide the image column on mobile */
    .image-column {
        display: none !important;
    }
}

/* Responsive styling for book container */
.book-container {
    display: flex;
    align-items: center;
    justify-content: center;
    background-image: url('https://www.edises.it/demo/intro-formazione/images/7.png');
    background-position: bottom left;
    background-repeat: no-repeat;
    background-size: 20rem;
    padding: 2rem;
    position: relative;
}

.book-container img {
    width: 30rem;
    margin-left: 8rem;
}

@media (max-width: 1024px) {
    .book-container img {
        width: 15rem;
        margin-left: 4rem;
    }
}

@media (max-width: 1024px) {
    .book-container {
        background-size: 15rem;
        padding: 1.5rem;
    }
}

@media (max-width: 768px) {
    .book-container {
        background-size: 12rem;
        padding: 1rem;
    }

    .book-container .book-image img {
        width: 25rem !important;
    }
}

@media (max-width: 480px) {
    .book-container {
        background-size: 8rem;
        padding: 0.5rem;
    }

    .book-container .book-image img {
        width: 18rem !important;
    }
}

/* Benefits List */
.benefits-title {
    color: #8cb277;
    font-size: 3rem;
    font-weight: bold;
    line-height: 1.3;
    text-align: center;
    padding: 1rem;
}

@media (max-width: 768px) {
    .benefits-title {
        font-size: 1.5rem;
    }
}

.benefits-subtitle {
    color: #0e3f82;
    font-size: 2rem;
    font-weight: bold;
    margin-bottom: 1rem;
    line-height: 1.3;
    text-align: center;
}

@media (max-width: 768px) {
    .benefits-subtitle {
        font-size: 1rem;
    }
}

.benefits-subtitle2 {
    color: #0e3f82;
    font-size: 1.8rem;
    margin-bottom: 1rem;
    line-height: 1.3;
    font-weight: bold;
}

@media (max-width: 768px) {
    .benefits-subtitle2 {
        font-size: 1.5rem;
    }
}

.benefits-paragraph {
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 1rem;
    text-align: center;
    margin-top: 1rem;
}

.benefits-paragraph a {
    color: #f76327;
    font-weight: bold;
}

@media (max-width: 768px) {
    .benefits-paragraph {
        font-size: 1rem;
    }
}


.benefits-list {
    list-style: none;
    margin-top: 1rem;
    max-width: 30rem;
}

.benefits-list li {
    font-size: 1.5rem;
    display: flex;
    align-items: flex-start;
}

.benefits-list2 {
    list-style: none;
    margin-top: 1rem;
    max-width: 30rem;
}

.benefits-list2 li {
    font-size: 1.5rem;
    display: flex;
    align-items: flex-start;
    margin-left: 1rem;
    margin-bottom: 0 !important;
    font-weight: bold;
    padding-bottom: 1rem;
}

@media (max-width: 768px) {
    .benefits-list2 li {
        font-size: 1rem;
    }
}

.check-icon {
    background-color: transparent;
    border-radius: 50%;
    padding: 0;
    margin-right: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    min-width: 2rem;
}

.check-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.small-text {
    font-size: 0.75rem;
    color: #666;
    margin-top: 1.5rem;
    max-width: 30rem;
}

/* Form */
.form-container {
    background-color: #fbfefb;
    padding-left: 3rem;
    padding-right: 3rem;
    padding-top: 2rem;
    padding-bottom: 2rem;
    text-align: center;
    border: 1px solid #cccccc;
    border-radius: 1rem;
    margin-top: 2rem;
    margin-bottom: 2rem;
    width: 100%;
    overflow: visible;
}

@media (max-width: 768px) {
    .form-container {
        padding-left: 1rem;
        padding-right: 1rem;
        padding-top: 1rem;
        padding-bottom: 1rem;
    }
}

.form-title {
    color: #ff8c38;
    font-size: 2rem;
    font-weight: bold;
    text-align: center;
    margin-bottom: 1rem;
    line-height: 1.3;
}

.form-group {
    margin-bottom: 1rem;
    display: flex;
    flex-direction: column;
}

.form-label {
    font-size: 0.875rem;
    font-weight: bold;
    display: block;
    margin-bottom: 0.5rem;
}

.radio-group {
    display: flex;
    flex-direction: row;
    margin-top: 1rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
}

.radio-group-item {
    margin-bottom: 1rem;
}

.radio-button {
    padding: 0.5rem;
    margin-left: 1rem;
}



.form-input {
    width: 100%;
    padding: 0.5rem;
    border-radius: 8px !important;
    border: 1px solid lightgray !important;
    background-color: #f0f7e6 !important;
    color: #1a3a5f !important;
    margin-bottom: 1rem;
}

.form-text {
    font-size: 0.75rem;
    margin-bottom: 1rem;
}

.form-link {
    color: #2c4a6e;
    text-decoration: underline;
}

/* Form checkbox styles */
.form-checkbox-group {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.form-checkbox {
    margin-right: 0.5rem;
    margin-top: 0.25rem;
    width: 1.25rem;
    height: 1.25rem;
    background-color: #f0f7e6;
    border: 1px solid #2c4a6e;
    accent-color: #2c4a6e;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    cursor: pointer;
    position: relative;
    border-radius: 8px;
    aspect-ratio: 1 / 1;
}

.form-checkbox:checked {
    background-color: #2c4a6e;
}

.form-checkbox:checked::after {
    content: '✓';
    position: absolute;
    color: white;
    font-size: 0.9rem;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
}

.form-checkbox-label {
    font-size: 0.875rem;
    line-height: 1.4;
}

/* Courses Section */
.courses-section {
    background-color: #f0faef;

    padding: 2.5rem 1.5rem;
    border-top: 1px solid #d8e8c2;

}

.section-title {
    color: #ff8c38;
    font-size: 2.5rem;
    font-weight: bold;
    text-align: center;
    margin-bottom: 0.5rem;
}

.section-subtitle {
    color: #2c4a6e;
    text-align: center;
    margin-bottom: 2rem;
    color: #1a3a5f;
    font-weight: normal;
    font-size: 2rem;
}

.courses-grid {
    column-count: 2;
    column-gap: 1rem;
    text-align: left;
    font-size: 0.875rem;
}

.course-item {
    display: flex;
    align-items: flex-start;
    font-size: 1rem;
    break-inside: avoid;
    /* Prevents items from splitting across columns */
    margin-bottom: 0.5rem;
    /* Add spacing between items */
}

@media (min-width: 768px) {
    .courses-grid {
        column-count: 3;
    }
}

@media (min-width: 768px) {
    .courses-grid {
        column-count: 4;
    }
}

@media screen and (max-width: 768px) {
    .course-item {
        font-size: 1rem;
    }
}

.bullet {
    color: #ff8c38;
    margin-right: 0.5rem;
}

/* Pricing Section */
.pricing-section {
    background-color: #f0f7e6;

    padding: 2.5rem 1.5rem;
    border-top: 1px solid #d8e8c2;
}

.pricing-title {
    color: #ff8c38;
    font-size: 2.5rem;
    font-weight: bold;
    text-align: center;
    margin-bottom: 2.5rem;
}

.pricing-grid {
    display: grid;
    gap: 1.5rem;
}

@media (min-width: 768px) {
    .pricing-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.pricing-card {
    border: 1px solid #d8e8c2;
    overflow: hidden;
    background-color: #f2f2f2;
    max-width: 30rem;
}

.pricing-header {
    background-color: #f2f2f2;
    color: #1a3a5f;
    padding: 0.5rem;
    text-align: center;
}

.pricing-name {
    font-weight: bold;
    font-size: 1.875rem;
}

.pricing-price {
    font-size: 1.875rem;
    font-weight: bold;
    margin-top: 0.5rem;
}

.pricing-price span {
    color: #ff8c38;
}

.pricing-features {
    padding: 1.5rem;
}

.features-list {
    list-style: none;
    margin-bottom: 1.5rem;
}

.features-list li {
    display: flex;
    align-items: flex-start;
    margin-bottom: 0.75rem;
}

.x-icon {
    background-color: transparent;
    border-radius: 50%;
    padding: 0;
    margin-right: 0.75rem;
    margin-top: 0.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 1.5rem;
    height: 1.5rem;
    min-width: 1.5rem;
}

.x-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.buy-now-btn {
    background-color: #ff8c38;
    color: white !important;
    font-weight: normal;
    padding: 0.75rem 2rem;
    text-decoration: none;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    transition: background-color 0.2s;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.cart-icon {
    width: 1.25rem;
    height: 1.25rem;
    display: inline-flex;
}

.cart-icon svg {
    width: 100%;
    height: 100%;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* Animation keyframes */
@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Animation classes */
.animate-logo {
    animation: fadeInLeft 1s ease-out forwards;
}

.animate-title {
    animation: fadeInRight 1s ease-out forwards;
    opacity: 0;
}

.animate-content {
    animation: fadeInUp 1s ease-out forwards;
    animation-delay: 0.3s;
    opacity: 0;
}


.header .btn {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.header .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.alert {
    padding: 15px;
    margin-bottom: 20px;
    border: 1px solid transparent;
    border-radius: 4px;
}

.alert-success {
    color: #155724;
    background-color: #d4edda;
    border-color: #c3e6cb;
}

.alert-error {
    color: #721c24;
    background-color: #f8d7da;
    border-color: #f5c6cb;
}

.alert p {
    margin: 0;
    font-size: 14px;
}

/* Add this new keyframe animation */
@keyframes zoomBackground {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.1);
    }

    100% {
        transform: scale(1);
    }
}

@keyframes formSubmit {
    0% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(0.95);
        opacity: 0.5;
    }

    100% {
        transform: scale(0.9);
        opacity: 0;
    }
}


.form-submitting {
    animation: formSubmit 0.5s ease-out forwards;
    pointer-events: none;
}

/* Add loading indicator styles */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(26, 58, 95, 0.9);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 5px solid #f3f3f3;
    border-top: 5px solid #ff8c38;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.book-image {
    /*align the image in the center of the container*/
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Fade up animation styles */
.fade-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger animation for child elements */
.fade-up-stagger {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-up-stagger.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Add staggered delays for multiple elements */
.fade-up-stagger:nth-child(1) {
    transition-delay: 0.1s;
}

.fade-up-stagger:nth-child(2) {
    transition-delay: 0.2s;
}

.fade-up-stagger:nth-child(3) {
    transition-delay: 0.3s;
}

.fade-up-stagger:nth-child(4) {
    transition-delay: 0.4s;
}
