/*
Theme Name: QualityClinics
Theme URI: https://tuosito.it
Author: Tuo Nome
Author URI: https://tuosito.it
Description: Tema professionale per studi dentistici e cliniche mediche, completamente integrato con Bootstrap 5
Version: 1.0
License: GPL v2 or later
Text Domain: qualityclinics
*/

/* --------------------------------------------
   QUALITYCLINICS THEME - MAIN STYLESHEET
   Colori: sfondo #f7f8f1, accento #00c1de
   Font: HV-Muse-Regular per titoli, Work Sans per testo
--------------------------------------------- */

/* Import font Google (solo Work Sans) */
@import url('https://fonts.googleapis.com/css2?family=Work+Sans:wght@300;400;500;600;700;800&display=swap');

/* --------------------------------------------
   CARICAMENTO FONT HV-MUSE-REGULAR (locale)
   Il file deve essere nella cartella /fonts/ del tema
--------------------------------------------- */
@font-face {
    font-family: 'HV-Muse-Regular';
    src: url('fonts/HV-Muse-Regular.woff2') format('woff2');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'HV-Muse-Regular';
    src: url('fonts/HV-Muse-Regular.woff2') format('woff2');
    font-weight: bold;
    font-style: normal;
    font-display: swap;
}

/* Variabili CSS */
:root {
    --bg-color: #f7f8f1;
    --primary-color: #00c1de;
    --primary-dark: #00a0b8;
    --primary-light: #4dd4eb;
    --primary-gradient: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    --accent: var(--primary-color);
    --accent-hover: #00a0b8;
    --text-dark: #2c3e42;
    --text-light: #5a7a82;
    --white: #ffffff;
    --shadow-sm: 0 5px 20px rgba(0,0,0,0.05);
    --shadow-md: 0 10px 30px rgba(0,0,0,0.1);
    --shadow-lg: 0 20px 40px rgba(0,0,0,0.15);
    --border-radius: 20px;
    --transition: all 0.3s ease;
    
    /* Font family */
    --font-heading: 'HV-Muse-Regular', 'Times New Roman', serif;
    --font-body: 'Work Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* Reset base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-color);
    font-family: var(--font-body);
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

/* --------------------------------------------
   TITOLI H1, H2, H3, H4, H5, H6 - HV-Muse-Regular
--------------------------------------------- */
h1, h2, h3, h4, h5, h6,
.hero-content h1,
.section-title,
.service-card h3,
.testimonial-author,
.blog-card h3,
.footer h4,
.widget-title,
.carousel-caption h1,
.page-title,
.entry-title,
.comment-author,
.navbar-brand,
.logo a,
.display-1, .display-2, .display-3, .display-4, .display-5, .display-6 {
    font-family: 'HV-Muse-Regular', 'Times New Roman', serif !important;
    font-weight: 700;
    line-height: 1.3;
    color: var(--primary-color);
    /* TEXT-SHADOW AGGIUNTO */
    text-shadow: #afaeae 2px 2px 3px;
}

/* Stili specifici heading */
h1 {
    font-size: 3.5rem;
    font-weight: 800;
}

h2 {
    font-size: 2.5rem;
    font-weight: 700;
}

h3 {
    font-size: 1.75rem;
    font-weight: 700;
}

h4 {
    font-size: 1.5rem;
    font-weight: 600;
}

h5 {
    font-size: 1.25rem;
    font-weight: 600;
}

h6 {
    font-size: 1rem;
    font-weight: 600;
}

/* Section Title */
.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 50px;
    color: var(--primary-color);
    position: relative;
    font-family: 'HV-Muse-Regular', 'Times New Roman', serif !important;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: var(--primary-gradient);
    margin: 15px auto 0;
    border-radius: 2px;
}

/* --------------------------------------------
   TESTO PARAGRAFO E TUTTO IL RESTO - Work Sans
--------------------------------------------- */
p,
.paragraph,
.testimonial-text,
.service-card p,
.blog-content p,
.page-content p,
.generic-page p,
.carousel-caption p,
a:not(.btn-quality):not(.btn-prenota),
li,
span,
.small,
.text-muted,
.post-meta,
.read-more,
.top-bar-item,
.navbar-nav .nav-link,
.copyright,
button,
input,
textarea,
select {
    font-family: var(--font-body);
}

