:root {
    --primary-color: #d84545; /* Un rosso/corallo caldo per il cibo */
    --secondary-color: #f7f9f9;
    --text-dark: #333;
    --text-dark2: #535043;
    
    --bs-border-radius: 1rem;
    --bs-border-radius-sm: 0.5rem;
    --bs-border-radius-lg: 1.5rem;
    --bs-border-radius-xl: 2rem;
    --bs-border-radius-xxl: 3rem;
    --bs-border-radius-2xl: var(--bs-border-radius-xxl);
    --bs-border-radius-pill: 50rem;
    
}

body {
    font-family: 'Lato', sans-serif;
    color: var(--text-dark);
    background-color: #fff;
}

h1, h2, h3, h4, .navbar-brand {
    font-family: 'Playfair Display', serif;
}

/* Navbar */
.navbar-brand {
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--primary-color) !important;
}


.logo{
    height: 80px
}

/* Hero Section */
.hero-carousel .carousel-item {
    height: 400px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    background-size: cover;
    background-position: center center;
}

/* Stili Carosello Hero */
.carousel-item-hero {
    height: 400px; 
    background-size: cover;
    background-position: center;
    position: relative;
    /*display: flex;*/
    align-items: center;
    justify-content: center;
}

.carousel-content {
    position: relative;
    z-index: 10; /* Per essere sicuri che il testo sia sopra l'overlay */
    color: white;
    height: 400px;
    text-align: center;    
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

/* Cards Ricette */
.recipe-card {
    border: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
}

.recipe-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.recipe-img-top {
    height: 200px;
    object-fit: cover;
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
}

.card-meta {
    font-size: 0.85rem;
    color: #888;
}

.badge-category {
    background-color: var(--primary-color);
    color: white;
    font-weight: normal;
}

/* Sidebar e Footer */
.profile-img {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: 50%;
}

footer {
    background-color: #222;
    color: #ddd;
}
footer .text-muted {
    color: #fff !important;
}


a {
    text-decoration: none;
    color: inherit;
}
a:hover {
    color: var(--primary-color);
}

/* Recipe Specific Styles */
.recipe-header-img {
    width: 100%;
    height: 450px;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 2rem;
}

.recipe-info-box {
    background-color: var(--secondary-color);
    border-radius: 10px;
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.info-item {
    text-align: center;
    border-right: 1px solid #ddd;
}
.info-item:last-child {
    border-right: none;
}

.info-icon {
    color: var(--primary-color);
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

/* Ingredienti */
.ingredient-list .form-check-input:checked + .form-check-label {
    text-decoration: line-through;
    color: #888;
}
.ingredient-list li {
    padding: 0.8rem 0;
    border-bottom: 1px dashed #eee;
}

/* Istruzioni */
.step-number {
    background-color: var(--primary-color);
    color: white;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    flex-shrink: 0; /* Impedisce che il cerchio si schiacci */
    margin-right: 1rem;
    margin-top: 0.2rem;
}

.step-content {
    flex-grow: 1;
}

/* Card correlate */
.related-card img {
    height: 150px;
    object-fit: cover;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .info-item {
        border-right: none;
        border-bottom: 1px solid #ddd;
        padding-bottom: 1rem;
        margin-bottom: 1rem;
    }
    .info-item:last-child {
        /*border-bottom: none;*/
        /*margin-bottom: 0;*/
    }
    .recipe-header-img {
        height: 300px;
    }
}

/* pagination */
.active>.page-link, .page-link.active {
    z-index: 3;
    color: var(--bs-pagination-active-color);
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.page-link {
    color: var(--dark);
}
.page-link:hover {
    color: var(--primary-color);
}

#newsletterForm .invalid-feedback{
    color:#ffffff
}
/* print */
@media print {
    /* Nasconde tutto */
    body * {
        visibility: hidden;
    }

    /* Mostra solo l'area ricetta */
    #recipe-print-area,
    #recipe-print-area * {
        visibility: visible;
    }

    /* Porta l'area ricetta a tutta pagina */
    #recipe-print-area {
        position: absolute;
        left: 0;
        top: 0;
        width: 100%;
        padding: 20px;
    }

    /* Nascondi il bottone di stampa se finisce nella pagina */
    button[onclick="stampaRicetta()"] {
        display: none !important;
    }
}
