/* Becco's Sausage: custom styles layered on Bootstrap 5 */

:root {
    --becco-red: #7a1f1f;
    --becco-red-dark: #561414;
    --becco-green: #2f5d3a;
    --becco-cream: #f6efe2;
    --becco-paper: #fbf7ef;
    --becco-ink: #2a211c;
    --becco-muted: #6b5d52;
    --becco-gold: #b8893b;
    /* Brighter flag colors taken from the logo, used for the stripe under the header */
    --flag-green: #36a454;
    --flag-red: #d4252a;

    --bs-body-font-family: "Source Sans 3", system-ui, sans-serif;
    --bs-body-color: var(--becco-ink);
    --bs-body-bg: var(--becco-paper);
    --bs-link-color-rgb: 122, 31, 31;
    --bs-link-hover-color-rgb: 86, 20, 20;
}

body { font-size: 1.075rem; line-height: 1.65; }

h1, h2, h3, h4, .display-font {
    font-family: "Playfair Display", Georgia, serif;
    font-weight: 800;
    color: var(--becco-ink);
}


.site-header { position: sticky; top: 0; z-index: 1030; }

/* Navigation: white bar so the original logo sits on its own background */
.site-nav {
    background: #fff;
    /* Italian flag stripe under the header */
    border-bottom: 6px solid;
    border-image: linear-gradient(to right,
        var(--flag-green) 0 33.333%, #fff 33.333% 66.666%, var(--flag-red) 66.666% 100%) 1;
    box-shadow: 0 2px 10px rgba(0,0,0,.08); padding: .275rem 0; }
/* The logo uses the brand link's padding, so it is bigger while the header keeps its
   original height (about 87px on desktop, 73px on phones). */
.site-nav .navbar-brand { padding-top: 0; padding-bottom: 0; }
.navbar-brand img { height: 78px; width: auto; display: block; }
@media (max-width: 575px) {
    .site-nav { padding: .4rem 0; }
    .navbar-brand img { height: 60px; }
}
.site-nav .nav-link { font-weight: 600; color: var(--becco-ink); padding-inline: .8rem !important; }
.site-nav .nav-link:hover { color: var(--becco-red); }
.site-nav .nav-link.active { color: var(--becco-red); text-decoration: underline; text-underline-offset: 6px; text-decoration-color: var(--flag-green); text-decoration-thickness: 2px; }

/* Hero */
.hero {
    background:
        radial-gradient(ellipse at top right, rgba(184,137,59,.25), transparent 60%),
        linear-gradient(135deg, var(--becco-red-dark), var(--becco-red));
    color: var(--becco-cream);
    padding: 6rem 0 5rem;
    position: relative;
    overflow: hidden;
}
.hero h1 { color: #fff; font-size: clamp(2.4rem, 6vw, 4.2rem); line-height: 1.05; }
.hero .lead { color: var(--becco-cream); max-width: 34rem; }
.hero-badge {
    width: 230px; height: 230px; border-radius: 50%;
    border: 3px solid var(--becco-gold);
    outline: 1px solid rgba(184,137,59,.5); outline-offset: 8px;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    text-align: center; margin-inline: auto; color: var(--becco-cream);
}
.hero-badge .since { letter-spacing: 4px; text-transform: uppercase; font-size: .8rem; }
.hero-badge .year { font-family: "Playfair Display", serif; font-size: 4rem; font-weight: 800; line-height: 1; color: #fff; }
.hero-badge .place { font-size: .85rem; letter-spacing: 1px; }

.page-header {
    background: linear-gradient(135deg, var(--becco-red-dark), var(--becco-red));
    color: var(--becco-cream); padding: 3.5rem 0 3rem;
}
.page-header h1 { color: #fff; margin: 0; }
.page-header p { margin: .5rem 0 0; opacity: .9; }

/* Buttons */
.btn-becco { background: var(--becco-gold); color: #1f160f; border: 0; font-weight: 600; padding: .75rem 1.5rem; }
.btn-becco:hover { background: #cf9d4c; color: #1f160f; }
.btn-outline-cream { border: 2px solid var(--becco-cream); color: var(--becco-cream); font-weight: 600; padding: .65rem 1.4rem; }
.btn-outline-cream:hover { background: var(--becco-cream); color: var(--becco-red); }
.btn-red { background: var(--becco-red); color: #fff; font-weight: 600; padding: .7rem 1.5rem; }
.btn-red:hover { background: var(--becco-red-dark); color: #fff; }

/* Sections */
.section { padding: 5rem 0; }
.section-alt { background: var(--becco-cream); }
.eyebrow { text-transform: uppercase; letter-spacing: 3px; font-size: .8rem; font-weight: 600; color: var(--becco-red); }

.feature-card {
    background: #fff; border: 1px solid #eadfcc; border-radius: 12px;
    padding: 2rem; height: 100%;
}
.feature-icon {
    width: 56px; height: 56px; border-radius: 50%;
    background: var(--becco-cream); color: var(--becco-red);
    display: grid; place-items: center; font-size: 1.5rem; margin-bottom: 1rem;
}

.quote-block {
    border-left: 4px solid var(--becco-gold);
    padding: .5rem 0 .5rem 1.5rem;
    font-family: "Playfair Display", serif; font-style: italic;
    font-size: 1.35rem; line-height: 1.5;
}
.quote-block cite { display: block; font-family: "Source Sans 3", sans-serif; font-style: normal; font-size: .95rem; color: var(--becco-muted); margin-top: .75rem; }

/* Timeline */
.timeline { list-style: none; padding: 0; margin: 0; position: relative; }
.timeline::before { content: ""; position: absolute; left: 7px; top: 6px; bottom: 6px; width: 2px; background: #e2d4bb; }
.timeline li { position: relative; padding-left: 2.25rem; margin-bottom: 2rem; }
.timeline li::before {
    content: ""; position: absolute; left: 0; top: 6px; width: 16px; height: 16px;
    border-radius: 50%; background: var(--becco-red); border: 3px solid var(--becco-cream);
    box-shadow: 0 0 0 2px var(--becco-red);
}
.timeline .year { font-family: "Playfair Display", serif; font-weight: 800; font-size: 1.3rem; color: var(--becco-red); }

/* Products */
.product-list { columns: 2; column-gap: 2rem; padding-left: 1.2rem; }
@media (max-width: 575px) { .product-list { columns: 1; } }

/* Store cards */
.store-card { background: #fff; border-radius: 12px; border-top: 5px solid var(--becco-green); padding: 1.75rem; height: 100%; box-shadow: 0 4px 14px rgba(0,0,0,.05); }
.store-card h3 { font-size: 1.35rem; margin-bottom: .25rem; }

/* CTA band */
.cta-band { background: var(--becco-green); color: #fff; padding: 3.5rem 0; }
.cta-band h2 { color: #fff; }

/* Forms */
.form-control:focus { border-color: var(--becco-gold); box-shadow: 0 0 0 .2rem rgba(184,137,59,.25); }
.hp-field { position: absolute; left: -9999px; }

/* Footer: one compact bar */
.site-footer { background: #1f1814; color: #cbbfae; padding: .75rem 0; font-size: .95rem; }
.site-footer a { color: #f1e6d3; text-decoration: none; }
.site-footer a:hover { color: var(--becco-gold); }
.footer-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .75rem 1.5rem; }
.footer-logo { width: 110px; height: auto; display: block; }
.footer-copy { margin: 0; font-size: .85rem; color: #9d9182; }
@media (max-width: 767px) {
    .footer-row { flex-direction: column; justify-content: center; text-align: center; gap: .4rem; }
}

/* Archival photos */
.photo-frame { margin: 0; background: #fff; padding: .6rem .6rem 0; border-radius: 6px; box-shadow: 0 8px 24px rgba(0,0,0,.12); }
.photo-frame img { width: 100%; height: auto; display: block; border-radius: 3px; }
.photo-frame figcaption { font-family: "Playfair Display", serif; font-style: italic; text-align: center; padding: .6rem .25rem .75rem; color: var(--becco-muted); }
.hero .photo-frame { transform: rotate(2deg); max-width: 440px; margin-left: auto; }
.hero .photo-frame figcaption { color: var(--becco-ink); }

/* Recipes */
.tip-card { background: #fff8e6; border: 1px solid #ecd9a8; border-left: 5px solid var(--becco-gold); border-radius: 10px; padding: 1.5rem 1.75rem; }
.recipe-card { display: flex; flex-direction: column; height: 100%; background: #fff; border: 1px solid #eadfcc; border-radius: 12px; padding: 1.75rem; color: inherit; text-decoration: none; transition: transform .15s ease, box-shadow .15s ease; }
.recipe-card:hover { transform: translateY(-3px); box-shadow: 0 10px 24px rgba(0,0,0,.08); color: inherit; }
.recipe-icon { width: 48px; height: 48px; border-radius: 50%; background: var(--becco-cream); color: var(--becco-red); display: grid; place-items: center; font-size: 1.3rem; }
.recipe-badge { background: var(--becco-green); font-weight: 600; letter-spacing: .5px; }
.recipe-by { color: var(--becco-muted); font-style: italic; }
.recipe-link { margin-top: auto; padding-top: 1rem; font-weight: 600; color: var(--becco-red); }
.recipe-ingredients li { margin-bottom: .45rem; }
.recipe-steps { padding-left: 0; list-style: none; counter-reset: step; }
.recipe-steps li { counter-increment: step; position: relative; padding-left: 3rem; margin-bottom: 1.25rem; }
.recipe-steps li::before { content: counter(step); position: absolute; left: 0; top: 0; width: 2rem; height: 2rem; border-radius: 50%; background: var(--becco-red); color: #fff; font-weight: 600; display: grid; place-items: center; font-size: .95rem; }
.recipe-pager { border-top: 1px solid #e2d4bb; }
.recipe-pager a { font-weight: 600; text-decoration: none; }
.breadcrumb-light a { color: var(--becco-cream); }
.breadcrumb-light .breadcrumb-item.active, .breadcrumb-light .breadcrumb-item + .breadcrumb-item::before { color: rgba(246,239,226,.7); }

@media print {
    .site-header, .site-nav, .site-footer, .page-header nav { display: none !important; }
    .page-header { background: none; color: #000; padding: 0 0 1rem; }
    .page-header h1 { color: #000; }
    .section { padding: 1rem 0; }
}
