/*
Theme Name: Nobi Pop Art
Theme URI: https://masserianobileservice.it
Author: Masseria Nobile
Author URI: https://masserianobileservice.it
Description: Tema WordPress Pop Art elegante per Nobi Restaurant & Pool Bar, con palette Blu Oceano e Bordeaux.
Version: 1.0.7
Requires at least: 6.0
Tested up to: 7.0
Requires PHP: 7.4
License: GPLv2 or later
Text Domain: nobi-popart
*/

:root {
  --nobi-ocean: #057b9b;
  --nobi-ocean-dark: #04536d;
  --nobi-bordeaux: #7b1737;
  --nobi-bordeaux-dark: #4d0e23;
  --nobi-gold: #c79b55;
  --nobi-cream: #f6efe3;
  --nobi-white: #fffdf8;
  --nobi-ink: #171415;
  --nobi-radius: 8px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--nobi-cream);
  color: var(--nobi-ink);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.55;
}

a {
  color: inherit;
}

img {
  max-width: 100%;
  height: auto;
}

.nobi-site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 4px solid var(--nobi-ink);
  background: rgba(246, 239, 227, 0.94);
  backdrop-filter: blur(12px);
}

.nobi-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  min-height: 82px;
}

.nobi-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  font-weight: 900;
  color: var(--nobi-bordeaux);
}

.nobi-brand img {
  width: 74px;
  height: 74px;
  object-fit: contain;
}

.nobi-brand span {
  display: none;
}

.nobi-nav {
  display: none;
  align-items: center;
  gap: 18px;
  font-weight: 800;
}

.nobi-nav a {
  text-decoration: none;
}

.nobi-button,
.wp-block-button__link,
button,
input[type="submit"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 18px;
  border: 3px solid var(--nobi-ink);
  border-radius: 0;
  background: var(--nobi-bordeaux);
  color: #fff;
  box-shadow: 6px 6px 0 var(--nobi-gold);
  font-weight: 900;
  text-decoration: none;
  cursor: pointer;
}

.nobi-button--light {
  background: var(--nobi-white);
  color: var(--nobi-bordeaux);
}

.nobi-hero {
  min-height: calc(100vh - 82px);
  display: grid;
  align-items: center;
  gap: 28px;
  padding: clamp(30px, 6vw, 76px) max(18px, calc((100vw - 1180px) / 2));
  border-bottom: 7px solid var(--nobi-ink);
  background:
    radial-gradient(circle at 24px 24px, rgba(123, 23, 55, 0.22) 0 7px, transparent 8px) 0 0 / 44px 44px,
    linear-gradient(120deg, rgba(5, 123, 155, 0.28), rgba(255, 253, 248, 0.8) 42%, rgba(199, 155, 85, 0.28)),
    var(--nobi-cream);
}

.nobi-hero-poster,
.nobi-hero-logo {
  justify-self: center;
  display: grid;
  place-items: center;
  width: min(86vw, 440px);
  padding: 10px;
  background: #e4d9ca;
  border: 8px solid var(--nobi-ink);
  box-shadow: 18px 18px 0 var(--nobi-ocean), -14px -14px 0 var(--nobi-bordeaux);
  transform: rotate(-2deg);
}

.nobi-hero-poster img {
  display: block;
  width: 100%;
  max-height: 72vh;
  object-fit: cover;
  border: 3px solid var(--nobi-gold);
}

.nobi-kicker {
  display: inline-block;
  margin: 0 0 14px;
  padding: 8px 12px;
  border: 3px solid var(--nobi-ink);
  background: var(--nobi-gold);
  color: var(--nobi-ink);
  font-weight: 950;
  text-transform: uppercase;
}

.nobi-hero h1,
.nobi-page-title {
  margin: 0;
  color: var(--nobi-bordeaux);
  font-size: clamp(48px, 10vw, 132px);
  line-height: 0.9;
  letter-spacing: 0;
  text-transform: uppercase;
  text-shadow: 5px 5px 0 var(--nobi-white), 10px 10px 0 var(--nobi-ocean);
}

.nobi-hero-lead {
  max-width: 720px;
  margin: 24px 0 0;
  color: var(--nobi-ink);
  font-size: clamp(22px, 3.3vw, 38px);
  font-weight: 850;
  line-height: 1.08;
}

.nobi-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 28px;
}

.nobi-section {
  padding: clamp(36px, 6vw, 78px) max(18px, calc((100vw - 1180px) / 2));
}

.nobi-service-grid,
.nobi-price-grid {
  display: grid;
  gap: 0;
  border: 5px solid var(--nobi-ink);
}

