/* ==========================================================================
   Teresa Acampora Immobiliare - Stylesheet
   ========================================================================== */

/* --- CSS Variables --- */
:root {
  --gold: #DCA54A;
  --gold-dark: #C89535;
  --navy: #0F172A;
  --gray: #4A4A4A;
  --cream: #FAF5E5;
  --white: #FFFFFF;
  --cream-alt: #F0E6C5;
  --dark-brown: #141004;
  --dark-gray: #222222;
  --font: 'Poppins', sans-serif;
  --max-width: 1200px;
  --header-height: 80px;
}

/* --- Reset & Base --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font);
  font-weight: 400;
  line-height: 1.6;
  color: var(--gray);
  background-color: var(--cream);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
  transition: color 0.3s;
}

ul {
  list-style: none;
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  color: var(--navy);
  line-height: 1.2;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.container--narrow {
  max-width: 900px;
}

section {
  padding: 80px 0;
}

/* --- Buttons --- */
.btn {
  display: inline-block;
  padding: 14px 36px;
  border-radius: 4px;
  font-family: var(--font);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.3s;
  border: 2px solid transparent;
}

.btn--gold {
  background: var(--gold);
  color: var(--white);
  border-color: var(--gold);
}

.btn--gold:hover {
  background: var(--gold-dark);
  border-color: var(--gold-dark);
}

.btn--outline {
  background: transparent;
  color: var(--gold);
  border-color: var(--gold);
}

.btn--outline:hover {
  background: var(--gold);
  color: var(--white);
}

.btn--white {
  background: var(--white);
  color: var(--gold);
  border-color: var(--white);
}

.btn--white:hover {
  background: transparent;
  color: var(--white);
  border-color: var(--white);
}

/* --- Header --- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  background: var(--white);
  z-index: 1000;
  box-shadow: 0 2px 20px rgba(0,0,0,0.06);
  transition: background 0.3s;
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.header__logo img {
  height: 50px;
  width: auto;
}

.header__nav {
  display: flex;
  align-items: center;
  gap: 32px;
}

.header__nav a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--navy);
  position: relative;
  padding: 4px 0;
  letter-spacing: 0.5px;
}

.header__nav a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gold);
  transition: width 0.3s;
}

.header__nav a:hover::after,
.header__nav a.active::after {
  width: 100%;
}

.header__nav a:hover,
.header__nav a.active {
  color: var(--gold);
}

.header__cta {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--gold);
  color: var(--white);
  padding: 10px 20px;
  border-radius: 4px;
  font-size: 0.85rem;
  font-weight: 600;
  transition: background 0.3s;
}

.header__cta:hover {
  background: var(--gold-dark);
}

.header__cta svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

/* Mobile menu toggle */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
  background: none;
  border: none;
}

.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--navy);
  transition: all 0.3s;
}

.menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* --- Hero --- */
.hero {
  position: relative;
  min-height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  margin-top: var(--header-height);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(15,23,42,0.75) 0%, rgba(15,23,42,0.45) 100%);
}

.hero__content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  padding: 40px 24px;
}

.hero__tagline {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 20px;
}

.hero__title {
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  color: var(--white);
  margin-bottom: 20px;
  line-height: 1.15;
}

.hero__subtitle {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: rgba(255,255,255,0.85);
  margin-bottom: 36px;
  font-weight: 300;
}

.hero--small {
  min-height: 50vh;
}

/* --- Section Titles --- */
.section-label {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 12px;
}

.section-title {
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  margin-bottom: 16px;
}

.section-text {
  font-size: 1.05rem;
  max-width: 700px;
  color: var(--gray);
  line-height: 1.8;
}

.text-center {
  text-align: center;
}

.text-center .section-text {
  margin-left: auto;
  margin-right: auto;
}

/* --- Services Grid --- */
.services {
  background: var(--white);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  margin-top: 48px;
}

.service-card {
  text-align: center;
  padding: 40px 24px;
  border-radius: 8px;
  background: var(--cream);
  transition: transform 0.3s, box-shadow 0.3s;
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.08);
}

