/* --------------------  
   ROOT COLORS  
-------------------- */

:root {
    --gold-leaf: #C6A75E;
    --cream: #F9F6F1;
    --linen: #EFE7DC;
    --dark: #1E1E1E;

    --font-title: "Cormorant Garamond", serif;
    --font-body: "Montserrat", sans-serif;
}

/* --------------------  
   GLOBAL  
-------------------- */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background: var(--cream);
    color: var(--dark);
    line-height: 1.6;
}

/* --------------------  
   NAVBAR  
-------------------- */

nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;

    display: flex;
    align-items: center;

    padding: 20px 60px;
    z-index: 1000;

    background: transparent;
    transition: all 0.3s ease;
    gap: 40px;
}

/* navbar scroll */
nav.scrolled {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(8px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    padding: 15px 60px;
}

nav.scrolled .nav-links a {
    color: black; /* oppure bianco se la navbar diventa scura */
}

/* logo */
.logo-img {
    width: 60px;
}

/* links */
.nav-links {
    display: flex;
    gap: 35px;
    margin-left: auto;
}

.nav-links a {
    text-decoration: none;
    font-weight: 500;
    color: black;
    position: relative;
}

/* underline hover */
.nav-links a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -5px;
    width: 0%;
    height: 2px;
    background: var(--gold-leaf);
    transition: 0.3s;
}

.nav-links a:hover::after {
    width: 100%;
}

/* CTA */
.nav-cta {
    margin-left: 20px;
}

.btn-nav {
    background: var(--gold-leaf);
    color: white;
    padding: 10px 22px;
    border-radius: 30px;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    transition: 0.3s;
}

.btn-nav:hover {
    opacity: 0.85;
}

/* --------------------  
   HERO  
-------------------- */

.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0 20px;

    /* gradient verticale: scuro sopra → chiaro sotto */
    background: /*linear-gradient(to top, rgba(0,0,0,0.6),rgba(0,0,0,0.3),rgba(0,0,0,0.2), rgba(255,255,255,0.6)),*/
              linear-gradient(rgba(255,255,255,0.6), rgba(255,255,255,0.6),rgba(255,255,255,0.6),rgba(249,246,241,1)),
                url("sorrisi.jpg") center/cover no-repeat;

    color: #3C322E
;
    z-index: 1;
}

.hero-content {
    max-width: 800px;
}

.hero-content img {
    width: 100%;
    max-width: 300px;
    height: auto;
}

.hero-intro p {
    margin-bottom: 15px;
    opacity: 0.9;
    font-size: 2rem; /* dimensione del testo */
    line-height: 1.6;    /* spazio tra le righe */
    font-weight: 600;    /* grassetto elegante */
    font-family: var(--font-title);
}

/* --------------------  
   BUTTON GOLD  
-------------------- */

.btn-gold {
    display: inline-block;
    margin-top: 30px;
    background: var(--gold-leaf);
    color: white;
    padding: 14px 30px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    transition: 0.3s;
}

.btn-gold:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

/* --------------------  
   SECTIONS  
-------------------- */

.section {
    padding: 60px 60px;
    max-width: 1300px;
    margin: auto;
}

.section h2 {
    font-family: var(--font-title);
    font-weight: 600;
    margin-bottom: 10px;
    font-size: clamp(1.8rem, 5vw, 3rem);
}

/* tag */
.tag {
    color: var(--gold-leaf);
    font-size: 0.8rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    display: block;
    margin-bottom: 10px;
}

/* --------------------  
   SERVICE GRID  
-------------------- */

.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 10px;
    margin-top: 50px;
}

.service-card {
    background: white;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.05);
    transition: 0.3s;
}

.service-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.08);
}

.service-card img {
    width: 100%;
    border-radius: 10px;
    margin-bottom: 20px;
}

/* --------------------  
   CONTACT  
-------------------- */

.contact-box {
    background: var(--dark);
    color: white;
    padding: 60px;
    border-radius: 14px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group input,
.form-group textarea {
    padding: 14px;
    border-radius: 8px;
    border: none;
    font-family: var(--font-body);
}

textarea {
    resize: none;
    height: 120px;
}

/* --------------------  
   FOOTER  
-------------------- */

footer {
    text-align: center;
    padding: 40px;
    background: var(--linen);
    font-size: 0.9rem;
}

/* --------------------  
   RESPONSIVE  
-------------------- */

@media (max-width: 900px) {
    .section {
        padding: 100px 30px;
    }

    nav {
        padding: 20px 30px;
    }

    .nav-links {
        display: none;
    }

    .contact-box {
        grid-template-columns: 1fr;
    }
}