/*
Theme Name: Foto Cine Gori 2025
Theme URI: https://www.cmsstudio.it
Author: CMS Studio team
Author URI: https://www.cmsstudio.it/
Description: Tema WordPress per il sito Foto Cine Gori (versione 2025).
Version: 5.0
Requires at least: 6.5
Tested up to: 6.6
Requires PHP: 8.0
Tags: business, photography, bootstrap, responsive
Text Domain: fcg2025
*/

/* ===== INTER VARIABLE ===== */
@font-face {
  font-family: "Inter";
  src: url("assets/fonts/inter/Inter-VariableFont_opsz,wght.woff2")
    format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Inter";
  src: url("assets/fonts/inter/Inter-Italic-VariableFont_opsz,wght.woff2")
    format("woff2");
  font-weight: 100 900;
  font-style: italic;
  font-display: swap;
}

/* ===== DM SERIF ===== */
@font-face {
  font-family: "DM Serif Display";
  src: url("assets/fonts/dmserif/DMSerifDisplay-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "DM Serif Display";
  src: url("assets/fonts/dmserif/DMSerifDisplay-Italic.woff2") format("woff2");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

/* ===============================
   TUSCANY LUXURY — 4 COLORI REALI
   Bootstrap 5 first
================================== */
:root {
  /* ===== 4 COLORI REALI ===== */
  --color-1: #f7f3ed; /* crema editoriale — background */
  --color-2: #e6ded3; /* warm light section */
  --color-3: #403a3b; /* taupe dark luxury (footer, titoli) */
  --color-4: #bfa37a; /* champagne gold premium */
  /* ===== TESTO SOFT (derivato) ===== */
  --color-5: rgba(20, 20, 20, 0.58);

  /* ===== RGB ===== */
  --color-1-rgb: 247, 243, 237;
  --color-2-rgb: 230, 222, 211;
  --color-3-rgb: 20, 20, 20;
  --color-4-rgb: 194, 165, 116;

  --def-transition-duration: 0.3s;

  /* ===== FONT ===== */
  --font-titolo: "DM Serif Display", serif;
  --font-paragrafo: "Inter", sans-serif;
  --font-subheading: "Inter", sans-serif;

  /* ===== BOOTSTRAP MAPPING ===== */
  --bs-body-bg: var(--color-1);
  --bs-body-color: var(--color-3);
  --bs-dark: var(--color-3);

  --bs-link-color: var(--color-5);
  --bs-link-hover-color: var(--color-4);

  --bs-border-width: 0;
  --bs-border-radius: 0;

  /* ===== “LUXURY TOKENS” (derivati, NON nuovi colori reali) ===== */
  --lux-border: rgba(var(--color-3-rgb), 0.1);
  --lux-border-2: rgba(var(--color-3-rgb), 0.14);
  --lux-shadow: 0 22px 60px rgba(var(--color-3-rgb), 0.1);
  --lux-shadow-soft: 0 14px 40px rgba(var(--color-3-rgb), 0.06);
  --lux-glass: rgba(var(--color-1-rgb), 0.92);
  --lux-glass-2: rgba(var(--color-1-rgb), 0.97);

  --lux-accent-soft: rgba(var(--color-4-rgb), 0.14);
  --lux-accent-soft-2: rgba(var(--color-4-rgb), 0.1);
  --lux-accent-hover: rgba(var(--color-4-rgb), 0.2);

  --lux-radius: 14px;
  --lux-radius-lg: 18px;
}

/* ===============================
   Accessibility / Motion
================================== */
html:focus-within {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html:focus-within {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

html {
  scroll-behavior: smooth;
}

/* ===============================
   Base Typography
================================== */
body {
  background-color: var(--color-1);
  color: var(--color-3);
  font-display: fallback;
  font-family: var(--font-paragrafo);
  font-optical-sizing: auto;
  font-style: normal;
  font-weight: 400;
  min-height: 100vh;
  width: 100vw;
  text-rendering: optimizeSpeed;
  overflow-x: hidden;
}

em {
  font-style: italic;
}
strong {
  font-weight: 600;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-titolo);
  line-height: 1.35em;
  color: var(--color-3);
  padding-bottom: 10px;
  letter-spacing: 0.01em;
}

p {
  color: var(--color-3);
}
small,
.small {
  color: var(--color-5);
}

ul {
  list-style-type: disc;
}
a:not([class]) {
  text-decoration-skip-ink: auto;
}

a,
a:visited {
  color: var(--color-5);
  text-decoration: none;
  transition:
    color 0.18s ease,
    opacity 0.18s ease;
}

a:hover {
  color: var(--color-4);
  text-decoration: none;
}

.color-6 {
  color: var(--color-5);
} /* compatibilità col tuo helper */

/* Titoli sezioni */
.storie__title {
  font-family: var(--font-titolo);
  font-size: 1.4rem;
  line-height: 1em;
  font-weight: 400;
}

.storie__text-area {
  display: block;
  text-align: center;
  margin: 1.25rem 0 1.75rem;
}

.title::after {
  content: "";
  width: 60px;
  height: 3px;
  margin: 10px auto;
  display: block;
  background: var(--color-4);
}

.sottotitolo {
  font-family: var(--font-subheading);
  font-size: 0.95rem;
  letter-spacing: 0.12em;
  color: var(--color-5);
  font-weight: 500;
  text-transform: uppercase;
}

.page-numbers {
  font-family: var(--font-subheading);
  font-size: 1.2rem;
  letter-spacing: 0.2rem;
  word-spacing: 0.2rem;
  line-height: 1em;
  font-weight: 400;
}

/* Blockquote */
.blockquote {
  position: relative;
  font-size: 1.15rem;
  padding: 1rem 2rem;
  font-style: italic;
  color: rgba(var(--color-3-rgb), 0.88);
  border-left: 3px solid rgba(var(--color-4-rgb), 0.55);
  background: rgba(var(--color-1-rgb), 0.55);
}

.fst-italic {
  font-style: italic !important;
}

/* Sezione alternata */
.gray {
  background-color: var(--color-2);
}

/* ===============================
   Bootstrap 5 — Luxury System
   (senza nuove classi)
================================== */

/* container rhythm */
.container,
.container-fluid {
  --bs-gutter-x: 1.5rem;
}
@media (min-width: 992px) {
  .container,
  .container-fluid {
    --bs-gutter-x: 2rem;
  }
}

/* HR / divider */
hr,
.dropdown-divider {
  border: 0;
  height: 1px;
  background: var(--lux-border);
  opacity: 1;
}

/* Cards */
.card {
  border: 0;
  border-radius: var(--lux-radius-lg);
  box-shadow: var(--lux-shadow-soft);
  background: rgba(var(--color-1-rgb), 0.85);
  backdrop-filter: blur(10px);
}

.card .card-title {
  color: var(--color-3);
}
.card .card-text {
  color: rgba(var(--color-3-rgb), 0.9);
}

/* Badges */
.badge {
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: 999px;
  padding: 0.55em 0.9em;
}

.badge.text-bg-dark {
  background: var(--color-3) !important;
  color: #fff !important;
}

.badge.text-bg-light {
  background: rgba(var(--color-2-rgb), 0.85) !important;
  color: var(--color-3) !important;
}

/* “accent badge” via utilities (usa text-bg-warning o simili) */
.badge.text-bg-warning,
.badge.bg-warning {
  background: rgba(var(--color-4-rgb), 0.18) !important;
  color: var(--color-3) !important;
}

/* Buttons — Luxury Wedding */
.btn {
  border-radius: 999px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 600;
  padding: 0.95rem 1.35rem;
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease,
    background 0.18s ease,
    color 0.18s ease;
}

.btn:focus,
.btn:active:focus {
  box-shadow: none !important;
}

.btn:hover {
  transform: translateY(-1px);
}

/* Primary = Champagne */
.btn-primary,
.btn-primary:visited {
  background: var(--color-4);
  border-color: var(--color-4);
  color: var(--color-3);
  box-shadow: 0 16px 40px rgba(var(--color-4-rgb), 0.18);
}

.btn-primary:hover,
.btn-primary:focus {
  background: rgba(var(--color-4-rgb), 0.88);
  border-color: rgba(var(--color-4-rgb), 0.88);
  color: var(--color-3);
  box-shadow: 0 18px 50px rgba(var(--color-4-rgb), 0.22);
}

/* Outline Primary */
.btn-outline-primary {
  border-color: rgba(var(--color-4-rgb), 0.7);
  color: var(--color-3);
  background: transparent;
}

.btn-outline-primary:hover,
.btn-outline-primary:focus {
  background: rgba(var(--color-4-rgb), 0.16);
  border-color: rgba(var(--color-4-rgb), 0.8);
  color: var(--color-3);
}

/* Secondary (soft) */
.btn-secondary {
  background: rgba(var(--color-2-rgb), 0.9);
  border-color: rgba(var(--color-3-rgb), 0.1);
  color: var(--color-3);
}

.btn-secondary:hover,
.btn-secondary:focus {
  background: rgba(var(--color-2-rgb), 0.98);
  border-color: rgba(var(--color-3-rgb), 0.12);
  color: var(--color-3);
  box-shadow: var(--lux-shadow-soft);
}

/* Dark button */
.btn-dark {
  background: var(--color-3);
  border-color: var(--color-3);
  color: #fff;
  box-shadow: 0 16px 45px rgba(var(--color-3-rgb), 0.18);
}

.btn-dark:hover,
.btn-dark:focus {
  background: rgba(var(--color-3-rgb), 0.92);
  border-color: rgba(var(--color-3-rgb), 0.92);
  color: #fff;
  box-shadow: 0 18px 55px rgba(var(--color-3-rgb), 0.22);
}

/* Links as buttons */
.btn-link {
  color: var(--color-4);
  text-decoration: none;
}
.btn-link:hover {
  color: rgba(var(--color-4-rgb), 0.86);
}

/* Forms */
.form-control,
.form-select {
  border: 1px solid var(--lux-border);
  border-radius: 999px;
  background: rgba(var(--color-1-rgb), 0.8);
  color: var(--color-3);
  padding: 0.85rem 1.1rem;
  box-shadow: none;
}

.form-control::placeholder {
  color: rgba(var(--color-3-rgb), 0.45);
}

.form-control:focus,
.form-select:focus {
  border-color: rgba(var(--color-4-rgb), 0.55);
  box-shadow: 0 0 0 0.2rem rgba(var(--color-4-rgb), 0.18);
}

/* Accordion */
.accordion-item {
  border: 0;
  border-radius: var(--lux-radius-lg);
  overflow: hidden;
  background: rgba(var(--color-1-rgb), 0.85);
  box-shadow: var(--lux-shadow-soft);
}

.accordion-button {
  background: transparent;
  color: var(--color-3);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.accordion-button:not(.collapsed) {
  background: rgba(var(--color-4-rgb), 0.12);
  color: var(--color-3);
  box-shadow: none;
}

.accordion-button:focus {
  box-shadow: none;
}

/* Modal */
.modal-content {
  border: 0;
  border-radius: var(--lux-radius-lg);
  box-shadow: var(--lux-shadow);
  background: rgba(var(--color-1-rgb), 0.92);
  backdrop-filter: blur(12px);
}

.modal-header,
.modal-footer {
  border: 0;
}

/* Navbar toggler (mobile) */
.navbar-toggler {
  border: 0;
  box-shadow: none !important;
}
.navbar-toggler:focus {
  box-shadow: none !important;
}

/* ===============================
   NAV — STUDIO LUXURY (Bootstrap 5)
   (stesse tue classi/ID)
================================== */

/* barra vetro (warm luxury) */
#navmenufix {
  background: var(--lux-glass);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(var(--color-3-rgb), 0.06);
  transition:
    background 0.35s ease,
    box-shadow 0.35s ease,
    border-color 0.35s ease;
}

/* stato scroll (classe .nav-shrink) */
#navmenufix.nav-shrink {
  background: var(--lux-glass-2);
  box-shadow: var(--lux-shadow-soft);
  border-bottom-color: rgba(var(--color-3-rgb), 0.05);
}

/* navbar height */
#navmenufix .navbar {
  min-height: 110px;
  padding: 0;
  transition:
    min-height 0.35s ease,
    padding 0.35s ease;
}

/* shrink height */
#navmenufix.nav-shrink .navbar {
  min-height: 85px;
}

