/* Theme variables */
:root {
    --primary-color: rgba(19, 105, 139, 0.35);   /* SaddleBrown */
    --secondary-color: rgba(19, 105, 139, 0.35); /* GoldenRod */
    --gold-color: rgba(8, 119, 170, 0.644);      /* Warm gold accent */
    --accent-color: rgba(19, 105, 139, 0.35);    /* Deeper accent */
    --shadow-strong: 0 10px 30px rgba(19, 105, 139, 0.35);
}

/* Make Bootstrap primary text use our theme main color */
.text-primary { color: var(--gold-color) !important; }

/* Override Bootstrap primary backgrounds and gradients to use theme colors */
.bg-primary { 
    background-color: #13518b !important; 
}

.bg-gradient-primary {
    background: linear-gradient(135deg, #13798b 0%, #2d63a0 50%, #0b87b8 100%) !important;
}

.navbar.bg-gradient-primary {
    background: linear-gradient(135deg, #13518b 0%, #2d63a0 50%, #0b87b8 100%) !important;
}
    
/* Hero Section */
.hero-section {
    /* Background will be set inline in HTML template with web.logo */
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

/* Cookie Banner */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    background: rgba(0, 0, 0, 0.92);
    color: #fff;
    padding: 12px 0;
    z-index: 1100; /* above navbar (1030) and hero overlays */
    box-shadow: 0 -2px 12px rgba(0, 0, 0, 0.25);
    backdrop-filter: saturate(120%) blur(2px);
}

.cookie-banner p { 
    margin: 0; 
    font-size: 0.95rem; 
}

.cookie-banner .btn { 
    border-radius: 20px; 
}

@media (max-width: 576px) {
    .cookie-banner .text-end { text-align: center !important; }
    .cookie-banner .row { row-gap: 8px; }
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    /*background:
        linear-gradient(135deg, rgba(19, 111, 139, 0.3) 0%, rgba(30, 159, 210, 0.2) 50%, rgba(96, 227, 244, 0.1) 100%),
        url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="rgba(255,255,255,0.03)"/><circle cx="75" cy="75" r="1" fill="rgba(255,255,255,0.03)"/><circle cx="50" cy="10" r="0.5" fill="rgba(255,255,255,0.01)"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    */
    opacity: 0.5;
    backdrop-filter: blur(0.5px);
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
}

/* Scritta "La Nostra Arte" in dorato */
.hero-content .text-primary {
    color: var(--gold-color) !important;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

/* Icona forbici dorata */
.floating-icon {
    animation: float 6s ease-in-out infinite;
    filter: drop-shadow(0 10px 20px rgba(19, 115, 139, 0.4));
}

.floating-icon i {
    color: var(--gold-color) !important;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.3);
}

/* Pulsante "Prenota Ora" con colori della testata */
.hero-content .btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border: 2px solid var(--gold-color);
    color: white;
    font-weight: 700;
    padding: 15px 35px;
    border-radius: 50px;
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(19, 111, 139, 0.3);
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.hero-content .btn-primary:hover {
    background: linear-gradient(135deg, var(--secondary-color), var(--gold-color));
    border-color: var(--accent-color);
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(19, 111, 139, 0.4);
    color: white;
}

/* Miglioramento leggibilità testo */
.hero-content h1 {
    text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.6);
}

.hero-content .lead {
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

.floating-icon {
    animation: float 6s ease-in-out infinite;
    filter: drop-shadow(0 10px 20px rgba(19, 115, 139, 0.3));
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
}

.animate-bounce {
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-10px); }
    60% { transform: translateY(-5px); }
}

/* Service Cards */
.service-card {
    transition: all 0.3s ease;
    border-radius: 15px;
    overflow: hidden;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-strong);
}

.service-icon {
    transition: all 0.3s ease;
}

.service-icon i {
    color: white !important;
    background: rgba(19, 121, 139, 0.95);
    padding: 20px;
    border-radius: 50%;
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    box-shadow: 0 8px 20px rgba(139, 69, 19, 0.3);
}

.service-card:hover .service-icon i {
    transform: scale(1.1);
    background: rgb(19, 101, 139);
    box-shadow: 0 12px 25px rgba(19, 85, 139, 0.4);
}

.price-tag {
    background: rgba(19, 81, 139, 0.95) !important;
    color: white;
    padding: 8px 20px;
    border-radius: 25px;
    display: inline-block;
    margin-top: 15px;
    box-shadow: 0 4px 15px rgba(139, 69, 19, 0.3);
    transition: all 0.3s ease;
}

.price-tag:hover {
    background: rgb(19, 105, 139) !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(139, 69, 19, 0.4);
}

.price-tag span {
    color: white !important;
    font-weight: 700;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .hero-section {
        text-align: center;
        padding: 40px 0;
    }

    .display-3 {
        font-size: 2.5rem;
    }

    .hero-buttons {
        flex-direction: column;
        gap: 15px;
    }

    .btn-lg {
        width: 100%;
    }
}