/* Bottoni personalizzati */
.btn-quality {
    display: inline-block;
    padding: 15px 40px;
    background: var(--primary-color);
    color: var(--white);
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    font-family: var(--font-body);
}

.btn-quality:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
    background: var(--primary-dark);
    color: var(--white);
}

.btn-quality-outline {
    background: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
}

.btn-quality-outline:hover {
    background: var(--primary-color);
    color: var(--white);
}

/* Header */
.site-header {
    position: relative;
    width: 100%;
    background: rgba(247, 248, 241, 0.98);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-sm);
    z-index: 1001;
    padding: 15px 0;
    transition: var(--transition);
}

.logo img {
    max-height: 64px;
    width: auto;
}

.logo a {
    text-decoration: none;
}

/* Navigazione */
.navbar-nav .nav-link {
    color: var(--text-dark);
    font-weight: 500;
    transition: var(--transition);
    font-family: var(--font-body);
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: var(--primary-color);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    background: var(--bg-color);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    margin-top: 80px;
}

.hero-content h1 {
    font-size: 4rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
    animation: fadeInUp 1s ease;
}

.hero-content p {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    color: var(--text-dark);
    animation: fadeInUp 1s ease 0.2s both;
    font-family: var(--font-body);
}

.hero-content .btn-quality {
    animation: fadeInUp 1s ease 0.4s both;
}

/* Service Cards */
.service-card {
    background: var(--white);
    padding: 40px 30px;
    border-radius: var(--border-radius);
    text-align: center;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
    height: 100%;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-md);
}

.service-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    background: var(--primary-gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.service-card:hover .service-icon {
    transform: scale(1.1);
}

.service-icon i {
    font-size: 40px;
    color: var(--white);
}

.service-card h3 {
    margin-bottom: 15px;
    color: var(--primary-color);
}

.service-card p {
    color: var(--text-light);
    font-family: var(--font-body);
}

/* Testimonial Cards */
.testimonial-card {
    background: var(--white);
    padding: 30px;
    border-radius: var(--border-radius);
    text-align: center;
    transition: var(--transition);
    height: 100%;
    box-shadow: var(--shadow-sm);
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.testimonial-text {
    font-style: italic;
    margin-bottom: 20px;
    position: relative;
    color: var(--text-dark);
    font-family: var(--font-body);
}

.testimonial-text::before {
    content: '"';
    font-size: 60px;
    color: var(--primary-color);
    opacity: 0.3;
    position: absolute;
    top: -20px;
    left: -10px;
    font-family: serif;
}

.testimonial-author {
    font-weight: 700;
    color: var(--primary-color);
    margin-top: 15px;
    font-family: 'HV-Muse-Regular', 'Times New Roman', serif !important;
}

/* Blog Cards */
.blog-card {
    background: var(--white);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    height: 100%;
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.blog-card img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: var(--transition);
}

.blog-card:hover img {
    transform: scale(1.05);
}

.blog-content {
    padding: 25px;
}

.blog-content h3 {
    margin-bottom: 10px;
    font-size: 1.3rem;
}

.blog-content h3 a {
    color: var(--primary-color);
    text-decoration: none;
}

.blog-content h3 a:hover {
    color: var(--primary-dark);
}

.read-more {
    display: inline-block;
    margin-top: 15px;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    font-family: var(--font-body);
}

.read-more:hover {
    color: var(--primary-dark);
    transform: translateX(5px);
}

/* Footer */
.footer {
    /* background: #487783; */
	background: #9fbec6;
    color: #8aa3aa;
    padding: 60px 0 20px;
}

.footer h4 {
    /* color: var(--primary-color); */
	color:#fff;
    margin-bottom: 20px;
	font-weight:bold;
}

.footer a {
    color: #8aa3aa;
    text-decoration: none;
    transition: var(--transition);
    font-family: var(--font-body);
}

.footer a:hover {
    color: var(--primary-color);
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 15px;
}

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    transition: var(--transition);
}

.social-links a:hover {
    background: var(--primary-color);
    transform: translateY(-3px);
}

.social-links a:hover i {
    color: var(--white);
}

.social-links i {
    color: var(--white);
    font-size: 1.2rem;
}

.copyright {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #2a3a3e;
    font-family: var(--font-body);
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--primary-gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 999;
    text-decoration: none;
    box-shadow: var(--shadow-sm);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    transform: translateY(-5px);
    background: var(--primary-dark);
    color: white;
}

/* Animazioni */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Form Elements */
input, textarea, select {
    background: var(--white);
    border: 1px solid #e0e4dc;
    border-radius: 12px;
    padding: 12px 16px;
    font-family: var(--font-body);
    transition: var(--transition);
}

input:focus, textarea:focus, select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 193, 222, 0.1);
}

