﻿/********** Modernized CSS **********/
:root {
    --primary: #0d6efd;
    --secondary: #f4b400;
    --dark: #071122;
    --navy: #0b1f3a;
    --light: #f6f7fb;
    --muted: #5a6475;
    --border: rgba(11, 30, 62, 0.12);
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    background: var(--light);
    color: var(--dark);
    font-family: 'Open Sans', sans-serif;
    line-height: 1.6;
    scroll-behavior: smooth;
}


img {
    -webkit-user-drag: none;
    user-drag: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    user-select: none;
}

.inspection-warning {
    position: fixed;
    right: 1rem;
    bottom: 1rem;
    background: rgba(5, 18, 34, 0.85);
    color: #fff;
    padding: 0.55rem 1rem;
    border-radius: 999px;
    font-size: 0.8rem;
    letter-spacing: 0.04em;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 15px 30px rgba(5, 18, 34, 0.45);
    z-index: 1051;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Jost', sans-serif;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 0.5rem;
}

p {
    margin-bottom: 1rem;
}

a {
    color: var(--primary);
}

.btn {
    font-family: 'Jost', sans-serif;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-primary {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff !important;
}

.btn-primary:hover {
    background: #0b5ed7;
    border-color: #0b5ed7;
}

.btn-outline-light {
    color: #fff;
    border-color: rgba(255, 255, 255, 0.8);
}

.btn-outline-light:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
}

#spinner {
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s ease-out, visibility 0.3s ease-out;
    z-index: 99999;
}

#spinner.show {
    visibility: visible;
    opacity: 1;
}

.back-to-top {
    right: 25px;
    bottom: 25px;
    display: none;
    background: var(--primary);
    border-radius: 50%;
    width: 48px;
    height: 48px;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
}

.navbar {
    background: linear-gradient(115deg, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.85));
    padding: 1.25rem 2rem;
    box-shadow: 0 15px 45px rgba(5, 18, 34, 0.15);
    margin-bottom: 1.25rem;
    border-radius: 0;
    border-bottom: 1px solid rgba(13, 30, 62, 0.08);
    backdrop-filter: blur(20px);
    min-height: 80px;
}

.navbar .navbar-brand img {
    border-radius: 50%;
    object-fit: cover;
}

.navbar .nav-link {
    font-size: 0.875rem;
    letter-spacing: 0.03em;
    color: var(--muted) !important;
    padding: 0.6rem 0.55rem;
    margin: 0 0.05rem;
    white-space: nowrap;
}

.navbar .navbar-collapse {
    align-items: center;
    padding-top: 0.25rem;
    padding-bottom: 0.25rem;
    flex-wrap: nowrap;
}

.navbar .btn {
    margin-top: 0.35rem;
    margin-bottom: 0.35rem;
    white-space: nowrap;
    font-size: 0.875rem;
}

@media (min-width: 992px) and (max-width: 1199px) {
    .navbar .btn.btn-primary {
        padding: 0.4rem 0.75rem;
        font-size: 0.8rem;
    }
}

.navbar .nav-link.active,
.navbar .nav-link:hover {
    color: var(--primary) !important;
}

.navbar:hover {
    transform: translateY(-1px);
    transition: transform 0.3s ease;
}

.navbar-info {
    align-items: center;
    gap: 0.75rem;
    flex-wrap: nowrap;
    white-space: nowrap;
}

.navbar-info-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.3rem 0.65rem;
    border-radius: 0.75rem;
    background: rgba(6, 13, 29, 0.05);
    font-size: 0.8rem;
    color: var(--muted);
    border: 1px solid rgba(6, 13, 29, 0.08);
    box-shadow: 0 4px 12px rgba(5, 18, 34, 0.08);
    white-space: nowrap;
}

.navbar-info-pill i {
    color: var(--primary);
    font-size: 0.9rem;
}

.hero-section {
    background: linear-gradient(135deg, rgba(29, 46, 80, 0.85), rgba(94, 137, 205, 0.65));
    color: #fff;
    padding: 130px 0 110px;
    position: relative;
    overflow: hidden;
}

.hero-section::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(5, 18, 34, 0.35);
    pointer-events: none;
    z-index: 1;
}

.hero-section .container {
    position: relative;
    z-index: 2;
}

.hero-title {
    font-size: 5.5rem;
    font-weight: 700;
    color: #fff;
    letter-spacing: -0.01em;
    line-height: 1.1;
}

.hero-section .lead {
    font-size: 1.5rem;
    color: rgba(255, 255, 255, 0.85);
    font-weight: 400;
    margin-bottom: 0.5rem;
}