/* grid */
#navmenufix .header-grid {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  width: 100%;
}

#navmenufix .header-left,
#navmenufix .header-center,
#navmenufix .header-right {
  display: flex;
  align-items: center;
}

/* menu */
#navmenufix .navbar-nav {
  align-items: center;
}

#navmenufix .navbar-nav .nav-link {
  padding: 0.25rem 0;
  margin: 0 1.25rem;

  font-weight: 600;
  font-size: 0.92rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;

  color: rgba(var(--color-3-rgb), 0.62);
  opacity: 0.8;

  transition:
    color 0.25s ease,
    opacity 0.25s ease;
}

/* hover */
#navmenufix .navbar-nav .nav-link:hover,
#navmenufix .navbar-nav .nav-link:focus {
  color: var(--color-4);
  opacity: 1;
}

/* active */
#navmenufix .navbar-nav .current-menu-item > .nav-link,
#navmenufix .navbar-nav .current_page_item > .nav-link,
#navmenufix .navbar-nav .current-menu-parent > .nav-link,
#navmenufix .navbar-nav .current-menu-ancestor > .nav-link {
  color: var(--color-3);
  opacity: 1;
  font-weight: 700;
}

/* dropdown arrow */
#navmenufix .dropdown-toggle::after {
  border: 0;
  content: "▾";
  display: inline-block;
  margin-left: 0.45rem;

  font-size: 1rem;
  line-height: 1;

  transform: scale(1.6) translateY(2px);
  opacity: 0.45;
  transition:
    opacity 0.25s ease,
    transform 0.25s ease;
}
#navmenufix .dropdown:hover .dropdown-toggle::after {
  opacity: 0.9;
}

