/* --- TEMA BLU E STILI BASE --- */
:root {
    --primary-blue: #1b3b5c; /* Blu scuro principale */
    --secondary-blue: #3b6998; /* Blu medio per pulsanti */
    --accent-blue: #8caecf; /* Azzurro chiaro per effetti hover */
    --bg-color: #f4f7f9; /* Sfondo chiarissimo */
    --white: #ffffff;
    --text-dark: #333333;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: var(--bg-color);
    color: var(--text-dark);
    line-height: 1.6;
}

h1, h2, h3 {
    color: var(--primary-blue);
}

a {
    text-decoration: none;
    color: inherit;
}

/* --- HEADER E NAVIGAZIONE --- */
header {
    background-color: var(--primary-blue);
    color: var(--white);
    padding: 1rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

header .logo {
    font-size: 1.5rem;
    font-weight: bold;
    letter-spacing: 1px;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 20px;
}

nav ul li a {
    color: var(--white);
    font-weight: 500;
    transition: color 0.3s ease;
}

nav ul li a:hover {
    color: var(--accent-blue);
}

/* --- SEZIONE HERO (Sfondo principale) --- */
.hero {
    /* Immagine di sfondo azzurrata */
    background: linear-gradient(rgba(27, 59, 92, 0.75), rgba(27, 59, 92, 0.75)), url('https://images.unsplash.com/photo-1473496169904-658ba7c44d8a?auto=format&fit=crop&w=1920&q=80') center/cover;
    height: 70vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: var(--white);
    padding: 0 20px;
}

.hero h1 {
    color: var(--white);
    font-size: 3.5rem;
    margin-bottom: 15px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    max-width: 600px;
}

.btn {
    background-color: var(--secondary-blue);
    color: var(--white);
    padding: 12px 30px;
    border-radius: 5px;
    font-size: 1.1rem;
    font-weight: bold;
    transition: background-color 0.3s, transform 0.2s;
}

.btn:hover {
    background-color: var(--accent-blue);
    color: var(--primary-blue);
    transform: translateY(-2px);
}

/* --- SEZIONI CONTENUTI --- */
.services {
    padding: 5rem 5%;
    text-align: center;
}

.bg-light {
    background-color: var(--white);
}

.services h2 {
    font-size: 2.5rem;
    margin-bottom: 3rem;
}

.service-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 40px;
}

.service-card {
    background-color: var(--white);
    border: 1px solid #e1e8ed;
    border-radius: 10px;
    width: 350px;
    overflow: hidden; /* Mantiene le immagini dentro i bordi arrotondati */
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

.service-card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    border-bottom: 3px solid var(--secondary-blue); /* Riga blu sotto l'immagine */
}

.service-card h3 {
    margin: 20px 0 10px;
    font-size: 1.4rem;
}

.service-card p {
    padding: 0 20px 20px;
    color: #555;
}

/* --- FOOTER --- */
footer {
    background-color: var(--primary-blue);
    color: var(--accent-blue);
    text-align: center;
    padding: 3rem 5%;
}

footer h2 {
    color: var(--white);
    margin-bottom: 1rem;
}

footer p {
    margin-bottom: 10px;
    color: var(--white);
}

footer .copyright {
    margin-top: 20px;
    font-size: 0.9rem;
    color: var(--accent-blue);
}

/* --- DESIGN RESPONSIVE PER CELLULARI --- */
@media (max-width: 768px) {
    nav ul {
        display: none;
    }
    .hero h1 {
        font-size: 2.5rem;
    }
}

/* --- VARIABILI E TEMA BLU PREMIUM --- */
:root {
    --primary: #142840; /* Blu notte intenso */
    --secondary: #2b5b84; /* Blu oceano */
    --accent: #d4af37; /* Oro per dare un tocco lussuoso ai dettagli */
    --light-bg: #f8fafc;
    --white: #ffffff;
    --text: #334155;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', system-ui, sans-serif;
    scroll-behavior: smooth;
}

body {
    background-color: var(--light-bg);
    color: var(--text);
    line-height: 1.7;
}

/* --- HEADER / MENU --- */
header {
    background-color: var(--primary);
    padding: 1.2rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.logo a {
    color: var(--white);
    font-size: 1.6rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-decoration: none;
}

.logo span {
    color: var(--accent);
}

nav ul {
    list-style: none;
    display: flex;
    gap: 30px;
}

nav ul li a {
    color: var(--white);
    text-decoration: none;
    font-weight: 500;
    font-size: 1.1rem;
    transition: color 0.3s;
    position: relative;
}

nav ul li a:hover {
    color: var(--accent);
}

/* Effetto riga sotto i link */
nav ul li a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: var(--accent);
    transition: width 0.3s;
}
nav ul li a:hover::after { width: 100%; }

/* --- SEZIONI HERO (Copertine) --- */
.hero {
    height: 80vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: var(--white);
    padding: 0 20px;
    background-attachment: fixed; /* Effetto Parallax */
    position: relative;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(to bottom, rgba(20,40,64,0.6), rgba(20,40,64,0.9));
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
}

.hero h1 {
    font-size: 4rem;
    margin-bottom: 20px;
    text-shadow: 2px 4px 10px rgba(0,0,0,0.5);
    letter-spacing: 1px;
}

.hero p {
    font-size: 1.4rem;
    margin-bottom: 40px;
    color: #e2e8f0;
}

/* Copertine specifiche per pagina */
.hero-home { background: url('https://images.unsplash.com/photo-1473496169904-658ba7c44d8a?auto=format&fit=crop&w=1920&q=80') center/cover; }
.hero-cavalli { background: url('https://images.unsplash.com/photo-1598974357801-cbca100e65d3?auto=format&fit=crop&w=1920&q=80') center/cover; height: 60vh; }
.hero-vini { background: url('https://images.unsplash.com/photo-1506377247377-2a5b3b417ebb?auto=format&fit=crop&w=1920&q=80') center/cover; height: 60vh; }

/* --- BOTTONI --- */
.btn {
    display: inline-block;
    background-color: var(--accent);
    color: var(--primary);
    padding: 15px 35px;
    border-radius: 30px;
    font-size: 1.1rem;
    font-weight: 700;
    text-decoration: none;
    text-transform: uppercase;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.4);
}

.btn:hover {
    background-color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(255, 255, 255, 0.4);
}

.btn-outline {
    background-color: transparent;
    border: 2px solid var(--accent);
    color: var(--accent);
}
.btn-outline:hover {
    background-color: var(--accent);
    color: var(--primary);
}

/* --- SEZIONI E CARD (Acchiappa Clienti) --- */
.section {
    padding: 6rem 5%;
}

.text-center { text-align: center; }

.section-title {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: 1.2rem;
    color: var(--secondary);
    margin-bottom: 4rem;
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 40px;
}

.card {
    background: var(--white);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
}

.card-img {
    height: 250px;
    overflow: hidden;
}

.card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.card:hover .card-img img {
    transform: scale(1.1); /* Effetto zoom sull'immagine al passaggio del mouse */
}

.card-body {
    padding: 30px;
}

.card-body h3 {
    color: var(--primary);
    font-size: 1.5rem;
    margin-bottom: 15px;
}

/* --- FOOTER --- */
footer {
    background-color: var(--primary);
    color: var(--white);
    text-align: center;
    padding: 4rem 5% 2rem;
}

footer h2 { color: var(--accent); margin-bottom: 1.5rem; }
footer p { margin-bottom: 10px; color: #cbd5e1; }
.copyright { margin-top: 30px; border-top: 1px solid rgba(255,255,255,0.1); padding-top: 20px; font-size: 0.9rem; }