.hero-desc {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.75);
    max-width: 520px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.7;
}

.hero-bg-carousel {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-bg-carousel .carousel-inner,
.hero-bg-carousel .carousel-item {
    height: 100%;
}

.hero-bg-carousel .carousel-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.78);
}

.hero-call-btn {
    background: rgba(255, 255, 255, 0.12);
    border-width: 2px;
    border-color: rgba(255, 255, 255, 0.6);
    color: #fff !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
    transition: all 0.35s ease;
}

.hero-call-btn:hover,
.hero-call-btn:focus {
    background: rgba(255, 255, 255, 0.25);
    border-color: #fff;
    color: #fff !important;
    transform: translateY(-1px);
}

.hero-actions {
    gap: 0.75rem;
}

.hero-highlights {
    list-style: none;
    padding: 0;
    margin: 1rem 0 0;
}

.hero-highlights li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.85);
}

.hero-card {
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 24px;
    padding: 2rem;
    backdrop-filter: blur(15px);
    box-shadow: 0 25px 45px rgba(5, 18, 34, 0.55);
}

.hero-gallery-card {
    border-radius: 32px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.65);
    border: 1px solid rgba(255, 255, 255, 0.35);
    box-shadow: 0 35px 70px rgba(5, 18, 34, 0.25);
    position: relative;
}

.hero-card-body {
    padding: 2rem;
    background: rgba(255, 255, 255, 0.45);
    backdrop-filter: blur(10px);
    border-radius: 28px;
    border: 1px solid rgba(255, 255, 255, 0.6);
    box-shadow: 0 25px 55px rgba(5, 18, 34, 0.2);
}
.hero-card .badge {
    background: rgba(6, 13, 29, 0.08);
    color: var(--dark);
    font-size: 0.78rem;
    letter-spacing: 0.15em;
    padding: 0.4rem 1rem;
    border-radius: 999px;
}

section {
    scroll-margin-top: 110px;
}

.info-grid {
    background: #fff;
    padding-top: 40px;
    padding-bottom: 40px;
}

.info-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 2rem;
    min-height: 260px;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    box-shadow: 0 25px 55px rgba(13, 17, 34, 0.08);
}

.info-card-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(13, 105, 207, 0.1);
    color: var(--primary);
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
}

.info-card .form-floating .form-control {
    background: #f8fafb;
    border: 1px solid rgba(13, 17, 34, 0.1);
}

.info-card .form-floating .form-control:focus {
    box-shadow: none;
    border-color: var(--primary);
}

.appointment-section {
    background: linear-gradient(120deg, rgba(13, 105, 207, 0.95), rgba(12, 33, 63, 0.95));
    color: #fff;
}

.appointment-section h1,
.appointment-section p {
    color: #fff;
}

.appointment-form {
    background: rgba(255, 255, 255, 0.08);
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.appointment-form .form-control {
    border-radius: 12px;
}

.appointment-form .form-control:focus {
    box-shadow: none;
    border-color: rgba(255, 255, 255, 0.6);
}

/* ---- Flip Card ---- */
.flip-card {
    perspective: 1200px;
    height: 220px;
    cursor: pointer;
}

.flip-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transition: transform 0.65s cubic-bezier(0.4, 0.2, 0.2, 1);
    transform-style: preserve-3d;
}

.flip-card:hover .flip-card-inner,
.flip-card.flipped .flip-card-inner {
    transform: rotateY(180deg);
}

.flip-card-front,
.flip-card-back {
    position: absolute;
    inset: 0;
    border-radius: 1.25rem;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

.flip-card-front {
    background: #fff;
    box-shadow: 0 4px 24px rgba(5,18,34,0.08);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    border: 1px solid rgba(5,18,34,0.06);
}

.flip-card-back {
    background: var(--primary);
    transform: rotateY(180deg);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1.25rem;
    text-align: center;
    color: #fff;
}

.flip-card-back p {
    color: rgba(255,255,255,0.92);
    line-height: 1.55;
}

.flip-card-back .btn-light {
    color: var(--primary);
    font-weight: 600;
    font-size: 0.8rem;
}

.flip-icon {
    width: 64px;
    height: 64px;
    object-fit: contain;
}

/* ---- Timeline Tecnologie ---- */
.timeline-tech {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
    margin-top: 2rem;
}

@media (min-width: 768px) {
    .timeline-tech {
        flex-direction: row;
        align-items: flex-start;
        gap: 0;
    }
}

.timeline-tech-item {
    flex: 1;
    position: relative;
    text-align: center;
    padding: 0 1rem;
}

@media (min-width: 768px) {
    .timeline-tech-item:not(:last-child)::after {
        content: '';
        position: absolute;
        top: 27px;
        left: calc(50% + 28px);
        width: calc(100% - 56px);
        height: 2px;
        background: rgba(255,255,255,0.18);
    }
}

.timeline-tech-number {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--primary);
    color: #fff;
    font-size: 1.1rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.1rem;
    position: relative;
    z-index: 1;
    box-shadow: 0 0 0 6px rgba(13,110,253,0.18);
}