.service-card__icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--gold);
  color: var(--white);
}

.service-card__icon svg {
  width: 24px;
  height: 24px;
  fill: currentColor;
}

.service-card h3 {
  font-size: 1.15rem;
  margin-bottom: 16px;
}

.service-card ul {
  text-align: left;
}

.service-card li {
  padding: 6px 0;
  font-size: 0.95rem;
  color: var(--gray);
  position: relative;
  padding-left: 20px;
}

.service-card li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 14px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold);
}

/* --- Values / Promise --- */
.promise {
  background: var(--cream);
}

.promise-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
  margin-top: 48px;
}

.promise-card {
  display: flex;
  gap: 16px;
  padding: 24px;
  background: var(--white);
  border-radius: 8px;
  transition: box-shadow 0.3s;
}

.promise-card:hover {
  box-shadow: 0 8px 30px rgba(0,0,0,0.06);
}

.promise-card__number {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--gold);
  color: var(--white);
  font-weight: 700;
  font-size: 0.9rem;
}

.promise-card h4 {
  font-size: 1rem;
  margin-bottom: 6px;
}

.promise-card p {
  font-size: 0.9rem;
  color: var(--gray);
}

/* --- Gallery Strip --- */
.gallery-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  overflow: hidden;
}

.gallery-strip img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  transition: transform 0.5s;
}

.gallery-strip img:hover {
  transform: scale(1.05);
}

/* --- About / Chi Siamo --- */
.about-intro {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.about-intro__img {
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0,0,0,0.1);
}

.about-intro__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.competenze-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
  margin-top: 48px;
}

.competenza-card {
  padding: 32px;
  background: var(--white);
  border-radius: 8px;
  border-left: 4px solid var(--gold);
  transition: box-shadow 0.3s;
}

.competenza-card:hover {
  box-shadow: 0 8px 30px rgba(0,0,0,0.06);
}

.competenza-card h4 {
  font-size: 1.05rem;
  margin-bottom: 8px;
}

.competenza-card p {
  font-size: 0.9rem;
  color: var(--gray);
}

/* --- Properties / Immobili --- */
.properties-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-top: 48px;
}

.property-card {
  background: var(--white);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0,0,0,0.06);
  transition: transform 0.3s, box-shadow 0.3s;
}

.property-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.1);
}

.property-card__img {
  position: relative;
  height: 220px;
  overflow: hidden;
}

.property-card__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}

.property-card:hover .property-card__img img {
  transform: scale(1.08);
}

.property-card__badge {
  position: absolute;
  top: 16px;
  left: 16px;
  background: var(--gold);
  color: var(--white);
  padding: 4px 12px;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.property-card__body {
  padding: 24px;
}

.property-card__price {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--gold);
  margin-bottom: 8px;
}

.property-card__title {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 12px;
}

.property-card__meta {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 12px;
  font-size: 0.85rem;
  color: var(--gray);
}

.property-card__meta span {
  display: flex;
  align-items: center;
  gap: 4px;
}

.property-card__desc {
  font-size: 0.9rem;
  color: var(--gray);
  line-height: 1.6;
}

.property-card__ref {
  margin-top: 12px;
  font-size: 0.8rem;
  color: #999;
}

.property-card__link {
  display: inline-block;
  margin-top: 12px;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--gold);
  transition: color 0.2s;
}

.property-card__link:hover {
  color: var(--gold-dark);
}

/* --- Energy Class Badge --- */
.property-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 12px;
}

.energy-badge {
  display: inline-flex;
  align-items: baseline;
  gap: 3px;
  line-height: 1;
  white-space: nowrap;
}

.energy-badge__label {
  font-size: 0.75rem;
  font-weight: 400;
  color: var(--gray);
}

.energy-badge__value {
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: 0.5px;
}

