/* Reset & Variabili */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #8b5a2b;  /* Colore Terracotta / Legno tipico salentino */
    --primary-dark: #6a4420;
    --text-color: #2c3e50;
    --bg-light: #f9f7f4;        /* Sfondo caldo stile pietra leccese */
    --white: #ffffff;
    --font-heading: 'Cormorant Garamond', Georgia, serif;
    --font-body: 'Montserrat', sans-serif;
}

body {
    font-family: var(--font-body);
    color: var(--text-color);
    line-height: 1.6;
    background-color: var(--white);
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

/* Tipografia */
h1, h2, h3, .logo h2 {
    font-family: var(--font-heading);
}

.section-title {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 5px;
}

.section-subtitle {
    font-size: 1.1rem;
    color: #777;
    margin-bottom: 40px;
}

.text-center { text-align: center; }
.bg-light { background-color: var(--bg-light); }
.section { padding: 80px 0; }

/* Top Bar */
.top-bar {
    background-color: #222;
    color: #ccc;
    font-size: 0.85rem;
    padding: 8px 0;
}
.top-bar .container {
    display: flex;
    justify-content: space-between;
}
.top-bar a { color: #ccc; text-decoration: none; }

/* Header & Nav */
.header {
    background-color: var(--white);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}
.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.logo { text-decoration: none; color: var(--primary-color); }
.logo h2 { font-size: 1.8rem; margin: 0; letter-spacing: 1px; }
.logo small { font-size: 0.75rem; color: #666; text-transform: uppercase; letter-spacing: 2px; }

.nav ul {
    display: flex;
    list-style: none;
    align-items: center;
    gap: 20px;
}
.nav a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.3s;
}
.nav a:hover { color: var(--primary-color); }
.btn-menu {
    background-color: var(--primary-color);
    color: var(--white) !important;
    padding: 8px 18px;
    border-radius: 3px;
}

/* Hero Section */
.hero {
    position: relative;
    background: url('../img/hero-bg.jpg') center/cover no-repeat;
    height: 85vh;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    text-align: center;
}
.hero-overlay {
    position: absolute;
    top:0; left:0; width:100%; height:100%;
    background: rgba(0, 0, 0, 0.4);
}
.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    padding: 0 20px;
}
.hero h1 { font-size: 3.5rem; margin-bottom: 15px; }
.hero p { font-size: 1.3rem; margin-bottom: 30px; }

/* Bottoni */
.btn {
    display: inline-block;
    padding: 12px 28px;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 600;
    transition: background 0.3s;
}
.btn-primary { background-color: var(--primary-color); color: var(--white); border: none; }
.btn-primary:hover { background-color: var(--primary-dark); }
.btn-secondary { background-color: transparent; color: var(--white); border: 2px solid var(--white); margin-left: 10px; }
.btn-secondary:hover { background-color: var(--white); color: var(--text-color); }

/* Layout Grid */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }

/* Card Camere */
.card {
    background: var(--white);
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.06);
}
.card-img { width: 100%; height: 220px; object-fit: cover; }
.card-body { padding: 25px; }
.card-body h3 { font-size: 1.5rem; margin-bottom: 10px; color: var(--primary-color); }
.btn-link { color: var(--primary-color); text-decoration: none; font-weight: 600; display: inline-block; margin-top: 15px; }

/* Responsive Img */
.responsive-img { width: 100%; border-radius: 6px; }

/* Servizi */
.service-box {
    background: var(--white);
    padding: 30px 20px;
    border-radius: 6px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.04);
}
.service-box .icon { font-size: 2.5rem; margin-bottom: 15px; }

/* Galleria Foto */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
}
.gallery-grid img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 4px;
    transition: transform 0.3s;
}
.gallery-grid img:hover { transform: scale(1.02); }

/* Form Contatti */
.contact-form .form-group { margin-bottom: 15px; }
.contact-form label { display: block; margin-bottom: 5px; font-weight: 500; }
.contact-form input, .contact-form textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-family: inherit;
}
.full-width { width: 100%; cursor: pointer; }

/* Footer */
.footer {
    background-color: #1a1a1a;
    color: #aaa;
    padding: 40px 0;
    font-size: 0.9rem;
}

/* Responsivo per Smartphone */
@media (max-width: 768px) {
    .grid-2, .grid-3, .grid-4, .gallery-grid { grid-template-columns: 1fr; }
    .header .container { flex-direction: column; gap: 15px; }
    .nav ul { flex-wrap: wrap; justify-content: center; gap: 10px; }
    .hero h1 { font-size: 2.2rem; }
}