/*
Theme Name: France Modern
Theme URI: https://www.france.it/
Author: Agorà S.a.s.
Description: Tema editoriale di France.it per il network Edizioni Virtuali.
Version: 0.1.7
Text Domain: france-modern
*/

:root {
  --ink: #12203a;
  --ink-soft: #4d5b70;
  --blue: #17479e;
  --blue-bright: #235fd1;
  --red: #d9434f;
  --cream: #f5f0e7;
  --paper: #fffdf9;
  --line: rgba(18, 32, 58, .14);
  --white: #fff;
  --radius: 22px;
  --shadow: 0 24px 70px rgba(18, 32, 58, .14);
  --container: min(1180px, calc(100vw - 40px));
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
button, input { font: inherit; }

.sr-only, .skip-link:not(:focus) {
  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:focus {
  position: fixed;
  z-index: 999;
  left: 16px;
  top: 16px;
  padding: 10px 14px;
  border-radius: 8px;
  background: var(--ink);
  color: var(--white);
}

.site-header {
  position: relative;
  z-index: 20;
  background: rgba(255, 253, 249, .94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}
.header-inner {
  width: var(--container);
  min-height: 78px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--ink);
  font: 800 1.45rem/1 ui-sans-serif, system-ui, sans-serif;
  letter-spacing: -.04em;
  text-decoration: none;
}
.brand-mark {
  width: 29px;
  height: 29px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-radius: 50%;
  overflow: hidden;
  transform: rotate(-8deg);
  box-shadow: 0 0 0 1px rgba(18, 32, 58, .12);
}
.brand-mark i:nth-child(1) { background: #143f8f; }
.brand-mark i:nth-child(2) { background: #fff; }
.brand-mark i:nth-child(3) { background: #d9434f; }
.main-nav { display: flex; align-items: center; gap: clamp(18px, 2.3vw, 34px); }
.main-nav a {
  position: relative;
  padding: 28px 0 25px;
  color: #2f3d53;
  font-size: .91rem;
  font-weight: 650;
  text-decoration: none;
}
.main-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: 19px;
  height: 2px;
  background: var(--red);
  transition: right .2s ease;
}
.main-nav a:hover::after, .main-nav a:focus-visible::after { right: 0; }
.menu-toggle { display: none; }
.search-form { display: flex; align-items: center; gap: 7px; }
.search-form label { margin: 0; }
.search-field {
  width: 150px;
  min-height: 40px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink);
  background: var(--white);
}
.search-field:focus { outline: 3px solid rgba(35, 95, 209, .2); border-color: var(--blue); }
.search-submit {
  min-width: 44px;
  min-height: 40px;
  padding: 8px 12px;
  border: 0;
  border-radius: 999px;
  color: var(--white);
  background: var(--blue);
  font-weight: 750;
  cursor: pointer;
}
.search-submit:hover, .search-submit:focus-visible { background: var(--blue-bright); }
.search-page-form { margin: 0 0 34px; padding: 20px; border-radius: 16px; background: var(--cream); }
.search-page-form .search-field { width: min(100%, 420px); }

.hero {
  width: var(--container);
  min-height: 700px;
  margin: 0 auto;
  padding: 78px 0 84px;
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: clamp(50px, 7vw, 100px);
  align-items: center;
}
.eyebrow {
  margin: 0 0 18px;
  color: var(--red);
  font-size: .75rem;
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.hero h1, .section h2, .closing-cta h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 500;
  letter-spacing: -.055em;
  line-height: .98;
}
.hero h1 { font-size: clamp(3.4rem, 6.2vw, 6.5rem); }
.hero h1 em { color: var(--blue); font-weight: 400; }
.hero-lead {
  max-width: 580px;
  margin: 28px 0 34px;
  color: var(--ink-soft);
  font-size: clamp(1.05rem, 1.5vw, 1.25rem);
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 12px 20px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: .92rem;
  font-weight: 750;
  text-decoration: none;
  cursor: pointer;
  transition: transform .2s ease, background .2s ease, color .2s ease;
}
.button:hover { transform: translateY(-2px); }
.button-primary { background: var(--blue); color: var(--white); }
.button-primary:hover { background: var(--blue-bright); }
.button-ghost { border-color: var(--line); color: var(--ink); background: transparent; }
.button-ghost:hover { background: var(--cream); }
.button-dark { background: var(--ink); color: var(--white); }
.button-light { background: var(--white); color: var(--ink); }
.button-ghost-dark { border-color: rgba(255,255,255,.45); background: transparent; color: var(--white); }

.hero-collage {
  position: relative;
  min-height: 530px;
}
.hero-photo { margin: 0; overflow: hidden; box-shadow: var(--shadow); }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; }
.hero-photo-main {
  position: absolute;
  inset: 0 50px 55px 0;
  border-radius: 160px 22px 22px 22px;
}
.hero-photo-small {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 42%;
  height: 42%;
  border: 8px solid var(--paper);
  border-radius: 20px 20px 80px 20px;
}
.hero-note {
  position: absolute;
  right: 0;
  top: 42px;
  transform: translateX(28%) rotate(5deg);
  padding: 13px 18px;
  background: var(--red);
  color: var(--white);
  border-radius: 4px;
  font: 700 .75rem/1.35 ui-sans-serif, system-ui, sans-serif;
  letter-spacing: .06em;
  text-transform: uppercase;
  box-shadow: 0 15px 30px rgba(217, 67, 79, .25);
}

.intro-strip {
  padding: 32px max(20px, calc((100vw - 1180px) / 2));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 50px;
  background: var(--ink);
  color: var(--white);
}
.intro-strip > p { margin: 0; font: 500 1.35rem/1.2 Georgia, serif; }
.intro-strip ul { margin: 0; padding: 0; display: flex; gap: clamp(22px, 4vw, 64px); list-style: none; }
.intro-strip li { color: rgba(255,255,255,.72); font-size: .83rem; font-weight: 650; white-space: nowrap; }
.intro-strip li span { margin-right: 8px; color: var(--red); }

.section { width: var(--container); margin: 0 auto; padding: 110px 0; }
.section-heading { margin-bottom: 42px; display: grid; grid-template-columns: 1fr .72fr; gap: 50px; align-items: end; }
.section-heading h2, .practical h2, .story-copy h2 { font-size: clamp(2.6rem, 4.7vw, 4.7rem); }
.section-heading > p { max-width: 520px; margin: 0 0 5px; color: var(--ink-soft); }
.section-heading.compact { grid-template-columns: 1fr; }

.destination-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.destination-card {
  position: relative;
  min-height: 360px;
  overflow: hidden;
  border-radius: var(--radius);
  color: var(--white);
  text-decoration: none;
  isolation: isolate;
}
.destination-card.card-wide { grid-column: span 2; }
.destination-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.destination-card:hover img { transform: scale(1.045); }
.card-overlay { position: absolute; inset: 0; background: linear-gradient(180deg, transparent 30%, rgba(7, 17, 35, .84)); }
.card-content { position: absolute; z-index: 2; left: 28px; right: 28px; bottom: 25px; display: grid; }
.card-content small { margin-bottom: 4px; color: rgba(255,255,255,.75); font-size: .7rem; font-weight: 750; letter-spacing: .12em; text-transform: uppercase; }
.card-content strong { font: 500 2.05rem/1.1 Georgia, serif; }
.card-content em { margin-top: 6px; color: rgba(255,255,255,.82); font-size: .86rem; font-style: normal; }
.photo-credit { margin-top: 8px; color: rgba(255,255,255,.62); font-size: .62rem; }

.practical { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(50px, 9vw, 130px); }
.practical-intro > p:not(.eyebrow) { max-width: 500px; color: var(--ink-soft); }
.text-link { display: inline-flex; gap: 10px; margin-top: 18px; color: var(--blue); font-weight: 800; text-decoration: none; }
.text-link span { transition: transform .2s ease; }
.text-link:hover span { transform: translateX(4px); }
.practical-list { border-top: 1px solid var(--line); }
.practical-list a {
  display: grid;
  grid-template-columns: 42px 1fr auto;
  gap: 15px;
  align-items: center;
  padding: 26px 4px;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
  transition: padding .2s ease, color .2s ease;
}
.practical-list a:hover { padding-left: 12px; color: var(--blue); }
.practical-list span { color: var(--red); font-size: .75rem; font-weight: 800; }
.practical-list strong { font-size: 1.02rem; }
.practical-list em { color: var(--ink-soft); font-size: .85rem; font-style: normal; }

.story-section {
  width: 100%;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: var(--cream);
}
.story-visual { position: relative; min-height: 630px; overflow: hidden; }
.story-visual img { width: 100%; height: 100%; object-fit: cover; }
.story-visual span {
  position: absolute;
  left: 30px;
  bottom: 30px;
  padding: 8px 13px;
  border-radius: 999px;
  background: rgba(255,255,255,.88);
  color: var(--ink);
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.story-copy { padding: clamp(65px, 8vw, 125px); align-self: center; }
.story-copy p:not(.eyebrow) { max-width: 560px; color: var(--ink-soft); }
.story-copy .button { margin-top: 18px; }

.topic-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.topic-grid a {
  min-height: 220px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--white);
  text-decoration: none;
  transition: transform .2s ease, border .2s ease, box-shadow .2s ease;
}
.topic-grid a:hover { transform: translateY(-5px); border-color: rgba(23,71,158,.38); box-shadow: 0 20px 45px rgba(18,32,58,.1); }
.topic-grid span { margin-bottom: auto; color: var(--red); font-size: 1.6rem; }
.topic-grid strong { font: 500 1.35rem/1.2 Georgia, serif; }
.topic-grid small { margin-top: 7px; color: var(--ink-soft); }

.closing-cta { padding: 110px 20px; text-align: center; background: var(--blue); color: var(--white); }
.closing-cta .eyebrow { color: #ff9ba4; }
.closing-cta h2 { margin-bottom: 28px; font-size: clamp(3rem, 6vw, 6rem); }

.site-footer { padding: 65px max(20px, calc((100vw - 1180px) / 2)) 28px; background: #0a162b; color: var(--white); }
.footer-top { padding-bottom: 55px; display: flex; align-items: flex-end; justify-content: space-between; gap: 40px; border-bottom: 1px solid rgba(255,255,255,.14); }
.brand-light { color: var(--white); }
.footer-top p { max-width: 420px; margin: 0; color: rgba(255,255,255,.62); text-align: right; }
.footer-bottom { padding-top: 24px; display: flex; justify-content: space-between; gap: 25px; color: rgba(255,255,255,.55); font-size: .82rem; }
.footer-bottom p { margin: 0; }
.footer-bottom nav { display: flex; gap: 22px; }
.footer-bottom a, .link-button { color: inherit; background: none; border: 0; padding: 0; text-decoration: none; cursor: pointer; }
.footer-bottom a:hover, .link-button:hover { color: var(--white); }

.consent {
  position: fixed;
  z-index: 100;
  left: 22px;
  right: 22px;
  bottom: 22px;
  max-width: 1040px;
  margin: 0 auto;
  padding: 24px 26px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 30px;
  align-items: center;
  border-radius: 18px;
  background: #0a162b;
  color: var(--white);
  box-shadow: 0 20px 80px rgba(0,0,0,.28);
}
.consent[hidden] { display: none; }
.consent .eyebrow { margin-bottom: 4px; color: #ff9ba4; }
.consent h2 { margin: 0 0 5px; font: 500 1.5rem/1.2 Georgia, serif; }
.consent p:not(.eyebrow) { max-width: 690px; margin: 0; color: rgba(255,255,255,.7); font-size: .85rem; }
.consent-actions { display: flex; gap: 9px; }

@media (max-width: 980px) {
  .menu-toggle {
    width: 44px;
    height: 44px;
    padding: 11px;
    display: grid;
    align-content: center;
    gap: 5px;
    border: 1px solid var(--line);
    border-radius: 50%;
    background: var(--white);
  }
  .menu-toggle > span:not(.sr-only) { display: block; height: 2px; background: var(--ink); }
  .main-nav {
    position: absolute;
    top: 78px;
    left: 0;
    right: 0;
    padding: 20px;
    display: none;
    align-items: stretch;
    flex-direction: column;
    gap: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 20px 40px rgba(18,32,58,.12);
  }
  .main-nav.is-open { display: flex; }
  .main-nav a { padding: 12px 4px; }
  .main-nav a::after { display: none; }
  .main-nav .search-form { margin-top: 12px; padding-top: 18px; border-top: 1px solid var(--line); }
  .main-nav .search-form label { flex: 1; }
  .main-nav .search-field { width: 100%; }
  .hero { grid-template-columns: 1fr; padding-top: 55px; }
  .hero-copy { max-width: 720px; }
  .hero-collage { min-height: 520px; }
  .hero-note { right: 20px; transform: rotate(4deg); }
  .section-heading { grid-template-columns: 1fr; gap: 22px; }
  .destination-grid { grid-template-columns: repeat(2, 1fr); }
  .destination-card.card-wide { grid-column: span 1; }
  .practical { grid-template-columns: 1fr; }
  .topic-grid { grid-template-columns: repeat(2, 1fr); }
  .consent { grid-template-columns: 1fr; }
}

@media (max-width: 680px) {
  :root { --container: min(100% - 28px, 1180px); }
  .header-inner { min-height: 68px; }
  .main-nav { top: 68px; }
  .hero { min-height: 0; padding: 52px 0 65px; gap: 44px; }
  .hero h1 { font-size: clamp(3.1rem, 15vw, 4.5rem); }
  .hero-lead { margin-top: 22px; }
  .hero-actions { align-items: stretch; flex-direction: column; }
  .hero-collage { min-height: 390px; }
  .hero-photo-main { inset: 0 24px 45px 0; border-radius: 90px 18px 18px 18px; }
  .hero-photo-small { width: 46%; height: 43%; border-width: 6px; border-radius: 15px 15px 50px 15px; }
  .hero-note { top: 20px; right: 4px; font-size: .63rem; }
  .intro-strip { align-items: flex-start; flex-direction: column; gap: 20px; }
  .intro-strip ul { width: 100%; display: grid; gap: 8px; }
  .section { padding: 78px 0; }
  .destination-grid, .topic-grid { grid-template-columns: 1fr; }
  .destination-card { min-height: 310px; }
  .practical-list a { grid-template-columns: 34px 1fr; }
  .practical-list em { grid-column: 2; }
  .story-section { grid-template-columns: 1fr; }
  .story-visual { min-height: 390px; }
  .story-copy { padding: 70px 20px; }
  .closing-cta { padding: 85px 20px; }
  .footer-top, .footer-bottom { align-items: flex-start; flex-direction: column; }
  .footer-top p { text-align: left; }
  .footer-bottom nav { flex-wrap: wrap; }
  .consent { left: 10px; right: 10px; bottom: 10px; padding: 20px; }
  .consent-actions { align-items: stretch; flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}

/* Pagine interne WordPress. */
.content-shell {
  width: min(850px, calc(100vw - 40px));
  margin: 0 auto;
  padding: 72px 0 110px;
}
.content-shell__header { margin-bottom: 38px; }
.page-breadcrumb { margin: 0 0 24px; color: var(--ink-soft); font-size: .84rem; }
.page-breadcrumb ol { display: flex; flex-wrap: wrap; gap: 7px; margin: 0; padding: 0; list-style: none; }
.page-breadcrumb li { display: flex; align-items: center; gap: 7px; }
.page-breadcrumb li + li::before { content: "\203A"; color: var(--red); }
.page-breadcrumb a { color: var(--blue); font-weight: 700; text-decoration: none; }
.page-breadcrumb a:hover,
.page-breadcrumb a:focus-visible { text-decoration: underline; }
.page-breadcrumb [aria-current="page"] { color: var(--ink-soft); }
.content-shell h1 {
  margin: 0;
  font: 500 clamp(2.7rem, 6vw, 5.4rem)/1 Georgia, "Times New Roman", serif;
  letter-spacing: -.05em;
}
.content-shell__body { color: #27364d; font-size: 1.03rem; }
.content-shell__body h2,
.content-shell__body h3 {
  margin: 2.2em 0 .65em;
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 500;
  line-height: 1.15;
}
.content-shell__body h2 { font-size: clamp(2rem, 4vw, 3rem); }
.content-shell__body h3 { font-size: 1.55rem; }
.content-shell__body a { color: var(--blue); font-weight: 700; }
.content-shell__body img { height: auto; border-radius: 18px; }
.content-updated {
  margin: 0 0 28px;
  padding-bottom: 15px;
  border-bottom: 1px solid var(--line);
  color: var(--ink-soft);
  font-size: .86rem;
}
.content-shell__body figure { margin: 30px 0 38px; }
.content-shell__body figure img { display: block; width: 100%; }
.content-shell__body figcaption { margin-top: 9px; color: var(--ink-soft); font-size: .78rem; line-height: 1.45; }
.home-guide__callout { margin: 28px 0; padding: 20px 22px; border-left: 4px solid var(--blue); background: var(--cream); }
.home-guide__sources { margin-top: 48px; padding-top: 22px; border-top: 1px solid var(--line); color: var(--ink-soft); font-size: .86rem; }
.content-shell .topic-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 28px 0; }
.content-shell__body table { width: 100%; border-collapse: collapse; }
.content-shell__body th,
.content-shell__body td { padding: 12px; border: 1px solid var(--line); text-align: left; }
.notice-card {
  margin: 28px 0;
  padding: 22px 24px;
  border-left: 4px solid var(--red);
  border-radius: 0 14px 14px 0;
  background: var(--cream);
}
@media (max-width: 680px) {
  .content-shell { width: min(100% - 28px, 850px); padding: 52px 0 78px; }
  .content-shell__body table { display: block; overflow-x: auto; }
  .content-shell .topic-grid { grid-template-columns: 1fr; }
}
