/* Tomatis Verona - Roma — thème sobre, clair, lisible (réseau Tomatis) */
:root {
  --bg: #ffffff;
  --paper: #f5f7fa;
  --ink: #232a32;
  --muted: #5c6670;
  --blue: #1f5fa8;          /* bleu Tomatis (proche du #3366ff d'origine, assagi) */
  --blue-dark: #16487f;
  --logo: #004062;        /* bleu exact du logo METODO TOMATIS */
  --line: #e2e8f0;
  --max: 1080px;
  --measure: 100ch;
  --radius: 10px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 1.08rem; line-height: 1.72;
}
.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 1.5rem; }
img { max-width: 100%; height: auto; }

/* Header */
.site-header { background: var(--bg); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 30; }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; padding: .7rem 1.5rem; flex-wrap: wrap; }
.brand-logo { height: 52px; width: auto; display: block; }
.nav-toggle, .nav-burger { display: none; }
.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .1rem 1.1rem; align-items: center; }
.site-nav li { position: relative; }
.site-nav a { text-decoration: none; color: var(--ink); font-size: .95rem; font-weight: 500; padding: .4rem 0; display: inline-block; border-bottom: 2px solid transparent; }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--blue); border-bottom-color: var(--blue); }
/* entrée "Precisazioni" mise en valeur sobrement (sans crier en majuscules) */
.site-nav a.nav-important { color: var(--blue-dark); font-weight: 600; }
.site-nav a.nav-important::before { content: "★ "; color: var(--blue); font-size: .85em; }
/* Sous-menu déroulant */
.site-nav .submenu {
  display: none; position: absolute; left: 0; top: 100%;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: 0 10px 30px rgba(0,0,0,.1); padding: .4rem 0; min-width: 260px; z-index: 40;
}
.site-nav li.has-children:hover .submenu { display: block; }
.site-nav .submenu li { display: block; }
.site-nav .submenu a { display: block; padding: .45rem 1rem; border: none; font-weight: 400; white-space: normal; }
.site-nav .submenu a:hover { background: var(--paper); color: var(--blue); }

/* Libellé parent (déroulant) + ouverture clavier/tap */
.site-nav .nav-parent { cursor: default; color: var(--ink); font-size: .95rem; font-weight: 500; padding: .4rem 0; display: inline-block; border-bottom: 2px solid transparent; user-select: none; }
.site-nav li.has-children:hover .nav-parent, .site-nav li.has-children:focus-within .nav-parent { color: var(--blue); border-bottom-color: var(--blue); }
.site-nav .nav-parent .caret { font-size: .7em; margin-left: .25em; vertical-align: middle; }
.site-nav li.has-children:focus-within .submenu { display: block; }


/* Contenu */
.site-main { padding: 2.4rem 0 3.5rem; }
.article-heading {
  font-family: "Spectral", Georgia, serif; font-weight: 600;
  font-size: clamp(1.7rem, 4vw, 2.4rem); line-height: 1.15;
  color: var(--logo); font-weight: 700; margin: 0 0 1.4rem; padding-bottom: .5rem;
  border-bottom: 2px solid var(--line);
}
.content--home, .article-body { max-width: 100%; }
.content--home { margin: 0 auto; }
.article-body { }
.content h2, .article-body h2 { font-family: "Spectral", serif; color: var(--logo); font-size: 1.55rem; font-weight: 600; margin: 2rem 0 .7rem; }
.content h3, .article-body h3 { font-family: "Spectral", serif; color: var(--ink); font-size: 1.25rem; margin: 1.6rem 0 .5rem; }
.content p, .article-body p { margin: 0 0 1.05rem; }
/* Liens du contenu : couleur unique (y compris visités) — fini le festival bleu/violet */
.content a, .article-body a,
.content a:visited, .article-body a:visited { color: var(--blue); }
.content a:hover, .article-body a:hover { color: var(--blue-dark); }
.article-body img { border-radius: var(--radius); margin: 1rem 0; }
/* Schémas/figures insérés en HTML brut (<p><img>…) : plafonnés et centrés
   pour ne plus s'étirer sur toute la largeur de la colonne. */
.article-body p > img { display: block; max-width: 560px; height: auto; margin: 1rem auto; }
.article-body table { border-collapse: collapse; margin: 1rem 0; max-width: 100%; }
.article-body td, .article-body th { border: 1px solid var(--line); padding: .4rem .6rem; }
/* Tableaux de mise en page Joomla (border=0) : pas de bordure ni cadre */
.article-body table[border="0"], .article-body table[border="0"] td, .article-body table[border="0"] th { border: none; }