.energy-badge--app .energy-badge__value { color: #006837; }
.energy-badge--ap  .energy-badge__value { color: #1a9641; }
.energy-badge--a   .energy-badge__value { color: #4dac26; }
.energy-badge--b   .energy-badge__value { color: #b8c820; }
.energy-badge--c   .energy-badge__value { color: #f5a623; }
.energy-badge--d   .energy-badge__value { color: #e87d1e; }
.energy-badge--e   .energy-badge__value { color: #dc3545; }
.energy-badge--f   .energy-badge__value { color: #b02a37; }
.energy-badge--g   .energy-badge__value { color: #7a1a22; }

/* --- Property Status Ribbon --- */
.property-card__status {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  pointer-events: none;
  overflow: hidden;
}

.property-card__status::before {
  content: attr(data-label);
  position: absolute;
  top: 28px;
  right: -45px;
  width: 200px;
  text-align: center;
  padding: 8px 0;
  font-family: var(--font);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--white);
  transform: rotate(35deg);
  box-shadow: 0 2px 8px rgba(0,0,0,0.25);
}

.property-card__status--venduto::before {
  background: #dc3545;
}

.property-card__status--in_trattativa::before {
  background: #f58220;
}

.property-card__status--affittato::before {
  background: #0e7490;
}

/* --- Collaborazioni --- */
.collab-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  padding: 60px 0;
}

.collab-section:nth-child(even) {
  direction: rtl;
}

.collab-section:nth-child(even) > * {
  direction: ltr;
}

.collab-section__img {
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0,0,0,0.1);
}

.collab-section__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.collab-section h3 {
  font-size: 1.5rem;
  margin-bottom: 16px;
}

.collab-section p {
  margin-bottom: 12px;
  font-size: 0.95rem;
}

.collab-section ul {
  margin-top: 12px;
}

.collab-section li {
  padding: 6px 0;
  padding-left: 20px;
  position: relative;
  font-size: 0.95rem;
}

.collab-section li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 14px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold);
}

/* --- Before/After --- */
.before-after {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 32px;
}

.before-after__item {
  border-radius: 8px;
  overflow: hidden;
  position: relative;
}

.before-after__item img {
  width: 100%;
  height: 300px;
  object-fit: cover;
}

.before-after__label {
  position: absolute;
  bottom: 16px;
  left: 16px;
  background: var(--gold);
  color: var(--white);
  padding: 4px 16px;
  border-radius: 4px;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* --- Contact / Contatti --- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  margin-top: 48px;
}

.contact-info h3 {
  font-size: 1.3rem;
  margin-bottom: 24px;
}

.contact-info__item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  margin-bottom: 24px;
}

.contact-info__icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--gold);
  color: var(--white);
}

.contact-info__icon svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.contact-info__text h4 {
  font-size: 0.95rem;
  margin-bottom: 4px;
}

.contact-info__text p,
.contact-info__text a {
  font-size: 0.9rem;
  color: var(--gray);
}

.contact-info__text a:hover {
  color: var(--gold);
}

.contact-hours {
  margin-top: 24px;
  padding: 24px;
  background: var(--cream);
  border-radius: 8px;
}

.contact-hours h4 {
  font-size: 1rem;
  margin-bottom: 12px;
}

.contact-hours p {
  font-size: 0.9rem;
  color: var(--gray);
}

/* --- Form --- */
.form {
  background: var(--white);
  padding: 40px;
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.06);
}

.form h3 {
  font-size: 1.3rem;
  margin-bottom: 24px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
}

.form-group {
  margin-bottom: 16px;
}

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--navy);
  margin-bottom: 6px;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-family: var(--font);
  font-size: 0.95rem;
  color: var(--navy);
  background: var(--cream);
  transition: border-color 0.3s;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--gold);
}

.form-group textarea {
  min-height: 140px;
  resize: vertical;
}

.form .btn {
  width: 100%;
}

.form-privacy {
  font-size: 0.8rem;
  color: #999;
  margin-top: 12px;
}

.form-privacy a {
  color: var(--gold);
  text-decoration: underline;
}

/* --- Footer --- */
.footer {
  background: var(--navy);
  color: rgba(255,255,255,0.7);
  padding: 60px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1.5fr;
  gap: 40px;
}

