@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

/* Header */
.header-area {
    background-color: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.wam-formatted-input__content:empty::before {
    color: #6c757d;
    content: attr(data-placeholder);
    pointer-events: none;
}

.main-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    font-weight: bold;
    font-size: 24px;
    color: #2c3e50;
}

.logo img {
    max-height: 50px;
    margin-right: 10px;
}

.nav {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav li {
    margin-left: 20px;
}

.nav a {
    text-decoration: none;
    color: #2c3e50;
    font-weight: 500;
    transition: color 0.3s;
}

.nav a:hover, .nav a.active {
    color: #e74c3c;
}

.menu-trigger {
    display: none;
}

@media (max-width: 767px) {
    .nav {
        display: none;
    }
    .menu-trigger {
        display: block;
    }
}

.shop-page {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2.5rem 1.25rem 4rem;
    color: #2c3e50;
}

.shop-hero {
    margin-bottom: 3rem;
    padding: clamp(2rem, 6vw, 4rem);
    border-radius: 24px;
    background: linear-gradient(135deg, #eaf4ff 0%, #fff2ed 100%);
    text-align: center;
}

.shop-eyebrow {
    display: inline-block;
    margin-bottom: .5rem;
    color: #e74c3c;
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.shop-hero h1,
.shop-section-heading h2,
.shop-courses-placeholder h2 {
    margin: 0;
    color: #2c3e50;
    font-weight: 700;
}

.shop-hero h1 {
    font-size: clamp(2.25rem, 5vw, 3.5rem);
}

.shop-hero p,
.shop-courses-placeholder p {
    margin: .75rem 0 0;
    color: #64748b;
}

.shop-section-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.shop-section-heading h2,
.shop-courses-placeholder h2 {
    font-size: clamp(1.5rem, 3vw, 2rem);
}

.shop-product-count {
    color: #64748b;
    font-size: .9rem;
}

.shop-calendar-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.25rem;
}

.shop-calendar-card {
    flex: 1 1 280px;
    max-width: 340px;
    overflow: hidden;
    border: 1px solid #e7edf3;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 8px 24px rgba(44, 62, 80, .07);
    transition: transform .2s ease, box-shadow .2s ease;
}

.shop-calendar-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 32px rgba(44, 62, 80, .12);
}

.shop-calendar-art {
    display: grid;
    aspect-ratio: 16 / 9;
    place-items: center;
    overflow: hidden;
    background: linear-gradient(135deg, #e74c3c, #f6a36b);
    color: #fff;
}

.shop-calendar-art img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.shop-calendar-art i {
    font-size: 3.5rem;
}

.shop-calendar-content {
    padding: 1.25rem;
}

.shop-calendar-content h3 {
    margin: 0;
    color: #2c3e50;
    font-size: 1.2rem;
    font-weight: 700;
}

.shop-calendar-description {
    min-height: 3rem;
    margin: .55rem 0 1rem;
    color: #64748b;
}

.shop-calendar-meta {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem 1rem;
    color: #64748b;
    font-size: .85rem;
}

.shop-calendar-meta i {
    margin-right: .3rem;
    color: #3498db;
}

.shop-calendar-purchase {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .75rem;
    margin-top: 1.25rem;
    padding-top: 1rem;
    border-top: 1px solid #eef1f5;
}

.shop-calendar-price {
    color: #2c3e50;
    font-size: 1.25rem;
}

.shop-buy-button {
    border: 0;
    border-radius: 999px;
    background: #e74c3c;
    color: #fff;
    font-weight: 600;
    text-decoration: none;
}

.shop-buy-button:hover,
.shop-buy-button:focus {
    background: #c0392b;
    color: #fff;
}

.shop-buy-button:disabled {
    opacity: .7;
}

.shop-simulated-payment {
    margin: .75rem 0 0;
    color: #7b8794;
    font-size: .75rem;
}

.shop-purchase-result {
    margin: .75rem 0 0;
    font-size: .9rem;
}

.shop-empty-state,
.shop-courses-placeholder {
    padding: 2rem;
    border: 1px solid #e7edf3;
    border-radius: 18px;
    background: #fff;
    text-align: center;
}

.shop-empty-state i {
    color: #3498db;
    font-size: 2.5rem;
}

.shop-empty-state h2 {
    margin: .75rem 0 .35rem;
    font-size: 1.25rem;
    font-weight: 700;
}

.shop-empty-state p {
    margin: 0;
    color: #64748b;
}

.shop-courses-placeholder {
    margin-top: 3rem;
    background: #f8fafc;
}

@media (max-width: 575.98px) {
    .shop-page {
        padding: 1.25rem .9rem 3rem;
    }

    .shop-section-heading {
        align-items: start;
    }

    .shop-calendar-purchase {
        align-items: start;
        flex-direction: column;
    }
}

/* Hero Section */
.main-banner {
    padding: 120px 0;
    background: linear-gradient(135deg, #e0eafc 0%, #cfdef3 100%);
}

.header-text h6 {
    color: #e74c3c;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 10px;
}

.header-text h2 {
    font-size: 3rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 25px;
    line-height: 1.2;
}

.header-text em {
    font-style: normal;
    color: #3498db;
}

.main-button-gradient a {
    display: inline-block;
    padding: 12px 30px;
    background: #e74c3c;
    color: #fff;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    transition: background 0.3s;
}

.main-button-gradient a:hover {
    background: #c0392b;
}

.right-image img {
    max-width: 100%;
    border-radius: 10px;
}

/* Services / Features */
.services {
    padding: 80px 0;
    background: #fff;
}

.section-heading {
    text-align: center;
    margin-bottom: 50px;
}

.section-heading h6 {
    color: #e74c3c;
    text-transform: uppercase;
    font-weight: 600;
    margin-bottom: 10px;
}

.section-heading h4 {
    font-size: 2.2rem;
    color: #2c3e50;
    margin-top: 0;
}

.service-item {
    background: #f9f9fc;
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
    margin-bottom: 30px;
    height: 100%;
}

.service-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
}

.service-item .icon img {
    max-width: 60px;
    margin-bottom: 20px;
}

.service-item h4 {
    color: #2c3e50;
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 1.4rem;
}

.service-item p {
    color: #666;
}

/* Courses */
.our-courses {
    padding: 80px 0;
    background: #f3f4f6;
}

.naccs .menu {
    display: flex;
    flex-direction: column;
}

.naccs .menu div {
    padding: 15px 20px;
    background: #fff;
    margin-bottom: 10px;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 600;
    color: #2c3e50;
    transition: background 0.3s, color 0.3s;
}

.naccs .menu div.active, .naccs .menu div:hover {
    background: #3498db;
    color: #fff;
}

.nacc ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.nacc li {
    display: none;
    background: #fff;
    padding: 30px;
    border-radius: 10px;
}

.nacc li.active {
    display: block;
}

.left-image {
    position: relative;
    margin-bottom: 20px;
}

.left-image img {
    width: 100%;
    border-radius: 10px;
}

.price {
    position: absolute;
    top: 20px;
    right: 20px;
}

.price h6 {
    background: #e74c3c;
    color: #fff;
    padding: 8px 20px;
    border-radius: 20px;
    margin: 0;
    font-size: 18px;
}

.right-content h4 {
    color: #2c3e50;
    margin-top: 0;
    margin-bottom: 20px;
    font-size: 1.8rem;
}

.right-content p {
    color: #555;
    margin-bottom: 20px;
}

.right-content span {
    display: inline-block;
    margin-right: 15px;
    font-weight: 500;
    color: #e74c3c;
    margin-bottom: 20px;
}

.text-button a {
    display: inline-block;
    padding: 10px 25px;
    border: 2px solid #3498db;
    color: #3498db;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
}

.text-button a:hover {
    background: #3498db;
    color: #fff;
}

/* Call to Action */
.simple-cta {
    padding: 80px 0;
    background: #2c3e50;
    color: #fff;
}

.simple-cta h6 {
    color: #3498db;
    text-transform: uppercase;
    font-weight: 600;
    margin-bottom: 10px;
}

.simple-cta h4 {
    font-size: 2.5rem;
    margin-top: 0;
    margin-bottom: 20px;
}

.white-button a {
    display: inline-block;
    padding: 12px 30px;
    background: #fff;
    color: #2c3e50;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    transition: background 0.3s, color 0.3s;
}

.white-button a:hover {
    background: #f1f2f6;
    color: #e74c3c;
}

/* Testimonials */
.testimonials {
    padding: 80px 0;
    background: #fff;
}

.owl-testimonials .item {
    background: #f9f9fc;
    padding: 40px;
    border-radius: 10px;
    text-align: center;
    margin: 15px;
}

.owl-testimonials .item p {
    font-style: italic;
    color: #555;
    margin-bottom: 20px;
}

.owl-testimonials .item h4 {
    color: #2c3e50;
    margin-bottom: 5px;
}

.owl-testimonials .item span {
    color: #e74c3c;
    font-size: 0.9rem;
    display: block;
    margin-bottom: 15px;
}

/* Contact */
.contact-us {
    padding: 80px 0;
    background: #f3f4f6;
}

.contact-info {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    background: #fff;
    padding: 20px;
    border-radius: 10px;
}

.contact-info .icon {
    margin-right: 15px;
    color: #3498db;
    font-size: 24px;
}

.contact-info h4 {
    margin: 0 10px 0 0;
    font-size: 16px;
    color: #2c3e50;
}

.contact-info span {
    color: #777;
}

.contact-us form {
    background: #fff;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.main-gradient-button {
    background: #3498db;
    color: #fff;
    border: none;
    padding: 12px 30px;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 600;
    transition: background 0.3s;
    width: 100%;
}

.main-gradient-button:hover {
    background: #2980b9;
}

form input, form textarea {
    width: 100%;
    padding: 15px;
    margin-bottom: 20px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-family: 'Poppins', sans-serif;
}

form textarea {
    height: 150px;
    resize: vertical;
}

/* Footer */
.social-icons {
    display: flex;
    justify-content: center;
    list-style: none;
    padding: 0;
    margin: 40px 0 20px;
}

.social-icons li {
    margin: 0 10px;
}

.social-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: #fff;
    color: #2c3e50;
    border-radius: 50%;
    text-decoration: none;
    transition: all 0.3s;
}

.social-icons a:hover {
    background: #3498db;
    color: #fff;
}

.copyright {
    text-align: center;
    color: #777;
}

.copyright a {
    color: #3498db;
    text-decoration: none;
}

.wam-hero {
    position: relative;
    overflow: hidden;
}

.wam-pill {
    display: inline-block;
    background: rgba(52, 152, 219, 0.14);
    color: #1e6ba8;
    font-weight: 600;
    border-radius: 999px;
    padding: 6px 14px;
    margin-bottom: 18px;
}

.wam-hero-subtitle {
    font-size: 1.05rem;
    color: #4b5563;
    max-width: 580px;
}

.wam-btn-primary,
.wam-btn-secondary,
.wam-btn-small,
.white-button-link {
    display: inline-block;
    text-decoration: none;
    border-radius: 999px;
    font-weight: 600;
    transition: all 0.25s ease;
}

.wam-btn-primary {
    background: #e74c3c;
    color: #fff;
    padding: 12px 24px;
}

.wam-btn-primary:hover {
    background: #ca3d2e;
    color: #fff;
}

.wam-btn-secondary {
    border: 2px solid #3498db;
    color: #3498db;
    padding: 10px 22px;
}

.wam-btn-secondary:hover {
    background: #3498db;
    color: #fff;
}

.wam-hero-card {
    background: #fff;
    border-radius: 20px;
    padding: 28px;
    box-shadow: 0 18px 45px rgba(33, 49, 72, 0.12);
    border: 1px solid #e8edf4;
}

.wam-hero-card h5 {
    font-size: 1.4rem;
    margin-bottom: 8px;
    color: #1f2937;
}

.wam-price {
    font-size: 2rem;
    color: #111827;
    font-weight: 700;
    line-height: 1;
}

.wam-discount {
    background: #eaf7ef;
    color: #2e7d32;
    font-weight: 700;
    padding: 6px 12px;
    border-radius: 999px;
}

.wam-check-list {
    list-style: none;
    padding: 0;
}

.wam-check-list li {
    margin-bottom: 8px;
    color: #374151;
}

.wam-check-list li::before {
    content: "✓";
    color: #16a34a;
    margin-right: 8px;
    font-weight: 700;
}

.wam-trust-strip {
    background: #ffffff;
    padding: 28px 0;
    border-top: 1px solid #edf2f7;
    border-bottom: 1px solid #edf2f7;
}

.wam-trust-strip strong {
    display: block;
    font-size: 1.6rem;
    color: #0f172a;
}

.wam-trust-strip span {
    color: #64748b;
}

.wam-catalog {
    background: #f7f9fc;
}

.wam-product-card {
    background: #fff;
    border-radius: 16px;
    border: 1px solid #e8edf4;
    padding: 22px;
    height: 100%;
    display: flex;
    flex-direction: column;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.wam-product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 36px rgba(31, 41, 55, 0.12);
}

.wam-product-card.featured {
    border-color: #3498db;
    box-shadow: 0 16px 30px rgba(52, 152, 219, 0.18);
}

.wam-level {
    display: inline-block;
    font-size: 0.78rem;
    color: #1e6ba8;
    background: #eaf4fc;
    padding: 4px 10px;
    border-radius: 999px;
    margin-bottom: 12px;
    font-weight: 600;
}

.wam-product-card h5 {
    color: #1f2937;
    margin-bottom: 10px;
}

.wam-product-card p {
    color: #4b5563;
}

.wam-product-card ul {
    padding-left: 18px;
    color: #374151;
    margin-bottom: 16px;
}

.wam-product-footer {
    margin-top: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.wam-product-footer strong {
    font-size: 1.6rem;
    color: #0f172a;
}

.wam-btn-small {
    padding: 8px 16px;
    background: #0f172a;
    color: #fff;
}

.wam-btn-small:hover {
    background: #1f2937;
    color: #fff;
}

.wam-benefit-card,
.wam-review-card,
.wam-contact-box {
    background: #fff;
    border: 1px solid #e8edf4;
    border-radius: 16px;
    padding: 24px;
    height: 100%;
}

.wam-benefit-card i {
    font-size: 1.9rem;
    color: #3498db;
}

.wam-benefit-card h5 {
    margin-top: 12px;
    color: #1f2937;
}

.wam-bundle {
    border-radius: 20px;
    background: linear-gradient(120deg, #1f2937 0%, #2c3e50 100%);
}

.white-button-link {
    background: #fff;
    color: #1f2937;
    padding: 12px 24px;
}

.white-button-link:hover {
    background: #f3f4f6;
    color: #111827;
}

.wam-review-card p {
    color: #374151;
    font-style: italic;
    margin-bottom: 12px;
}

.wam-review-card strong {
    display: block;
    color: #111827;
}

.wam-review-card span {
    color: #64748b;
    font-size: 0.9rem;
}

.wam-contact-box h4 {
    color: #1f2937;
    margin-bottom: 12px;
}

.wam-contact-box ul {
    list-style: none;
    padding: 0;
    margin-top: 16px;
}

.wam-contact-box li {
    margin-bottom: 10px;
    color: #374151;
}

.wam-contact-box i {
    color: #22c55e;
    margin-right: 8px;
}

.wam-contact-form {
    border: 1px solid #e8edf4;
}

@media (max-width: 991px) {
    .header-text h2 {
        font-size: 2.3rem;
    }

    .wam-hero-card {
        padding: 22px;
    }
}

/* Admin products */
.prodotti-page {
    max-width: 1280px;
    margin: 0 auto;
    padding: 2.5rem 1.25rem 4rem;
    color: #333;
}

.products-heading {
    margin-bottom: 1.5rem;
}

.products-eyebrow {
    display: inline-block;
    margin-bottom: .4rem;
    color: #e74c3c;
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.products-heading h1 {
    margin: 0;
    color: #2c3e50;
    font-size: clamp(1.8rem, 3vw, 2.4rem);
    font-weight: 700;
}

.products-toolbar {
    align-items: center;
    gap: .75rem;
    padding: 1rem 1.25rem;
    border: 1px solid rgba(44, 62, 80, .06);
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 5px 18px rgba(44, 62, 80, .06);
}

.products-toolbar .me-auto {
    flex: 1;
}

.prodotti-page .btn-primary {
    border-color: #e74c3c;
    border-radius: 999px;
    background-color: #e74c3c;
    font-weight: 600;
    transition: background-color .2s ease, transform .2s ease, box-shadow .2s ease;
}

.prodotti-page .btn-primary:hover {
    border-color: #c0392b;
    background-color: #c0392b;
    box-shadow: 0 5px 12px rgba(231, 76, 60, .2);
    transform: translateY(-1px);
}

.products-toolbar input {
    min-width: 3.5rem;
    border: 1px solid #dce3ea;
    border-radius: 8px;
    padding: .35rem .5rem;
    color: #2c3e50;
    text-align: center;
}

.products-toolbar .btn-group .btn {
    border: 1px solid #dce3ea;
    color: #2c3e50;
    font-weight: 500;
}

.products-toolbar .btn-group .btn:hover:not(:disabled) {
    border-color: #3498db;
    color: #3498db;
}

.product-grid > [class*="col-"] {
    display: flex;
}

.product-card {
    width: 100%;
    overflow: visible;
    border: 1px solid rgba(44, 62, 80, .07);
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 5px 18px rgba(44, 62, 80, .06);
    transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}

.product-card:hover {
    border-color: rgba(52, 152, 219, .28);
    box-shadow: 0 12px 26px rgba(44, 62, 80, .12);
    transform: translateY(-4px);
}

.product-card .card-body {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: .75rem;
    padding: 1.35rem;
    cursor: pointer;
}

.product-card .card-body > div:first-child {
    min-width: 0;
}

.product-card .card-title {
    margin-bottom: .9rem;
    color: #2c3e50;
    font-size: 1.1rem;
    font-weight: 700;
    overflow-wrap: anywhere;
}

.product-card .card-text {
    margin-bottom: .55rem;
    color: #667085;
    font-size: .9rem;
}

.product-card .dropdown-toggle {
    border: 0;
    border-radius: 50%;
    background: #f3f6f9;
    color: #2c3e50;
}

.product-card .dropdown-toggle:hover,
.product-card .dropdown-toggle:focus {
    background: #eaf4fb;
    color: #3498db;
}

.product-card .dropdown-menu {
    border: 1px solid rgba(44, 62, 80, .08);
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(44, 62, 80, .12);
}

.product-card .dropdown-item {
    padding: .55rem 1rem;
}

.product-card .dropdown-item:hover {
    background: #f3f8fc;
    color: #3498db;
}

.product-editor,
.product-days {
    border: 1px solid rgba(44, 62, 80, .06);
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 5px 18px rgba(44, 62, 80, .06);
}

.product-editor {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 1.25rem;
    padding: 1.5rem;
}

.product-editor > .mb-3:first-child,
.product-editor > .mb-3:nth-child(2) {
    grid-column: 1 / -1;
}

.product-editor .form-label,
.product-editor > .mb-3 > label:not(.form-label) {
    color: #2c3e50;
    font-weight: 600;
}

.product-editor .form-control,
.product-editor .input-group-text {
    min-height: 44px;
    border-color: #dce3ea;
    border-radius: 9px;
}

.product-editor textarea.form-control {
    min-height: 110px;
    resize: vertical;
}

.product-editor .form-control:focus {
    border-color: #3498db;
    box-shadow: 0 0 0 .2rem rgba(52, 152, 219, .14);
}

.product-editor .form-control:disabled,
.product-editor .form-control[readonly] {
    background-color: #f6f8fa;
}

.product-editor .input-group-text {
    display: flex;
    align-items: center;
    background: #f6f8fa;
    color: #667085;
}

.product-days {
    padding: 1.5rem;
}

.product-days > h4 {
    margin-bottom: 1.25rem !important;
    color: #2c3e50;
    font-size: 1.35rem;
    font-weight: 700;
}

.product-day-card {
    min-height: 90px;
    border: 1px solid #e1e7ed;
    border-radius: 12px;
    background: #f9f9fc;
    transition: border-color .2s ease, background-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.product-day-card:hover {
    border-color: #3498db;
    box-shadow: 0 6px 15px rgba(52, 152, 219, .12);
    transform: translateY(-2px);
}

.product-day-card.day-card-selected {
    border-color: #3498db;
    background: #3498db;
    box-shadow: 0 6px 16px rgba(52, 152, 219, .24);
}

.product-day-card .card-body {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: .75rem;
}

.product-day-card .card-title {
    margin: 0;
    font-weight: 700;
}

.wam-formatted-input__content {
    min-height: 15rem;
    overflow-y: auto;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
}

.wam-formatted-input__content[contenteditable="true"] {
    resize: vertical;
}

.wam-formatted-input__content[contenteditable="true"]:focus {
    border-color: #86b7fe;
    box-shadow: 0 0 0 .25rem rgba(13, 110, 253, .25);
    outline: 0;
}

.wam-formatted-input__content--readonly {
    background-color: #e9ecef;
}

.product-days .btn-outline-secondary {
    border-color: #3498db;
    border-radius: 999px;
    color: #3498db;
}

.product-days .btn-outline-secondary:hover {
    border-color: #3498db;
    background: #3498db;
    color: #fff;
}

.product-days .img-thumbnail {
    border-color: #e1e7ed;
    border-radius: 10px;
}

.product-days + .my-4 {
    display: flex;
    justify-content: flex-end;
}

.products-modal .modal-content {
    overflow: hidden;
    border: 0;
    border-radius: 16px;
    box-shadow: 0 18px 50px rgba(44, 62, 80, .2);
}

@media (max-width: 767px) {
    .prodotti-page {
        padding: 1.5rem .75rem 2.5rem;
    }

    .products-toolbar {
        align-items: stretch;
    }

    .products-toolbar .me-auto {
        display: none;
    }

    .products-toolbar .btn-group {
        justify-content: space-between;
    }

    .products-toolbar .btn-group .btn {
        padding: .4rem .55rem;
        font-size: .85rem;
    }

    .product-editor {
        grid-template-columns: minmax(0, 1fr);
        padding: 1rem;
    }

    .product-days {
        padding: 1rem;
    }

    .product-day-card {
        min-height: 72px;
    }
}

.calendar-background-preview {
    max-width: 100%;
    max-height: 220px;
    object-fit: contain;
}

.calendar-days-board {
    position: relative;
    min-height: 220px;
    overflow: hidden;
    padding: 1rem;
    border-radius: 1rem;
    background-color: #f8f9fa;
}

.calendar-days-background {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: .3;
    pointer-events: none;
}

.calendar-days-grid {
    position: relative;
    z-index: 1;
}

.calendar-day-tile {
    display: flex;
    width: 100%;
    height: 190px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    border: 1px solid rgba(33, 37, 41, .2);
    border-radius: .75rem;
    color: #212529;
    box-shadow: 0 .125rem .25rem rgba(0, 0, 0, .12);
    transition: transform .2s ease, box-shadow .2s ease;
}

.calendar-day-tile:hover,
.calendar-day-tile:focus-visible {
    transform: translateY(-2px);
    box-shadow: 0 .5rem 1rem rgba(0, 0, 0, .18);
}

.calendar-day-date {
    font-size: 1.1rem;
    font-weight: 700;
}

.calendar-day-action {
    font-size: .875rem;
}

.calendar-day-preview {
    display: flex;
    width: 100%;
    height: 100%;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: .35rem;
    overflow: hidden;
}

.calendar-day-preview-image {
    width: 48px;
    height: 48px;
    flex: 0 0 auto;
    border-radius: .35rem;
    object-fit: cover;
}

.calendar-day-preview-text {
    display: -webkit-box;
    overflow: hidden;
    font-size: .72rem;
    line-height: 1.2;
    text-align: center;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 7;
}

.calendar-day-modal-image {
    display: block;
    width: 100%;
    max-height: 60vh;
    object-fit: contain;
    background-color: #f8f9fa;
}

.advent-screen {
    position: relative;
    isolation: isolate;
    min-height: calc(100vh - 5rem);
    overflow: hidden;
    padding: 1.5rem clamp(1rem, 4vw, 3rem) 3rem;
    background-color: #090d14;
    color: #fff;
}

.advent-screen::before {
    position: absolute;
    z-index: -1;
    inset: 0;
    background: linear-gradient(180deg, rgba(5, 9, 15, .58), rgba(5, 9, 15, .34) 48%, rgba(5, 9, 15, .7));
    content: '';
}

.advent-background-image {
    position: absolute;
    z-index: -2;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.advent-screen-content {
    position: relative;
    z-index: 1;
    max-width: 1200px;
    margin: 0 auto;
}

.advent-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, .2);
}

.advent-brand {
    display: flex;
    align-items: center;
    gap: .65rem;
    color: rgba(255, 255, 255, .86);
    font-size: 1.2rem;
    font-weight: 700;
}

.advent-brand > i {
    font-size: 1.8rem;
}

.advent-brand small {
    display: block;
    color: rgba(255, 255, 255, .62);
    font-size: .7rem;
    font-weight: 500;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.advent-back-button {
    padding: .55rem .9rem;
    border: 1px solid rgba(255, 255, 255, .35);
    border-radius: .4rem;
    background: rgba(10, 14, 20, .38);
    color: #fff;
}

.advent-back-button:hover {
    background: rgba(255, 255, 255, .16);
}

.advent-title {
    max-width: 760px;
    margin: 2rem auto 1.75rem;
    text-align: center;
}

.advent-kicker {
    color: rgba(255, 255, 255, .72);
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: .16em;
    text-transform: uppercase;
}

.advent-title h1 {
    margin: .4rem 0;
    color: #fff;
    font-family: Georgia, 'Times New Roman', serif;
    font-size: clamp(2.2rem, 5vw, 4rem);
    font-weight: 800;
    line-height: 1.05;
    text-shadow: 0 3px 20px rgba(0, 0, 0, .6);
}

.advent-title p {
    margin: .75rem 0 0;
    color: rgba(255, 255, 255, .86);
}

.advent-loading {
    color: #fff;
}

.advent-error {
    max-width: 760px;
    margin: 2rem auto;
}

.calendar-days-board {
    min-height: 0;
    padding: 0;
    overflow: visible;
    background: transparent;
}

.calendar-days-grid {
    display: grid;
    max-width: 930px;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: .75rem;
    margin: 0 auto;
}

.calendar-day-cell {
    min-width: 0;
}

.calendar-day-tile {
    height: 170px;
    border: 1px solid rgba(255, 255, 255, .18);
    border-radius: .25rem;
    color: rgba(255, 255, 255, .92);
    backdrop-filter: blur(1px);
    box-shadow: 0 8px 22px rgba(0, 0, 0, .26);
}

.calendar-day-date {
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 2.7rem;
    font-weight: 900;
    line-height: 1;
    text-shadow: 0 2px 8px rgba(0, 0, 0, .35);
}

.calendar-day-action {
    color: rgba(255, 255, 255, .8);
    font-size: .7rem;
    font-weight: 600;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.calendar-day-preview-text {
    color: #fff;
    text-shadow: 0 1px 3px rgba(0, 0, 0, .65);
}

.advent-day-modal .modal-content {
    overflow: hidden;
    border: 0;
    border-radius: .35rem;
    box-shadow: 0 18px 55px rgba(0, 0, 0, .45);
}

.advent-day-modal .calendar-day-modal-image {
    max-height: min(48vh, 420px);
    object-fit: cover;
}

.advent-day-modal .modal-header {
    align-items: flex-start;
}

.advent-day-modal .advent-kicker {
    color: #747b85;
}

@media (max-width: 991.98px) {
    .calendar-days-grid {
        max-width: 760px;
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

@media (max-width: 767.98px) {
    .advent-screen {
        padding: 1rem .85rem 2rem;
    }

    .advent-title {
        margin: 1.5rem auto;
    }

    .calendar-days-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: .55rem;
    }

    .calendar-day-tile {
        height: 160px;
    }
}

@media (max-width: 480px) {
    .calendar-days-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .advent-brand {
        font-size: 1rem;
    }

    .advent-back-button {
        padding: .45rem .6rem;
        font-size: .82rem;
    }
}

.purchase-detail {
    margin: 1.5rem 0;
    padding: 1.5rem;
    border: 1px solid #dce4ee;
    border-radius: 1rem;
    background: #fff;
    overflow-wrap: anywhere;
}

.purchase-actions, .purchase-filters {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .75rem;
    margin: 1rem 0;
}

.purchase-filters { align-items: end; }
.purchase-filters label { display: grid; gap: .25rem; }
.purchases-page .table { background: #fff; }
