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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    background-color: #FAF6EE;
    color: #261C14;
    font-family: 'Roboto', sans-serif;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
    font-family: 'Playfair Display', serif;
    color: #261C14;
    font-weight: 600;
}

.container {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 25px;
}

#navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: #736354;
    padding: 18px 0;
    box-shadow: 0 2px 15px rgba(38, 28, 20, 0.15);
    animation: fadeInDown 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 25px;
}

.nav-logo {
    font-family: 'Playfair Display', serif;
    color: #FAF6EE;
    font-size: 19px;
    letter-spacing: 1px;
    font-weight: 500;
}

.nav-menu {
    display: flex;
    align-items: center;
}

.nav-menu a {
    color: #FAF6EE;
    text-decoration: none;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-left: 25px;
    font-weight: 400;
    position: relative;
    padding-bottom: 4px;
    transition: color 0.3s ease;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    width: 100%;
    transform: scaleX(0);
    height: 1.5px;
    bottom: 0;
    left: 0;
    background-color: #D9C3A5;
    transform-origin: bottom right;
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.nav-menu a:hover {
    color: #D9C3A5;
}

.nav-menu a:hover::after {
    transform: scaleX(1);
    transform-origin: bottom left;
}

.hero {
    margin-top: 0px;
    background: radial-gradient(circle at center, #FAF6EE 0%, #D9C3A5 100%);
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding-top: 45px;
    padding-left: 20px;
    padding-right: 20px;
    position: relative;
}

.hero::before {
    content: "";
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    opacity: 0.03;
    pointer-events: none;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
}

.hero-content {
    max-width: 750px;
    z-index: 2;
    animation: fadeInUp 1.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.logo-icon {
    height: 45px;
    margin-bottom: 20px;
}

.hero .hero-content h2 {
    font-size: 25px;
    text-transform: uppercase;
    letter-spacing: 4px;
    color: #736354;
}

.hero .hero-content h1 {
    font-size: 42px;
    margin-bottom: 25px;
    letter-spacing: 0.5px;
    color: #41372e;
}

.hero .quote {
    font-family: 'Playfair Display', serif;
    font-style: italic;
    font-size: 18px;
    border-top: 1px solid #736354;
    padding-top: 20px;
    display: inline-block;
    color: #261C14;
}

.block-lostudio {
    text-align: center;
    background-image: url("assets/sfondo.png");
    background-position: center center;
    padding-top: 45px; 
    padding-bottom: 50px; 
    position: relative;
    box-shadow: inset 0 10px 20px -10px rgba(38, 28, 20, 0.05);
}

.block-lostudio::before {
    content: "";
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    opacity: 0.025;
    pointer-events: none;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 400 400' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
}

.studio-testo {
    max-width: 820px;
    margin: 0 auto;
}

.studio-testo p {
    font-size: 17px;
    line-height: 1.85;
    text-align: center;
    margin-bottom: 22px;
    color: #261C14;
}

.studio-testo p:last-child {
    margin-bottom: 0;
}

.titolo-sezione {
    font-size: 32px;
    margin-bottom: 35px;
    position: relative;
    padding-bottom: 15px;
}

.titolo-sezione::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 1.5px;
    background-color: #736354;
}

.bio-testo {
    max-width: 780px;
    margin: 0 auto;
    font-size: 17px;
    line-height: 1.85;
    text-align: justify;
    text-justify: inter-word;
    color: #261C14;
}

.block-aree {
    background-color: #ffebcf; 
    padding-top: 45px;
    padding-bottom: 50px;
    text-align: center;
    max-width: 100%;         
}

.aree-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    margin-top: 20px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.area-card {
    align-items: center;
    flex-direction: column;
    display: flex;
    background-color: #F1EBE0;
    padding: 35px 30px;
    border-radius: 2px;
    border-left: 3px solid #736354;
    box-shadow: 0 4px 20px rgba(38, 28, 20, 0.03);
    text-align: center;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s ease, border-color 0.3s ease;
}

.area-icon {
    margin-bottom: 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.area-icon img {
    width: 40px;   
    height: 40px;    
    object-fit: contain;
    transition: transform 0.3s ease; 
}

.area-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 24px rgba(38, 28, 20, 0.08);
    border-left-color: #261C14;
}

.area-card:hover .area-icon img {
    transform: scale(1.08);
}

.area-card h3 {
    font-size: 21px;
    margin-bottom: 15px;
    font-family: 'Playfair Display', serif;
}

.area-card p {
    font-size: 15px;
    color: #261C14;
    opacity: 0.9;
}

.block-contatti {
    background-color: #F1EBE0;
    padding: 90px 0;
    border-top: 1px solid rgba(115, 99, 84, 0.15);
}

.contatti-layout {
    display: flex;
    justify-content: space-between;
    gap: 60px;
}

.info-studio {
    flex: 1;
}

.info-studio h3 {
    font-size: 25px;
    color: #736354;
    font-weight: 400;
    letter-spacing: 0.5px;
}

.info-studio h2 {
    font-size: 27px;
    color: #41372e;
    font-weight: bold;
    margin-bottom: 15px;
    letter-spacing: 0.5px;
}

.dettagli-lista p {
    margin-bottom: 15px;
    font-size: 16px;
}

.dettagli-lista strong {
    color: #736354;
}

.nota-albo {
    margin-top: 25px;
    font-size: 14px;
    font-style: italic;
    opacity: 0.8;
}

.tel-link {
    color: black;
}

.tel-link:hover {
    text-decoration-thickness: 2px;
}

.form-studio {
    flex: 1;
    max-width: 480px;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.form-group input, 
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid rgba(115, 99, 84, 0.3);
    border-radius: 2px;
    background-color: #FAF6EE;
    color: #261C14;
    font-family: 'Roboto', sans-serif;
    font-size: 15px;
    transition: border-color 0.25s ease, background-color 0.25s ease;
}

.form-group input:focus, 
.form-group textarea:focus {
    outline: none;
    border-color: #261C14;
    background-color: #ffffff;
}

.privacy-box {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 13px;
    opacity: 0.8;
    line-height: 1.4;
}

.privacy-box input {
    margin-top: 3px;
}

.contact-form button {
    background-color: #736354;
    color: #FAF6EE;
    border: none;
    padding: 13px;
    font-size: 15px;
    font-weight: 500;
    letter-spacing: 1px;
    text-transform: uppercase;
    cursor: pointer;
    border-radius: 2px;
    margin-top: 5px;
    transition: background-color 0.25s ease, color 0.25s ease;
}

.contact-form button:hover {
    background-color: #261C14;
    color: #FAF6EE;
}

#status-messaggio {
    margin-top: 10px;
    font-size: 14px;
    font-weight: bold;
    text-align: center;
}

footer {
    background-color: #261C14;
    color: #FAF6EE;
    padding: 30px 20px;
    text-align: center;
    font-size: 13px;
    letter-spacing: 0.5px;
}

footer a {
    color: #D9C3A5;
    text-decoration: none;
    transition: text-decoration 0.2s ease;
}

footer a:hover {
    text-decoration: underline;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(24px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 820px) {
    .contatti-layout {
        flex-direction: column;
        gap: 40px;
    }
    
    .nav-menu {
        display: none;
    }
    
    .hero .hero-content h1 {
        font-size: 32px;
    }
    
    .block-lostudio, .block-chisono, .block-aree, .block-contatti {
        padding: 60px 0;
    }
    
    .bio-testo, .studio-testo p {
        text-align: left;
    }
}

@media (max-width: 640px) {
    .aree-grid {
        grid-template-columns: 1fr;
    }
}