/* Liste de section */
.article-index { list-style: none; margin: 1.5rem 0; padding: 0; }
.article-index li { border-bottom: 1px solid var(--line); }
.article-link { display: block; padding: .8rem .3rem; font-family: "Spectral", serif; font-size: 1.25rem; color: var(--blue-dark); text-decoration: none; }
.article-link:hover { color: var(--blue); background: var(--paper); }

/* Accueil : titre de bienvenue stylé + filet */
.home-title {
  font-family: "Spectral", Georgia, serif; font-weight: 600;
  font-size: clamp(1.8rem, 4.5vw, 2.6rem); line-height: 1.15;
  color: var(--blue-dark); margin: 0 0 .6rem;
}
.home-rule {
  border: 0; height: 3px; width: 90px; margin: 0 0 1.6rem;
  background: var(--blue); border-radius: 2px;
}

/* Carte d'accès clinique */
.clinic-map { margin: 2.6rem 0 0; padding-top: 1.6rem; border-top: 1px solid var(--line); }
.clinic-map h2 { font-family: "Spectral", serif; color: var(--blue-dark); font-size: 1.55rem; margin: 0 0 .5rem; }
.map-frame { position: relative; width: 100%; aspect-ratio: 16 / 7; border-radius: var(--radius); overflow: hidden; box-shadow: 0 6px 24px rgba(0,0,0,.1); margin: 1rem 0; }
.map-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.map-link a { color: var(--blue); font-weight: 500; }
@media (max-width: 600px) { .map-frame { aspect-ratio: 4 / 3; } }

/* Footer */
.site-footer { border-top: 1px solid var(--line); background: var(--paper); padding: 1.6rem 0; text-align: center; color: var(--muted); font-size: .9rem; }

/* Mobile */
@media (max-width: 860px) {
  .nav-burger { display: block; cursor: pointer; font-size: 1.6rem; color: var(--blue); user-select: none; }
  .site-nav { flex-basis: 100%; max-height: 0; overflow: hidden; transition: max-height .25s; }
  .nav-toggle:checked ~ .site-nav { max-height: 2000px; }
  .site-nav ul { flex-direction: column; align-items: stretch; gap: 0; padding: .4rem 0; }
  .site-nav li { border-top: 1px solid var(--line); }
  .site-nav a { display: block; padding: .7rem 0; }
  .site-nav .submenu { display: block; position: static; border: none; box-shadow: none; padding: 0 0 .4rem 1rem; min-width: 0; }
  .site-nav li.has-children:hover .submenu { display: block; }
}

/* Bibliografia — livres en vedette : texte puis couverture centrée dessous.
   Le HTML place l'<img> avant le texte → column-reverse remet le texte en haut. */