.timeline-tech-title {
    font-size: 1rem;
    font-weight: 600;
    color: #fff;
    margin-bottom: 0.6rem;
}

.timeline-tech-desc {
    font-size: 0.85rem;
    color: rgba(255,255,255,0.65);
    line-height: 1.6;
    margin: 0;
}

.tecnologie-subtitle {
    color: rgba(255,255,255,0.6);
}

.service-card {
    border: 1px solid rgba(5, 18, 34, 0.08);
    border-radius: 24px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card .service-icon-wrapper {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: rgba(13, 105, 207, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.service-card .service-icon-wrapper img {
    width: 60%;
    height: 60%;
    object-fit: contain;
}

.service-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 25px 55px rgba(7, 17, 34, 0.12);
}

.service-card img {
    width: 56px;
    height: 56px;
    object-fit: cover;
}

.service-card button {
    border-width: 2px;
}

.contacts-section {
    background: #0f1829;
    color: #fff;
}

.contacts-section .section-title h2,
.contacts-section p {
    color: rgba(255, 255, 255, 0.9);
}

.contact-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.75rem 1rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 999px;
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: border 0.3s ease, transform 0.3s ease;
}

.contact-pill:hover {
    border-color: var(--secondary);
    transform: translateY(-2px);
}

/* ---- Sedazione Section ---- */
.sedazione-section {
    background: linear-gradient(135deg, #f0f7ff 0%, #e6f0fd 100%);
    border-top: 1px solid rgba(13, 110, 253, 0.1);
    border-bottom: 1px solid rgba(13, 110, 253, 0.1);
}

.sedazione-badge {
    background: rgba(13, 110, 253, 0.09);
    color: var(--primary);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    padding: 0.35rem 1rem;
    border-radius: 999px;
    border: 1px solid rgba(13, 110, 253, 0.2);
}

.sedazione-lead {
    font-size: 1.05rem;
    color: var(--muted);
    font-style: italic;
}

/* Immagine */
.sedazione-img {
    width: 100%;
    max-height: 300px;
    object-fit: cover;
    object-position: center top;
    border-radius: 1.25rem;
    display: block;
}

/* Material chips */
.sedazione-chips {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-top: 1rem;
}

.sedazione-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.45rem 1rem;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 600;
    color: #fff;
    letter-spacing: 0.02em;
    box-shadow: 0 2px 6px rgba(0,0,0,0.18), 0 1px 2px rgba(0,0,0,0.1);
}

.chip-blue  { background: #1565c0; }
.chip-teal  { background: #00796b; }
.chip-green { background: #2e7d32; }

.sed-features {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    margin-bottom: 1.5rem;
}

.sed-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    font-size: 0.95rem;
    color: var(--muted);
    line-height: 1.5;
}

.sed-item-icon {
    color: var(--primary);
    font-size: 1rem;
    margin-top: 0.15rem;
    flex-shrink: 0;
}

.sed-item strong {
    color: var(--dark);
}

.sed-divider {
    border: none;
    border-top: 1px solid rgba(13, 110, 253, 0.12);
    margin: 1.25rem 0;
}

.sed-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

.tecnologie-section {
    background: linear-gradient(160deg, #0b1f3a 0%, #0d2d52 60%, #0a2244 100%);
    border-top: 4px solid var(--primary);
    border-bottom: 4px solid var(--primary);
}

.tecnologie-section .section-title h5 {
    color: rgba(255, 255, 255, 0.7) !important;
}

.tecnologie-section .section-title p {
    color: rgba(255, 255, 255, 0.6);
}

.section-title h5 {
    position: relative;
    padding-bottom: 0.75rem;
}

.section-title h5::before,
.section-title h5::after {
    position: absolute;
    content: '';
    height: 3px;
    bottom: 0;
    right: 0;
    border-radius: 10px;
}

.section-title h5::before {
    width: 60px;
    background: var(--primary);
}

.section-title h5::after {
    width: 30px;
    background: var(--secondary);
}

.footer {
    background: #020713;
    color: rgba(255, 255, 255, 0.8);
}

.footer a {
    color: rgba(255, 255, 255, 0.8);
}

.footer a:hover {
    color: #fff;
}


.offer-text {
    background: rgba(5, 18, 34, 0.85);
    border-radius: 32px;
    box-shadow: 0 35px 70px rgba(5, 18, 34, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.bg-offer {
    background: linear-gradient(115deg, rgba(5, 18, 34, 0.95), rgba(13, 105, 207, 0.8)), url('../img/team-3.jpg') center/cover no-repeat;
    position: relative;
}

.offer-text h1,
.offer-text p {
    color: #fff;
    text-shadow: 0 4px 12px rgba(0,0,0,0.4);
}

.offer-text .btn-light {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.25);
    color: #fff;
}
/* ===== Team Cards ===== */
.team-card {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(11, 31, 58, 0.08);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.team-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 32px rgba(11, 31, 58, 0.14);
}

.team-card-photo {
    width: 100%;
    aspect-ratio: 4 / 5;
    overflow: hidden;
    background: var(--light);
}

.team-card-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    object-position: center top;
    display: block;
    transition: transform 0.4s ease;
}

.team-card:hover .team-card-photo img {
    transform: scale(1.04);
}

.team-card-body {
    padding: 1rem 1rem 1.1rem;
    text-align: center;
    border-top: 3px solid var(--primary);
}

.team-card-name {
    font-family: 'Jost', sans-serif;
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--dark);
    margin: 0 0 0.25rem;
    line-height: 1.3;
}

.team-card-role {
    font-size: 0.8rem;
    color: var(--muted);
    margin: 0;
    line-height: 1.4;
}

/* ===== Studio Left ===== */
.studio-lead {
    font-size: 1.05rem;
    color: var(--dark);
    line-height: 1.7;
    font-weight: 400;
}

.studio-pillars {
    display: flex;
    flex-direction: column;
    gap: 1.1rem;
}

.studio-pillar {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.studio-pillar-icon {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: rgba(13, 110, 253, 0.1);
    color: var(--primary);
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: 0.1rem;
}

.studio-pillar strong {
    display: block;
    font-size: 0.95rem;
    color: var(--dark);
    margin-bottom: 0.2rem;
}

.studio-pillar p {
    font-size: 0.88rem;
    color: var(--muted);
    margin: 0;
    line-height: 1.5;
}

/* ===== Studio Carousel ===== */
.studio-carousel {
    position: relative;
}

.studio-carousel .owl-nav {
    position: absolute;
    bottom: 1rem;
    right: 1rem;
    display: flex;
    gap: 0.5rem;
    margin: 0;
}

.studio-carousel .owl-nav button {
    width: 42px;
    height: 42px;
    display: flex !important;
    align-items: center;
    justify-content: center;
    background: var(--primary) !important;
    color: #fff !important;
    border-radius: 50% !important;
    border: none !important;
    font-size: 1.1rem;
    line-height: 1;
    box-shadow: 0 4px 14px rgba(13, 110, 253, 0.45);
    transition: background 0.2s ease, transform 0.2s ease;
    outline: none;
}

.studio-carousel .owl-nav button:hover {
    background: #0b5ed7 !important;
    transform: scale(1.1);
}

.studio-carousel .owl-nav button span {
    display: none;
}

.studio-carousel .owl-nav button i {
    pointer-events: none;
}

.studio-carousel .owl-dots {
    position: absolute;
    bottom: 1rem;
    left: 1rem;
    display: flex;
    gap: 0.4rem;
    margin: 0;
}

.studio-carousel .owl-dots .owl-dot span {
    width: 8px;
    height: 8px;
    background: rgba(255, 255, 255, 0.5) !important;
    border-radius: 50%;
    display: block;
    transition: background 0.2s ease, transform 0.2s ease;
    margin: 0;
}

.studio-carousel .owl-dots .owl-dot.active span {
    background: #fff !important;
    transform: scale(1.3);
}

@media (max-width: 991px) {
    .navbar {
        padding: 0.5rem 1rem;
        margin-bottom: 1rem;
    }
    .hero-section {
        padding: 90px 0 70px;
    }
    .hero-title {
        font-size: 3.2rem;
    }
    .hero-section .lead {
        font-size: 1.2rem;
    }
    .hero-desc {
        font-size: 1rem;
    }
}

@media (max-width: 767px) {
    .hero-card {
        padding: 1.5rem;
    }
    .info-card {
        min-height: auto;
    }
    .hero-actions {
        flex-direction: column;
    }
}
