/* Nuvolari's Ristorante — rebuilt from the WordPress/Elementor site, Nov 2026.
   Colors, fonts and sizes match the original Elementor settings. */

@font-face { font-family: "Cardo"; src: url("/fonts/Cardo-Regular.ttf") format("truetype"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Cardo"; src: url("/fonts/Cardo-Bold.ttf") format("truetype"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Cardo"; src: url("/fonts/Cardo-Italic.ttf") format("truetype"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Emitha"; src: url("/fonts/Emitha-Script.ttf") format("truetype"); font-weight: 500; font-style: normal; font-display: swap; }

:root {
  --green: #056F07;        /* buttons, scrolled header */
  --green-dark: #034E04;   /* footer, menu panel, headings */
  --slate: #415D6B;        /* button hover */
  --white: #fff;
  --black: #000;

  --script: "Emitha", "Brush Script MT", cursive;
  --serif: "Cardo", Georgia, "Times New Roman", serif;

  --fs-script-xl: 180px;   /* page hero titles */
  --fs-script: 80px;       /* section headings */
  --fs-text: 20px;
  --fs-button: 20px;
}
@media (max-width: 1024px) { :root { --fs-script-xl: 120px; --fs-script: 60px; } }
@media (max-width: 767px)  { :root { --fs-script-xl: 100px; --fs-script: 50px; --fs-button: 22px; } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--white); color: var(--black); font-family: var(--serif); font-size: var(--fs-text); line-height: 1.55; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { margin: 0; font-weight: 500; line-height: 1.15; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: -9999px; top: 0; z-index: 1000; background: var(--white); color: var(--black); padding: 10px 16px; }
.skip-link:focus { left: 10px; top: 10px; }

.script { font-family: var(--script); font-weight: 500; }
.script-xl { font-family: var(--script); font-weight: 500; font-size: var(--fs-script-xl); color: var(--white); }
.heading { font-family: var(--script); font-weight: 500; font-size: var(--fs-script); color: var(--green-dark); }
.center { text-align: center; }
.container { width: 100%; max-width: 1280px; margin: 0 auto; }

/* ---------- Buttons ---------- */
.btn { display: inline-block; font-family: var(--serif); font-weight: 700; font-size: var(--fs-button); line-height: 1; text-decoration: none; color: var(--white); background: var(--green); padding: 15px 35px; border-radius: 20px 0 20px 0; transition: background .3s; }
.btn:hover, .btn:focus-visible { background: var(--slate); }
.btn-dark { background: var(--green-dark); }
.btn-reserve { border: 2px solid var(--white); border-radius: 6px; }

/* ---------- Header ---------- */
.site-header { position: fixed; top: 0; left: 0; right: 0; z-index: 99; padding: 10px 40px; min-height: 80px; display: flex; align-items: center; transition: background .3s; }
.site-header.is-scrolled, .site-header.is-solid { background: var(--green); }
.site-header .logo img { width: 250px; }
.site-header .actions { margin-left: auto; display: flex; align-items: center; gap: 40px; }
.menu-toggle { background: none; border: 0; padding: 0; cursor: pointer; line-height: 0; }
.menu-toggle img { width: 34px; }
@media (max-width: 1024px) { .site-header { padding: 10px 20px; } .site-header .reserve-wrap { display: none; } .menu-toggle img { width: 35px; } }
@media (max-width: 767px)  { .site-header { padding: 0 20px; } .site-header .logo img { width: 130px; } .menu-toggle img { width: 30px; } }

/* ---------- Slide-out menu (was an Elementor popup) ---------- */
.nav-overlay { position: fixed; inset: 0; background: rgba(0,0,0,.5); z-index: 200; opacity: 0; visibility: hidden; transition: opacity .3s, visibility .3s; }
.nav-panel { position: fixed; top: 0; right: 0; bottom: 0; width: min(480px, 90vw); background: var(--green-dark); color: var(--white); z-index: 201; padding: 80px 40px 40px; transform: translateX(100%); transition: transform .35s ease; overflow-y: auto; }
body.nav-open .nav-overlay { opacity: 1; visibility: visible; }
body.nav-open .nav-panel { transform: none; }
body.nav-open { overflow: hidden; }
.nav-close { position: absolute; top: 24px; right: 24px; background: none; border: 0; color: var(--white); cursor: pointer; padding: 4px; line-height: 0; }
.nav-close svg { width: 30px; height: 30px; fill: currentColor; }
.nav-panel .btn-reserve { margin-bottom: 30px; }
.nav-panel nav ul { list-style: none; margin: 0; padding: 0; }
.nav-panel nav a { display: block; padding: 17px 10px; text-decoration: none; font-size: var(--fs-text); }
.nav-panel nav a:hover, .nav-panel nav a:focus-visible, .nav-panel nav a[aria-current="page"] { background: var(--slate); }
.nav-panel hr { border: 0; border-top: 2px solid rgba(255,255,255,.8); margin: 30px 0; }
.nav-panel .nav-logo img { width: 220px; }
.nav-panel .social { justify-content: flex-start; margin-top: 24px; }

/* ---------- Social icons ---------- */
.social { display: flex; gap: 26px; justify-content: center; list-style: none; padding: 0; margin: 0; }
.social a { display: block; line-height: 0; color: var(--white); transition: color .3s; }
.social a:hover, .social a:focus-visible { color: var(--slate); }
.social svg { height: 30px; width: auto; fill: currentColor; }
@media (max-width: 767px) { .social svg { height: 25px; } }

/* ---------- Generic photo / video sections ---------- */
.band { position: relative; display: flex; flex-direction: column; background-size: cover; background-position: center; background-repeat: no-repeat; isolation: isolate; }
.band > .overlay { position: absolute; inset: 0; background: #000; z-index: -1; pointer-events: none; }
.band > .bg-media { position: absolute; inset: 0; z-index: -2; overflow: hidden; }
.band > .bg-media video, .band > .bg-media .slide { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; background-size: cover; background-position: center; }
@media (min-width: 1367px) { .band.fixed-bg { background-attachment: fixed; } }

.hero { min-height: 850px; justify-content: center; align-items: center; text-align: center; color: var(--white); padding: 120px 20px 60px; }
@media (max-width: 1024px) { .hero { min-height: 650px; } }
@media (max-width: 767px)  { .hero { min-height: 550px; } }
.hero p { margin-top: 6px; }

/* Home hero */
.home-hero { min-height: 850px; justify-content: center; align-items: center; }
.home-hero .hero-logo { width: 100%; max-width: 650px; padding: 0 20px; }
@media (max-width: 1366px) { .home-hero .hero-logo { max-width: 500px; } }
@media (max-width: 1024px) { .home-hero { min-height: 500px; } .home-hero .hero-logo { max-width: 400px; } }
@media (max-width: 767px)  { .home-hero { min-height: 400px; } .home-hero .hero-logo { max-width: 250px; } }

/* White text card that sits at the top of a photo band */
.card { background: var(--white); text-align: center; padding: 50px 20px; }
.card .heading { margin-bottom: 20px; }
.card p { margin-bottom: 30px; }
.card.boxed { width: 100%; max-width: 1280px; margin: 0 auto; }

/* Home: storefront band */
.storefront { min-height: 800px; }
.locate { flex: 1; display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; color: var(--white); padding: 60px 20px; }
.locate a { text-decoration: none; }
.locate .pin svg { width: 40px; height: 52px; fill: var(--white); }
.locate .town { font-family: var(--script); font-size: var(--fs-script); margin: 15px 0 10px; }
.locate .addr { font-size: 45px; line-height: 1.3; }
@media (max-width: 1024px) { .storefront { min-height: 650px; } .locate { padding-top: 120px; } }
@media (max-width: 767px)  { .storefront { min-height: 550px; } .locate .addr { font-size: 30px; } .locate { padding: 110px 10px 40px; } }

.photo-band { min-height: 900px; }
.photo-band.short { min-height: 800px; }
@media (max-width: 1024px) { .photo-band, .photo-band.short { min-height: 650px; } }
@media (max-width: 767px)  { .photo-band, .photo-band.short { min-height: 550px; } }

/* Slideshow (fade, 5s per slide) */
.slideshow .slide { opacity: 0; transition: opacity 1s ease; }
.slideshow .slide.is-active { opacity: 1; }
.kenburns .slide.is-active { animation: kenburns 20s linear infinite alternate; }
@keyframes kenburns { from { transform: scale(1); } to { transform: scale(1.3); } }
@media (prefers-reduced-motion: reduce) { .kenburns .slide.is-active { animation: none; } .slideshow .slide { transition: none; } }

/* ---------- About ---------- */
.story { padding: 80px 20px; }
.story .heading { margin-bottom: 30px; }
.story p { max-width: 1250px; margin-left: auto; margin-right: auto; }

/* ---------- Banquets ---------- */
.intro { padding: 50px 20px; }
.intro .heading { color: var(--green); margin-bottom: 20px; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; padding: 30px 20px 50px; }
.split .heading { color: var(--black); text-align: left; margin-bottom: 30px; }
.split img { border-radius: 24px; width: 100%; }
@media (max-width: 1024px) { .split { grid-template-columns: 1fr; gap: 30px; } }
.events { padding: 50px 20px; color: var(--white); text-align: center; }
.events .heading { color: var(--white); margin-bottom: 20px; }
.events .rooms { list-style: none; padding: 0; margin: 0 0 1em; }
.events .rooms li { margin: 0 0 1em; }
.events a { color: var(--white); text-decoration: underline; text-underline-offset: 3px; }
.events .contact-heading { margin-top: 40px; }

/* ---------- Contact ---------- */
.contact-band { padding: 80px 20px; }
.contact-box { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 40px; padding: 40px; background: rgba(5, 111, 7, .35); color: var(--white); }
.contact-box .heading { color: var(--white); text-align: left; }
.info-item { display: grid; grid-template-columns: 25px 1fr; gap: 20px; padding-top: 25px; }
.info-item svg { width: 25px; height: 25px; fill: var(--white); margin-top: 4px; }
.info-item .label { margin-bottom: 25px; }
.info-item a { text-decoration: none; }
.info-item a:hover { text-decoration: underline; }
.contact-form { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; align-content: start; }
.contact-form .full { grid-column: 1 / -1; }
.contact-form input, .contact-form textarea { width: 100%; font: 500 16px/1.4 "Lato", system-ui, -apple-system, "Segoe UI", sans-serif; color: var(--black); background: var(--white); border: 0; border-radius: 7px; padding: 16px 20px; }
.contact-form textarea { min-height: 150px; resize: vertical; }
.contact-form button { grid-column: 1 / -1; font-family: var(--serif); font-weight: 700; font-size: var(--fs-button); background: var(--white); color: var(--black); border: 0; border-radius: 7px; padding: 14px; cursor: pointer; transition: background .3s, color .3s; }
.contact-form button:hover, .contact-form button:focus-visible { background: var(--slate); color: var(--white); }
.contact-form .note { grid-column: 1 / -1; font-size: 16px; margin: 0; }
@media (max-width: 1024px) { .contact-box { grid-template-columns: 1fr; } }
@media (max-width: 767px)  { .contact-box { padding: 30px 20px; } .contact-form { grid-template-columns: 1fr; } }
.map iframe { display: block; width: 100%; height: 450px; border: 0; }

/* ---------- Gallery ---------- */
.follow { min-height: 300px; display: flex; align-items: center; justify-content: center; gap: 34px; padding: 40px 20px; color: var(--green-dark); text-transform: uppercase; font-size: var(--fs-text); }
.follow a { line-height: 0; color: var(--green-dark); }
.follow svg { width: 52px; height: 52px; fill: currentColor; }
@media (max-width: 600px) { .follow { flex-direction: column; gap: 16px; } }

/* ---------- Menu page ---------- */
.menu-page { padding: 160px 20px 80px; text-align: center; }
.menu-page h1 { font-family: var(--script); font-size: var(--fs-script); color: var(--green-dark); }
.menu-page h2 { font-size: 36px; font-weight: 400; margin: 10px 0 40px; }
.menu-page .menu-img { max-width: 900px; margin: 0 auto 40px; box-shadow: 0 2px 16px rgba(0,0,0,.12); }
.menu-page .download { margin-top: 10px; }
@media (max-width: 767px) { .menu-page { padding-top: 120px; } .menu-page h2 { font-size: 28px; } }

/* ---------- Footer ---------- */
.site-footer { background: var(--green-dark); color: var(--white); padding: 80px 0; }
.site-footer .cols { max-width: 1400px; margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 20px; align-items: start; }
.site-footer .brand { text-align: center; }
.site-footer .brand img { width: 60%; margin: 0 auto 30px; }
.icon-list { list-style: none; margin: 0; padding: 0; }
.icon-list li { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 16px; }
.icon-list svg { flex: none; width: 18px; height: 18px; fill: var(--white); margin-top: 6px; }
.icon-list a { text-decoration: none; }
.icon-list a:hover { text-decoration: underline; }
@media (max-width: 1024px) { .site-footer { padding: 40px 20px; } .site-footer .brand { text-align: left; } .site-footer .brand img { width: 47%; margin-left: 0; } .site-footer .brand .social { justify-content: flex-start; } }
@media (max-width: 767px)  { .site-footer { padding: 15% 5%; } .site-footer .cols { grid-template-columns: 1fr; gap: 30px; } .site-footer .brand { text-align: center; } .site-footer .brand img { width: 180px; margin: 0 auto 24px; } .site-footer .brand .social { justify-content: center; } }

/* ---------- 404 ---------- */
.notfound { min-height: 70vh; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 160px 20px 80px; }
.notfound .heading { margin-bottom: 20px; }
