/* 
    La Famiglia - Artisan Heritage Theme (Refined)
    - Controlled Overlaps: Responsive and clean.
    - Textures: Italian Linen, Aged Parchment, Dark Wood.
    - Typography: Cinzel (Headings), Cormorant Garamond (Body).
*/

@import url('https://fonts.googleapis.com/css2?family=Bodoni+Moda:ital,wght@0,400;0,700;0,900;1,400;1,700&family=Cormorant+Garamond:ital,wght@0,300;0,400;0,600;0,700;1,400&family=Italianno&family=Mrs+Saint+Delafield&display=swap');

:root {
    --pomodoro: #8b1a1a;
    --basilico: #2d4c2d;
    --crema: #f9f4ee;
    --oro: #b68d40;
    --nero: #1a1a1b;
    --legno: #2c1e16;
}

body {
    font-family: 'Cormorant Garamond', serif;
    color: #2c2c2c;
    line-height: 1.8;
    background-color: var(--crema);
    /* Subtle parchment texture */
    background-image: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise' x='0' y='0'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100' height='100' filter='url(%23noise)' opacity='0.04'/%3E%3C/svg%3E");
}

h1, h2, h3, h4, h5, h6, .navbar-brand {
    font-family: 'Bodoni Moda', serif;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.hero-tagline {
    font-family: 'Italianno', cursive;
    font-size: clamp(2rem, 6vw, 3.5rem) !important;
    color: var(--oro);
    letter-spacing: 1px !important;
    text-transform: none;
    text-shadow: 2px 2px 10px rgba(0,0,0,0.5);
    margin-bottom: 0 !important;
}

.signature {
    font-family: 'Italianno', cursive;
    color: var(--oro);
    font-size: 4rem;
    display: block;
    margin-top: -10px;
    text-transform: none;
    letter-spacing: 0;
}

/* Custom Navigation */
.navbar {
    background-color: #fff;
    border-bottom: 4px double var(--oro);
    padding: 1.2rem 0;
}

.nav-link {
    font-family: 'Cinzel', serif;
    font-weight: 700;
    font-size: 0.85rem;
    color: var(--nero) !important;
    position: relative;
    padding: 10px 20px !important;
    transition: 0.3s;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 1px;
    bottom: 5px;
    left: 20px;
    background-color: var(--pomodoro);
    transition: 0.3s;
}

.nav-link:hover::after, .nav-link.active::after {
    width: calc(100% - 40px);
}

/* Hero Section */
.hero-section {
    height: 85vh;
    position: relative;
    border-bottom: 15px solid var(--legno);
    overflow: hidden; /* Hide the scaled edges of blurred background */
}

.hero-bg {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background-size: cover;
    background-position: center;
    filter: blur(5px);
    transform: scale(1.1); /* Prevent white edges from blur */
    z-index: 1;
}

.hero-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(to right, 
        rgba(45, 76, 45, 0.6) 0%, 
        rgba(0, 0, 0, 0.3) 50%, 
        rgba(139, 26, 26, 0.6) 100%
    );
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    text-shadow: 0 4px 10px rgba(0,0,0,0.5);
}

.hero-content h1 {
    font-size: clamp(3rem, 8vw, 6rem);
    font-weight: 900;
    text-shadow: 0 5px 20px rgba(0,0,0,0.8);
}

.hero-tagline {
    font-family: 'Bodoni Moda', serif;
    font-size: clamp(1.1rem, 3vw, 1.6rem) !important;
    color: #ffffff !important;
    letter-spacing: 6px !important;
    text-transform: uppercase !important;
    font-weight: 700;
    text-shadow: 0 2px 15px rgba(0,0,0,0.9);
    margin-bottom: 10px !important;
    font-style: normal !important;
}