.footer h4 {
  color: var(--white);
  font-size: 1rem;
  margin-bottom: 20px;
}

.footer__brand p {
  font-size: 0.9rem;
  margin-top: 16px;
  line-height: 1.7;
}

.footer__brand img {
  height: 40px;
  filter: brightness(0) invert(1);
}

.footer__links a {
  display: block;
  padding: 4px 0;
  font-size: 0.9rem;
  transition: color 0.3s;
}

.footer__links a:hover {
  color: var(--gold);
}

.footer__contact p {
  font-size: 0.9rem;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.footer__contact svg {
  width: 14px;
  height: 14px;
  fill: var(--gold);
  flex-shrink: 0;
}

.footer__social {
  display: flex;
  gap: 12px;
  margin-top: 16px;
}

.footer__social a {
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255,255,255,0.15);
  color: var(--white);
  transition: background 0.3s;
}

.footer__social a:hover {
  background: var(--gold);
}

.footer__social svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
  stroke: currentColor;
  stroke-width: 0.5;
}

.footer__bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  margin-top: 40px;
  padding: 20px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
}

.footer__bottom a {
  color: var(--gold);
}

/* --- Utility --- */
.bg-white { background: var(--white); }
.bg-cream { background: var(--cream); }
.bg-cream-alt { background: var(--cream-alt); }
.mt-2 { margin-top: 16px; }
.mt-4 { margin-top: 32px; }
.mt-6 { margin-top: 48px; }
.mb-4 { margin-bottom: 32px; }

/* --- Valuation CTA Banner --- */
.valuation-banner {
  background: var(--gold);
  padding: 40px 0;
  text-align: center;
}

.valuation-banner h3 {
  color: var(--white);
  font-size: 1.5rem;
  margin-bottom: 8px;
}

.valuation-banner p {
  color: rgba(255,255,255,0.9);
  margin-bottom: 24px;
}

/* --- Fade-in Animation --- */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* --- Header Scrolled --- */
.header.scrolled {
  box-shadow: 0 4px 30px rgba(0,0,0,0.1);
}

/* --- Privacy Policy --- */
.privacy-content {
  line-height: 1.8;
}

.privacy-content h2 {
  font-size: 1.3rem;
  margin-top: 40px;
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--cream-alt);
}

.privacy-content h3 {
  font-size: 1.05rem;
  margin-top: 24px;
  margin-bottom: 12px;
}

.privacy-content p {
  margin-bottom: 12px;
  font-size: 0.95rem;
  color: var(--gray);
}

.privacy-content ul {
  margin-bottom: 16px;
  padding-left: 20px;
}

.privacy-content li {
  padding: 4px 0;
  font-size: 0.95rem;
  color: var(--gray);
  position: relative;
  padding-left: 16px;
}

.privacy-content li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 12px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold);
}

.privacy-content a {
  color: var(--gold);
  text-decoration: underline;
}

.privacy-content a:hover {
  color: var(--gold-dark);
}

.privacy-update {
  display: inline-block;
  background: var(--cream);
  padding: 8px 16px;
  border-radius: 4px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--navy);
  margin-bottom: 32px;
}

/* --- Cookie Consent Banner --- */
.cookie-banner {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: var(--navy);
  color: rgba(255,255,255,0.9);
  z-index: 9999;
  padding: 0;
  box-shadow: 0 -4px 30px rgba(0,0,0,0.2);
  transform: translateY(100%);
  transition: transform 0.4s ease;
}

.cookie-banner.show {
  display: block;
  transform: translateY(0);
}

.cookie-banner__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 24px;
  display: flex;
  align-items: center;
  gap: 24px;
}

.cookie-banner__icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  font-size: 1.4rem;
}

.cookie-banner__text {
  flex: 1;
}

.cookie-banner__text p {
  font-size: 0.9rem;
  line-height: 1.6;
  margin: 0;
}

.cookie-banner__text a {
  color: var(--gold);
  text-decoration: underline;
}