/* dropdown menu box */
#navmenufix .dropdown-menu {
  border: 1px solid rgba(var(--color-3-rgb), 0.06);
  border-radius: var(--lux-radius);
  padding: 0.65rem 0;
  box-shadow: var(--lux-shadow);
  background: rgba(var(--color-1-rgb), 0.97);
  backdrop-filter: blur(12px);
}

/* dropdown items */
#navmenufix .dropdown-item {
  font-size: 0.84rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;

  padding: 0.6rem 1.6rem;
  color: var(--color-3);

  opacity: 0.78;
  background: transparent;

  transition:
    background 0.2s ease,
    opacity 0.2s ease,
    padding-left 0.2s ease,
    color 0.2s ease;
}

/* hover luxury */
#navmenufix .dropdown-item:hover,
#navmenufix .dropdown-item:focus {
  background: var(--lux-accent-soft-2);
  opacity: 1;
  color: var(--color-3);
  padding-left: 1.9rem;
}

/* active */
#navmenufix .dropdown-item.active {
  background: var(--lux-accent-soft);
  opacity: 1;
}

/* desktop: open on hover */
@media (min-width: 992px) {
  #navmenufix .dropdown:hover > .dropdown-menu {
    display: block;
    margin-top: 0;
  }

  #navmenufix.nav-shrink .navbar-nav .nav-link {
    margin: 0 1.05rem;
  }
}