/* Responsive */
@media (max-width: 768px) {
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.8rem;
    }
    
    h3 {
        font-size: 1.4rem;
    }
    
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .hero-content p {
        font-size: 1rem;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
}

@media (max-width: 576px) {
    .hero-content h1 {
        font-size: 1.5rem;
    }
    
    .service-card, .testimonial-card, .blog-content {
        padding: 20px;
    }
}

/* --------------------------------------------
   HERO SLIDESHOW
--------------------------------------------- */
.hero-slideshow {
    position: relative;
    height: 100vh;
    min-height: 600px;
    overflow: hidden;
    margin-top: 0;
}

.carousel {
    height: 100%;
}

.carousel-inner {
    height: 100%;
}

.carousel-item {
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
}

.carousel-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
}

.carousel-caption {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    width: 80%;
    max-width: 800px;
    z-index: 10;
}

.carousel-caption h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    color: var(--white);
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
	display:none;
}

.carousel-caption p {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    color: var(--white);
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
    font-family: var(--font-body);
}

.carousel-caption .btn-quality {
    background: var(--primary-color);
    color: var(--white);
    border: none;
    padding: 12px 35px;
    font-size: 1rem;
}

.carousel-caption .btn-quality:hover {
    background: var(--primary-dark);
    transform: translateY(-3px);
}

/* Carousel Navigation Buttons */
.carousel-control-prev,
.carousel-control-next {
    width: 50px;
    height: 50px;
    background: rgba(255,255,255,0.3);
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0;
    transition: all 0.3s ease;
}

.hero-slideshow:hover .carousel-control-prev,
.hero-slideshow:hover .carousel-control-next {
    opacity: 1;
}

.carousel-control-prev {
    left: 30px;
}

.carousel-control-next {
    right: 30px;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    width: 30px;
    height: 30px;
}

/* Carousel Indicators */
.carousel-indicators {
    bottom: 30px;
}

.carousel-indicators button {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin: 0 6px;
    background-color: var(--white);
    opacity: 0.5;
}

.carousel-indicators button.active {
    opacity: 1;
    background-color: var(--primary-color);
}

/* Animazioni per i testi delle slide */
.carousel-item .animate-title {
    animation: fadeInUp 0.8s ease;
}

.carousel-item .animate-text {
    animation: fadeInUp 0.8s ease 0.2s both;
}

.carousel-item .animate-btn {
    animation: fadeInUp 0.8s ease 0.4s both;
}

/* Effetto fade tra le slide */
.carousel-fade .carousel-item {
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
}

.carousel-fade .carousel-item.active {
    opacity: 1;
}

.carousel-fade .carousel-item-next.carousel-item-start,
.carousel-fade .carousel-item-prev.carousel-item-end {
    opacity: 1;
}

.carousel-fade .active.carousel-item-start,
.carousel-fade .active.carousel-item-end {
    opacity: 0;
}

.carousel-fade .carousel-item-next,
.carousel-fade .carousel-item-prev,
.carousel-fade .carousel-item.active,
.carousel-fade .active.carousel-item-start,
.carousel-fade .active.carousel-item-prev {
    transform: translateX(0);
}

/* Responsive Slideshow */
@media (max-width: 992px) {
    .carousel-caption h1 {
        font-size: 2.5rem;
    }
    
    .carousel-caption p {
        font-size: 1.1rem;
    }
}