.nobi-service,
.nobi-price {
  min-height: 250px;
  padding: clamp(24px, 4vw, 44px);
  border-bottom: 4px solid var(--nobi-ink);
}

.nobi-service:nth-child(1) {
  background: var(--nobi-ocean);
  color: #fff;
}

.nobi-service:nth-child(2) {
  background: var(--nobi-white);
}

.nobi-service:nth-child(3) {
  background: var(--nobi-bordeaux);
  color: #fff;
}

.nobi-service span {
  display: inline-block;
  margin-bottom: 18px;
  padding: 6px 10px;
  border: 3px solid var(--nobi-ink);
  background: var(--nobi-gold);
  color: var(--nobi-ink);
  font-weight: 950;
}

.nobi-service h2,
.nobi-price h2 {
  margin: 0 0 12px;
  font-size: clamp(32px, 5vw, 58px);
  line-height: 0.95;
  letter-spacing: 0;
  text-transform: uppercase;
}

.nobi-service p,
.nobi-price p {
  max-width: 520px;
  margin: 0;
  font-size: 18px;
}

.nobi-price-grid {
  background: var(--nobi-white);
}

.nobi-price-section {
  background:
    linear-gradient(90deg, rgba(5, 123, 155, 0.12) 50%, transparent 50%) 0 0 / 30px 30px,
    var(--nobi-white);
}

.nobi-poster-prices {
  box-shadow: 12px 12px 0 var(--nobi-gold);
}

.nobi-price--blue {
  background: #f8fbff;
  color: #082c68;
}

.nobi-price--green {
  background: #f5fff4;
  color: #145c20;
}

.nobi-price--purple {
  background: #fbf7ff;
  color: #4a147d;
}

.nobi-price strong {
  display: inline-block;
  min-width: 116px;
  margin-right: 8px;
  padding: 6px 12px;
  border: 3px solid var(--nobi-ink);
  border-radius: 8px;
  background: var(--nobi-bordeaux);
  color: #fff;
  font-size: 30px;
  text-align: center;
  box-shadow: 4px 4px 0 var(--nobi-gold);
}

.nobi-promo-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-top: 22px;
  padding: 16px;
  border: 5px solid var(--nobi-ink);
  background: var(--nobi-gold);
  color: var(--nobi-ink);
  font-weight: 900;
}

.nobi-promo-strip strong {
  padding: 8px 12px;
  background: var(--nobi-bordeaux);
  color: #fff;
  text-transform: uppercase;
}

.nobi-booking-wrap {
  background:
    linear-gradient(90deg, rgba(5, 123, 155, 0.2) 50%, transparent 50%) 0 0 / 28px 28px,
    var(--nobi-cream);
}

.nobi-booking-wrap .nobi-booking {
  margin-top: 0;
  margin-bottom: 0;
}

.nobi-content {
  width: min(980px, calc(100% - 36px));
  margin: 0 auto;
  padding: clamp(34px, 6vw, 72px) 0;
}

.nobi-content > *:first-child {
  margin-top: 0;
}

.nobi-content input,
.nobi-content textarea,
.nobi-content select {
  max-width: 100%;
  border: 2px solid var(--nobi-ink);
  padding: 10px 12px;
  font: inherit;
}

.nobi-site-footer {
  padding: 34px 18px;
  border-top: 5px solid var(--nobi-ink);
  background: var(--nobi-bordeaux-dark);
  color: #fff;
  text-align: center;
}

.nobi-site-footer strong {
  color: var(--nobi-gold);
}

@media (min-width: 780px) {
  .nobi-brand span,
  .nobi-nav {
    display: inline-flex;
  }

  .nobi-hero {
    grid-template-columns: minmax(280px, 0.8fr) minmax(0, 1.2fr);
  }

  .nobi-service-grid,
  .nobi-price-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .nobi-service,
  .nobi-price {
    border-bottom: 0;
    border-right: 4px solid var(--nobi-ink);
  }

  .nobi-service:last-child,
  .nobi-price:last-child {
    border-right: 0;
  }
}

@media (max-width: 520px) {
  .nobi-header-inner {
    min-height: 72px;
  }

  .nobi-brand img {
    width: 62px;
    height: 62px;
  }

  .nobi-hero {
    min-height: calc(100vh - 72px);
  }

  .nobi-hero h1,
  .nobi-page-title {
    text-shadow: 3px 3px 0 var(--nobi-white), 6px 6px 0 var(--nobi-ocean);
  }
}