/* logo */
#navmenufix .brand-logo {
  transition:
    transform 0.35s ease,
    max-height 0.35s ease;
}
#navmenufix.nav-shrink .brand-logo {
  max-height: 55px;
  transform: scale(0.92);
}

/* focus pulito */
#navmenufix .navbar-nav .nav-link:focus {
  outline: none;
  box-shadow: none;
}

/* WPML switch */
.wpml-custom-switch {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  line-height: 1;
}

.wpml-custom-switch .wpml-lang {
  text-decoration: none;
  color: rgba(var(--color-3-rgb), 0.88);
  opacity: 0.55;
  transition:
    opacity 0.22s ease,
    color 0.22s ease;
}
.wpml-custom-switch .wpml-lang:hover {
  opacity: 1;
  color: var(--color-4);
}
.wpml-custom-switch .wpml-lang.is-active {
  opacity: 1;
  font-weight: 800;
  color: var(--color-3);
}

.wpml-custom-switch .wpml-sep {
  opacity: 0.35;
  padding: 0 0.35rem;
  line-height: 1;
}

/* =====================================================
   Area Riservata
===================================================== */
.post-categories-inline a {
  text-decoration: none;
  font-size: 0.8rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  opacity: 0.75;
  transition: 0.25s;
}
.post-categories-inline a:hover {
  opacity: 1;
  color: var(--color-4);
}

