/* Global Styles */
:root {
    --primary-blue: #0056b3;
    --light-blue: #00a8e8;
    --deep-blue: #003366;
    --white: #ffffff;
    --off-white: #f8f9fa;
    --text-color: #444;
    --transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

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

body {
    font-family: 'Montserrat', sans-serif;
    line-height: 1.8;
    color: var(--text-color);
    background-color: var(--white);
    scroll-behavior: smooth;
}

h1, h2, h3 {
    font-family: 'Playfair Display', serif;
    color: var(--deep-blue);
}

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

a:hover {
    text-decoration: none;
}

p {
    margin-bottom: 20px;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 30px;
}

.text-center { text-align: center; }
.text-left { text-align: left !important; }

.section-title {
    font-size: 3rem;
    margin-bottom: 30px;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    display: block;
    width: 50%;
    height: 3px;
    background: var(--light-blue);
    margin-top: 10px;
}

.text-center .section-title::after {
    margin-left: auto;
    margin-right: auto;
}

.bg-light { background-color: var(--off-white); }
.mt-20 { margin-top: 20px; }
.mb-40 { margin-bottom: 40px; }

/* Header */
.header {
    background: rgba(255, 255, 255, 0.9);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 1px;
    color: var(--primary-blue);
}

.nav ul {
    display: flex;
    list-style: none;
}

.nav ul li { margin-left: 25px; }

.nav ul li a {
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    color: var(--deep-blue);
    letter-spacing: 0.5px;
}

.nav ul li a:hover { color: var(--light-blue); }

/* Hero */
.hero {
    height: 90vh;
    background: url('img/marettimo3.jpeg') center/cover no-repeat;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
}

.hero-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(to bottom, rgba(0, 51, 102, 0.5), rgba(0, 51, 102, 0.2));
}

.hero-content { position: relative; z-index: 1; max-width: 800px; }

.hero-brand {
    font-size: 1.2rem;
    text-transform: uppercase;
    letter-spacing: 4px;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--light-blue);
    font-family: 'Montserrat', sans-serif;
}

.hero-content h2 {
    font-size: 4rem;
    margin-bottom: 15px;
    color: var(--white);
    text-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

.hero-content p { font-size: 1.5rem; opacity: 0.9; }

/* Sections */
.content-section { padding: 100px 0; }

.grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 60px;
    align-items: center;
}

.flex-reverse {
    grid-template-columns: 1.2fr 1fr;
}

.img-rounded {
    width: 100%;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: var(--transition);
}

.img-rounded:hover { transform: translateY(-5px); }

/* Gallery Mini */
.gallery-mini {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.gallery-mini img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

/* Button */
.btn {
    display: inline-block;
    padding: 15px 40px;
    background: var(--primary-blue);
    color: var(--white);
    border-radius: 100px;
    font-weight: 700;
    letter-spacing: 1px;
    border: none;
    cursor: pointer;
    box-shadow: 0 10px 20px rgba(0, 86, 179, 0.2);
}

.btn:hover {
    background: var(--light-blue);
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(0, 168, 232, 0.3);
}

/* Contact Card */
.contact { padding: 120px 0; background: var(--off-white); }

.contact .section-title { color: var(--deep-blue); }

.contacts-grid {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-top: 60px;
    flex-wrap: wrap;
}

.contact-card {
    background: var(--white);
    padding: 50px 40px;
    border-radius: 24px;
    box-shadow: 0 20px 50px rgba(0, 51, 102, 0.08);
    width: 350px;
    transition: var(--transition);
    border: 1px solid rgba(0,0,0,0.03);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.contact-card:hover { 
    transform: translateY(-10px);
    box-shadow: 0 30px 60px rgba(0, 51, 102, 0.12);
}

.contact-card h3 { 
    color: var(--deep-blue); 
    margin-bottom: 10px; 
    font-size: 2rem; 
}

.contact-card .phone {
    font-size: 1.2rem;
    color: var(--primary-blue);
    font-weight: 600;
    margin-bottom: 25px;
}

.btn-wa { 
    background: #25d366; 
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.btn-wa:hover { background: #1ebe57; }

/* Footer */
.footer { padding: 60px 0; background: #001a33; color: rgba(255,255,255,0.5); font-size: 0.85rem; }
.footer .legal { margin-top: 20px; font-weight: 300; }

/* Responsive */
@media (max-width: 900px) {
    .grid { grid-template-columns: 1fr; gap: 40px; }
    .flex-reverse { direction: ltr; } /* Stack order reset */
    .hero-content h2 { font-size: 2.8rem; }
    .gallery-mini { grid-template-columns: 1fr; }
    .section-title { font-size: 2.2rem; }
}