.cookie-banner__text a:hover {
  color: #e8b85a;
}

.cookie-banner__actions {
  display: flex;
  gap: 12px;
  flex-shrink: 0;
}

.cookie-banner__btn {
  padding: 10px 24px;
  border-radius: 4px;
  font-family: var(--font);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all 0.3s;
  white-space: nowrap;
}

.cookie-banner__btn--accept {
  background: var(--gold);
  color: var(--white);
  border-color: var(--gold);
}

.cookie-banner__btn--accept:hover {
  background: var(--gold-dark);
  border-color: var(--gold-dark);
}

.cookie-banner__btn--reject {
  background: transparent;
  color: rgba(255,255,255,0.8);
  border-color: rgba(255,255,255,0.3);
}

.cookie-banner__btn--reject:hover {
  border-color: rgba(255,255,255,0.6);
  color: var(--white);
}

.cookie-banner__btn--settings {
  background: transparent;
  color: rgba(255,255,255,0.6);
  border-color: transparent;
  padding: 10px 12px;
  font-size: 0.8rem;
  text-decoration: underline;
}

.cookie-banner__btn--settings:hover {
  color: var(--white);
}

/* Cookie Settings Panel */
.cookie-settings {
  display: none;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid rgba(255,255,255,0.1);
}

.cookie-settings.open {
  display: block;
}

.cookie-settings__item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}

.cookie-settings__item:last-child {
  border-bottom: none;
}

.cookie-settings__label {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.cookie-settings__label strong {
  font-size: 0.9rem;
  color: var(--white);
}

.cookie-settings__label span {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.5);
}

/* Toggle Switch */
.cookie-toggle {
  position: relative;
  width: 44px;
  height: 24px;
  flex-shrink: 0;
}

.cookie-toggle input {
  opacity: 0;
  width: 0;
  height: 0;
}

.cookie-toggle__slider {
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0.2);
  border-radius: 24px;
  cursor: pointer;
  transition: background 0.3s;
}

.cookie-toggle__slider::before {
  content: '';
  position: absolute;
  bottom: 3px;
  left: 3px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--white);
  transition: transform 0.3s;
}

.cookie-toggle input:checked + .cookie-toggle__slider {
  background: var(--gold);
}

.cookie-toggle input:checked + .cookie-toggle__slider::before {
  transform: translateX(20px);
}

.cookie-toggle input:disabled + .cookie-toggle__slider {
  opacity: 0.5;
  cursor: not-allowed;
}

@media (max-width: 768px) {
  .cookie-banner__inner {
    flex-direction: column;
    text-align: center;
    padding: 20px;
    gap: 16px;
  }

  .cookie-banner__icon {
    display: none;
  }

  .cookie-banner__actions {
    flex-direction: column;
    width: 100%;
  }

  .cookie-banner__btn {
    width: 100%;
    text-align: center;
  }
}

/* --- Responsive --- */
@media (max-width: 1024px) {
  .services-grid,
  .properties-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .collab-section {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .collab-section:nth-child(even) {
    direction: ltr;
  }
}

@media (max-width: 768px) {
  :root {
    --header-height: 70px;
  }

  section {
    padding: 60px 0;
  }

  .menu-toggle {
    display: flex;
  }

  .header__nav {
    position: fixed;
    top: var(--header-height);
    left: 0;
    width: 100%;
    background: var(--white);
    flex-direction: column;
    padding: 24px;
    gap: 16px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transform: translateY(-100%);
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s;
  }

  .header__nav.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: all;
  }

  .header__cta {
    display: none;
  }

  .hero {
    min-height: 70vh;
  }

  .hero--small {
    min-height: 40vh;
  }

  .about-intro {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .about-intro__img {
    order: -1;
  }

  .services-grid,
  .promise-grid,
  .competenze-grid,
  .properties-grid {
    grid-template-columns: 1fr;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .gallery-strip {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .footer__bottom {
    flex-direction: column;
    gap: 8px;
    text-align: center;
  }

  .before-after {
    grid-template-columns: 1fr;
  }
}
