:root {
    --primary: #1a2a6c;
    --gold: #c5a059;
    --gold-dark: #a6864a;
    --light: #f8f9fa;
    --dark: #0f172a;
    --white: #ffffff;
}

/* Scorrimento fluido per tutta la pagina */
html { scroll-behavior: smooth; }

body {
    font-family: 'Montserrat', sans-serif;
    background-color: var(--light);
    margin: 0;
    color: var(--dark);
}

h1, h2, h3, .logo { font-family: 'Playfair Display', serif; }

.navbar {
    background: rgba(26, 42, 108, 0.95);
    padding: 1rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: fixed;
    width: 90%;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid var(--gold);
}

.logo { font-size: 1.8rem; color: var(--gold); font-weight: bold; text-transform: uppercase; }
.logo span { color: white; font-weight: 300; }

.nav-links { list-style: none; display: flex; gap: 30px; }
.nav-links a { text-decoration: none; color: white; text-transform: uppercase; font-size: 0.8rem; transition: 0.3s; }
.nav-links a:hover { color: var(--gold); }

.hero {
    height: 100vh;
    background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.4)), url('./images/homeYacht.png');
    background-size: cover; 
    background-position: center;
    background-attachment: fixed;
    display: flex; 
    justify-content: center; 
    align-items: center; 
    text-align: center; 
    color: white;
}

/* Griglia e Card Prodotti */
.ships-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    padding: 40px 0;
}

.ship-card {
    background: white;
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
    border-radius: 10px;
    overflow: hidden;
    transition: transform 0.3s ease;
    border: 1px solid #f0f0f0;
    display: flex;
    flex-direction: column;
}

.ship-card:hover {
    transform: translateY(-5px);
}

.ship-card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
}

.ship-info {
    padding: 25px;
    flex-grow: 1;
}

/* Stile per Nome Compagnia separato */
.company-name {
    color: var(--gold);
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 2px;
    font-weight: 600;
    display: block;
    margin-bottom: 8px;
}

.ship-info h3 {
    margin: 0 0 15px 0;
    color: var(--primary);
    font-size: 1.4rem;
}

.ship-info p {
    font-size: 0.9rem;
    color: #64748b;
    margin: 5px 0;
}

/* Selettore Cabine */
.cabin-selector {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #eee;
}

.cabin-selector label {
    font-size: 0.75rem;
    color: #94a3b8;
    text-transform: uppercase;
}

.cabin-selector select {
    width: 100%;
    padding: 10px;
    margin-top: 5px;
    border: 1px solid #e2e8f0;
    border-radius: 5px;
    font-family: 'Montserrat', sans-serif;
    outline: none;
}

/* Pulsanti */
.btn-reserve {
    background: var(--gold);
    color: white;
    padding: 12px;
    border: none;
    cursor: pointer;
    font-weight: bold;
    text-transform: uppercase;
    text-align: center;
    text-decoration: none;
    display: block;
    transition: 0.3s;
    border-radius: 5px;
}

.btn-reserve:hover {
    background: var(--gold-dark);
}

/* Footer */
footer {
    background: var(--dark);
    color: white;
    padding: 40px 0 20px;
}

.admin-footer-link {
    color: var(--gold);
    text-decoration: none;
    border: 1px solid var(--gold);
    padding: 5px 15px;
    border-radius: 4px;
    font-size: 0.8rem;
    transition: 0.3s;
}

.admin-footer-link:hover {
    background: var(--gold);
    color: white;
}