/* ===============================
   HERO / OVERLAY (Bootstrap friendly)
   (nessuna nuova classe: target su elementi comuni)
================================== */
img {
  max-width: 100%;
  height: auto;
}

figure {
  margin: 0;
}

/* Se usi .ratio con video/iframe */
.ratio,
.ratio > * {
  border-radius: var(--lux-radius-lg);
  overflow: hidden;
}

/* ===============================
   FOOTER LUXURY CLEAN (variabili only)
================================== */

footer.footer-dark {
  background: var(--color-3) !important;
  color: rgba(255, 255, 255, 0.9) !important;
}

/* Titoli / label (niente grigi invisibili) */
footer.footer-dark .footer-title,
footer.footer-dark .footer-kicker,
footer.footer-dark .footer-sub {
  color: rgba(255, 255, 255, 0.92) !important;
  opacity: 1 !important;
}

/* Testi */
footer.footer-dark p,
footer.footer-dark .footer-text,
footer.footer-dark .footer-hours,
footer.footer-dark .small {
  color: rgba(255, 255, 255, 0.78) !important;
  opacity: 1 !important;
}

/* Override Bootstrap opacities SOLO nel footer */
footer.footer-dark .opacity-50 {
  opacity: 1 !important;
}
footer.footer-dark .opacity-75 {
  opacity: 1 !important;
}

/* Link */
footer.footer-dark a,
footer.footer-dark a.footer-link,
footer.footer-dark a.footer-social,
footer.footer-dark a:visited {
  color: rgba(255, 255, 255, 0.82) !important;
  opacity: 1 !important;
  text-decoration: none !important;
}
footer.footer-dark a:hover {
  color: var(--color-4) !important;
}

/* Divider */
footer.footer-dark .footer-divider {
  background: rgba(255, 255, 255, 0.12) !important;
  border: 0 !important;
  height: 1px !important;
}

/* Bottom bar */
footer.footer-dark .footer-bottom {
  background: rgba(var(--color-3-rgb), 0.55) !important;
  border-top: 1px solid rgba(255, 255, 255, 0.08) !important;
  color: rgba(255, 255, 255, 0.78) !important;
}
footer.footer-dark .footer-bottom .opacity-75 {
  opacity: 1 !important;
  color: rgba(255, 255, 255, 0.78) !important;
}
/* ===============================
   MOBILE layout servizi footer
=================================*/
@media (max-width: 768px) {
  footer.footer-dark .col-lg-3,
  footer.footer-dark .col-lg-6 {
    text-align: center !important;
  }
}

/* ===============================
   SCROLL TO TOP — LUXURY BUTTON
=================================*/
.scrolltop-lux {
  position: fixed;
  bottom: 34px;
  right: 34px;
  z-index: 99999;

  width: 46px;
  height: 46px;
  border-radius: 50%;

  display: flex;
  align-items: center;
  justify-content: center;

  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(10px);

  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);

  color: #1d252c;
  cursor: pointer;

  opacity: 0;
  pointer-events: none;
  transform: translateY(20px);

  transition: all 0.4s ease;
}

/* quando appare */
.scrolltop-lux.show {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

/* hover */
.scrolltop-lux:hover {
  transform: translateY(0) scale(1.08);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.2);
}

.scrolltop-lux i {
  font-size: 15px;
}
.scrolltop-icon {
  display: inline-block;
  vertical-align: middle;
}