.book-featured {
  display: flex;
  flex-direction: column-reverse;
  align-items: center;
  gap: 1rem;
  margin: 1.4rem 0;
  padding: 1.2rem;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.book-featured .book-info { width: 100%; }
.book-featured .book-info p { margin: 0; }
.book-featured .book-cover {
  width: 180px;
  height: auto;
  border-radius: 6px;
  box-shadow: 0 4px 16px rgba(0,0,0,.18);
  margin: 0 auto;
}

/* --- Sélecteur de langue (IT/EN) --- */
.lang-switch { display: flex; gap: .5rem; align-items: center; margin-left: 1rem; font-size: .85rem; font-weight: 600; }
.lang-switch a { color: var(--muted, #6b7280); text-decoration: none; padding: .15rem .4rem; border-radius: 4px; }
.lang-switch a:hover { color: var(--accent, #1f5fa8); background: rgba(31,95,168,.08); }
.lang-switch .lang-current { color: var(--accent, #1f5fa8); padding: .15rem .4rem; border: 1px solid currentColor; border-radius: 4px; }

/* --- Grille de cartes (accueil) --- */
.home-section { font-family:"Spectral",Georgia,serif; color:var(--logo); font-weight:700; font-size:1.5rem; margin:2.6rem 0 1rem; }
.card-grid { display:grid; grid-template-columns:repeat(auto-fill,minmax(240px,1fr)); gap:1rem; }
.card { display:flex; flex-direction:column; gap:.4rem; padding:1.1rem 1.2rem; background:#fff;
  border:1px solid var(--line); border-left:4px solid var(--blue); border-radius:var(--radius);
  text-decoration:none; transition:transform .15s ease, box-shadow .15s ease, border-color .15s ease; }
.card:hover { transform:translateY(-3px); box-shadow:0 10px 26px rgba(0,64,98,.13); border-left-color:var(--logo); }
.card-title { font-family:"Spectral",Georgia,serif; font-weight:700; color:var(--logo); font-size:1.1rem; line-height:1.25; }
.card-desc { color:#5b6670; font-size:.92rem; line-height:1.5; }
.card--dead { border-left-color:#c2c2c2; opacity:.65; }
.card--dead:hover { transform:none; box-shadow:none; }
.card--info { border-left-color:var(--logo); cursor:default; }
.card--info:hover { transform:none; box-shadow:none; }
.card-body { color:#46505a; font-size:.95rem; line-height:1.65; }
.card-body a { color:var(--blue); }
.press-list { display:flex; flex-direction:column; margin:.3rem 0 1rem; border-top:1px solid var(--line); }
.press-item { display:flex; flex-wrap:wrap; gap:.2rem 1rem; align-items:baseline; padding:.6rem .4rem; border-bottom:1px solid var(--line); text-decoration:none; transition:background .12s; }
.press-item:hover { background:var(--paper,#f3f6f9); }
.press-item::before { content:"PDF"; flex:0 0 auto; align-self:center; font:700 .58rem/1 Arial,sans-serif; color:#fff; background:#d32f2f; padding:.2rem .28rem; border-radius:3px; margin-right:.55rem; letter-spacing:.3px; }
.press-src { color:var(--logo); font-weight:600; font-size:.92rem; white-space:nowrap; }
.press-title { color:var(--ink); font-size:.95rem; }
figure.portrait { float:right; max-width:230px; margin:.2rem 0 1rem 1.6rem; }
figure.portrait img { width:100%; border-radius:8px; box-shadow:0 8px 24px rgba(0,64,98,.18); display:block; }
figure.portrait figcaption { font-size:.82rem; color:#5b6670; font-style:italic; line-height:1.4; margin-top:.45rem; text-align:center; }
@media (max-width:620px){ figure.portrait { float:none; margin:0 auto 1.2rem; } }
figure.portrait--left { float:left; margin:.2rem 1.6rem 1rem 0; }

/* --- Citation en exergue (pull-quote) --- */
.pull-quote { border-left:4px solid var(--logo); background:#f3f6f9; padding:1rem 1.3rem; margin:1.4rem 0; border-radius:0 8px 8px 0; }
.pull-quote .quote-intro { font-weight:600; color:var(--logo); margin:0 0 .6rem; }
.pull-quote p { margin:0 0 .5rem; }
.pull-quote em { color:#3a4550; }
.pull-quote--right { border-left:none; border-right:4px solid var(--logo); border-radius:8px 0 0 8px; text-align:left; }

/* --- CTA Formazione (accueil) --- */
.cta-banner { text-align:center; margin:2.2rem 0 1rem; }
.content a.btn-cta, a.btn-cta { display:inline-block; padding:.95rem 2.2rem; background:var(--blue);
  color:#ffffff; font-weight:700; font-size:1.14rem; line-height:1.2; letter-spacing:.2px; border-radius:999px;
  text-decoration:none; box-shadow:0 6px 22px rgba(31,95,168,.4);
  transition:transform .15s ease, box-shadow .15s ease, background .15s ease; animation:ctaPulse 2.4s ease-in-out infinite; }
.content a.btn-cta:hover, a.btn-cta:hover { background:var(--blue-dark); color:#ffffff; border-bottom:none;
  transform:translateY(-2px); box-shadow:0 12px 34px rgba(31,95,168,.55); animation:none; }
@keyframes ctaPulse { 0%,100%{ box-shadow:0 6px 22px rgba(31,95,168,.35);} 50%{ box-shadow:0 8px 32px rgba(31,95,168,.7);} }

/* --- Tableau de résultats (pages applicazioni) --- */
.results-table { width:100%; border-collapse:collapse; margin:1.2rem 0 1.6rem; font-size:.97rem; }
.results-table th { text-align:left; background:var(--logo); color:#fff; padding:.55rem .8rem; font-family:"Spectral",serif; font-weight:600; }
.results-table th:last-child { text-align:right; white-space:nowrap; }
.results-table td { padding:.5rem .8rem; border-bottom:1px solid #e2e8ee; }
.results-table td:last-child { text-align:right; font-weight:600; color:var(--logo); white-space:nowrap; }
.results-table tbody tr:nth-child(even) { background:#f3f6f9; }