@media (max-width: 768px) {
    .hero-slideshow {
        height: 80vh;
        min-height: 500px;
    }
    
    .carousel-caption {
        width: 90%;
    }
    
    .carousel-caption h1 {
        font-size: 1.8rem;
    }
    
    .carousel-caption p {
        font-size: 0.9rem;
    }
    
    .carousel-caption .btn-quality {
        padding: 10px 25px;
        font-size: 0.9rem;
    }
    
    .carousel-control-prev,
    .carousel-control-next {
        width: 40px;
        height: 40px;
        opacity: 0.5;
    }
    
    .carousel-control-prev {
        left: 10px;
    }
    
    .carousel-control-next {
        right: 10px;
    }
}

@media (max-width: 576px) {
    .hero-slideshow {
        height: 70vh;
        min-height: 450px;
    }
    
    .carousel-caption h1 {
        font-size: 1.4rem;
    }
    
    .carousel-caption p {
        font-size: 0.8rem;
    }
}

/* --------------------------------------------
   TOP BAR
--------------------------------------------- */
.top-bar {
    background: #9fbec6;
    padding: 8px 0;
    width: 100%;
    position: relative;
    z-index: 1002;
}

.top-bar-content {
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

.top-bar-info {
    display: flex;
    gap: 25px;
    flex-wrap: wrap;
}

.top-bar-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #ffffff;
    font-size: 0.85rem;
    font-family: var(--font-body);
}

.top-bar-item i {
    color: var(--primary-color, #00c1de);
    font-size: 0.9rem;
}

.top-bar-item a {
    color: #fff;
    text-decoration: none;
    transition: all 0.3s ease;
}

.top-bar-item a:hover {
    color: var(--primary-color, #00c1de);
}

.top-bar-item span {
    color: #fff;
}

/* Responsive Top Bar */
@media (max-width: 768px) {
    .top-bar {
        padding: 8px 0;
    }
    
    .top-bar-content {
        justify-content: center;
    }
    
    .top-bar-info {
        gap: 15px;
        justify-content: center;
    }
    
    .top-bar-item {
        font-size: 0.7rem;
    }
    
    .top-bar-item i {
        font-size: 0.75rem;
    }
}

@media (max-width: 576px) {
    .top-bar-info {
        flex-direction: column;
        align-items: center;
        gap: 5px;
    }
    
    .top-bar-item {
        font-size: 0.65rem;
    }
}

/* --------------------------------------------
   BOTTONE PRENOTA
--------------------------------------------- */
.btn-prenota {
    display: inline-block;
    background: #008375;
    color: white;
    padding: 10px 28px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-family: var(--font-body);
    font-size: 0.95rem;
    transition: all 0.3s ease;
    border: 2px solid #008375;
    text-align: center;
    white-space: nowrap;
    letter-spacing: 0.5px;
    cursor: pointer;
}

.btn-prenota i {
    font-size: 0.9rem;
    transition: transform 0.3s ease;
}

.btn-prenota:hover {
    background: transparent;
    color: #008375;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 131, 117, 0.25);
}

.btn-prenota:hover i {
    transform: scale(1.1);
}

.btn-prenota:active {
    transform: translateY(0);
    box-shadow: 0 4px 10px rgba(0, 131, 117, 0.2);
}

/* Responsive bottone */
@media (max-width: 991px) {
    .btn-prenota {
        width: 100%;
        text-align: center;
        justify-content: center;
        padding: 12px 20px;
    }
}

@media (max-width: 768px) {
    .btn-prenota {
        font-size: 0.9rem;
        padding: 10px 20px;
    }
}

/* Utility class per font */
.font-heading {
    font-family: 'HV-Muse-Regular', 'Times New Roman', serif !important;
}

.font-body {
    font-family: var(--font-body);
}



p.h3title {
    /* font-family: HV; */
    font-family: 'HV-Muse-Regular', 'Times New Roman', serif !important;
    font-size: 29px;
}

p.minore {
    font-size: 12px;
    font-weight: bold;
    
}

.azzurro{
	color: #00c1de! important;
}

.testofooter{color:#fff;}

.white{color:#fff;}

.sc-no-shadow .carousel-caption h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #ffffff;
    display: none;
}