/* Flourish Dividers */
.flourish-divider {
    width: 250px;
    height: 30px;
    margin: 20px auto;
    background-image: url("data:image/svg+xml,%3Csvg width='200' height='30' viewBox='0 0 200 30' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0 15 Q 50 0 100 15 T 200 15' fill='none' stroke='%23b68d40' stroke-width='1'/%3E%3Ccircle cx='100' cy='15' r='3' fill='%23b68d40'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
}

/* Controlled Overlap */
.overlap-section {
    position: relative;
    z-index: 10;
}

@media (min-width: 992px) {
    .overlap-section {
        margin-top: -80px; /* Reduced overlap for better clarity */
    }
}

.artisan-card {
    background: #fff;
    padding: clamp(25px, 5vw, 60px);
    border: 1px solid #d4c4a8;
    box-shadow: 0 20px 50px rgba(0,0,0,0.08);
    position: relative;
    overflow-wrap: break-word;
    word-wrap: break-word;
}

.artisan-card h1, .artisan-card h2, .artisan-card h3, .artisan-card h4 {
    overflow-wrap: break-word;
    word-break: break-word;
}

/* Utility for breaking long strings like emails */
.text-break-all {
    word-break: break-all !important;
    overflow-wrap: break-word !important;
}

.artisan-card::before {
    content: '';
    position: absolute;
    top: clamp(8px, 2vw, 15px); 
    left: clamp(8px, 2vw, 15px); 
    right: clamp(8px, 2vw, 15px); 
    bottom: clamp(8px, 2vw, 15px);
    border: 1px solid #d4c4a8;
    pointer-events: none;
}

/* Buttons */
.btn-artisan {
    padding: 15px clamp(20px, 4vw, 45px);
    border-radius: 0;
    text-transform: uppercase;
    font-family: 'Cinzel', serif;
    font-weight: 700;
    letter-spacing: 2px;
    transition: all 0.4s;
    display: inline-block;
    text-decoration: none;
    border: 1px solid transparent;
    max-width: 100%;
    text-align: center;
}

.btn-wine {
    background-color: var(--pomodoro);
    color: #fff;
    border-color: var(--pomodoro);
}

.btn-wine:hover {
    background-color: transparent;
    color: var(--pomodoro);
}

/* Image Frames - Improved Responsiveness */
.vintage-frame {
    padding: clamp(10px, 2vw, 20px);
    background: #fff;
    border: 1px solid #ddd;
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
    position: relative;
    display: inline-block;
    max-width: 100%;
}

.vintage-frame::after {
    content: '';
    position: absolute;
    top: clamp(5px, 1vw, 10px); 
    left: clamp(5px, 1vw, 10px); 
    right: clamp(5px, 1vw, 10px); 
    bottom: clamp(5px, 1vw, 10px);
    border: 1px solid var(--oro);
    pointer-events: none;
}

/* Blackboard - Traditional Restaurant Look */
.blackboard {
    background-color: #1a1a1a;
    background-image: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise' x='0' y='0'%3E%3CfeTurbulence baseFrequency='0.8' numOctaves='4' type='fractalNoise' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect filter='url(%23noise)' opacity='0.1' width='100' height='100'/%3E%3C/svg%3E");
    color: #fff;
    border: clamp(10px, 3vw, 20px) solid #3d2b1f; /* Responsive frame */
    padding: clamp(40px, 8vw, 80px) clamp(20px, 5vw, 40px);
    box-shadow: inset 0 0 100px rgba(0,0,0,0.8), 0 20px 40px rgba(0,0,0,0.2);
}

/* Footer */
.footer {
    background-color: var(--legno);
    background-image: linear-gradient(rgba(0,0,0,0.8), rgba(0,0,0,0.8)), url('../img/hero-1.jpg');
    background-size: cover;
    color: #d1d1d1;
    padding: 80px 0 40px;
    border-top: 10px solid var(--oro);
}

.footer h5 {
    color: var(--oro);
    border-bottom: 1px solid var(--oro);
    display: inline-block;
    padding-bottom: 8px;
    margin-bottom: 25px;
}

.footer-logo {
    height: clamp(40px, 10vw, 60px);
    width: auto;
    margin-bottom: 20px;
    filter: brightness(0) invert(1);
}

.hours-table {
    width: 100%;
    font-size: 0.95rem;
}

.hours-table td {
    padding: 10px 0;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.hours-table td:last-child {
    text-align: right;
    color: var(--oro);
    font-weight: 700;
}

/* General Spacing */
.section-padding {
    padding: clamp(60px, 10vw, 120px) 0;
}

.bg-white { background-color: #ffffff !important; }
.bg-cream { background-color: var(--crema) !important; }

/* Menu Page */
.menu-category-title {
    font-family: 'Cinzel', serif;
    font-size: 2.5rem;
    color: var(--pomodoro);
    margin-bottom: 40px;
    position: relative;
}

.menu-category-title::after {
    content: '◈';
    display: block;
    font-size: 1rem;
    color: var(--oro);
    margin-top: 10px;
}
