/*
 * InfoCollepasso — Legal & Static Pages CSS
 * Usato su: Privacy Policy, Cookie Policy, Chi Siamo, Contatti
 */

/* =============================================
   BASE
   ============================================= */
.legal-page {
	font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
	color: #333;
	line-height: 1.6;
}

/* =============================================
   HERO
   ============================================= */
.legal-hero {
	background: #1c1c1c;
	color: #fff;
	padding: 3rem 2rem;
	border-bottom: 4px solid #c77800;
	margin-bottom: 0;
}

.legal-hero-inner {
	max-width: 860px;
	margin: 0 auto;
}

.legal-badge {
	display: inline-block;
	background: #c77800;
	color: #fff;
	font-size: 0.72rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 1px;
	padding: 0.3rem 0.8rem;
	border-radius: 3px;
	margin-bottom: 1rem;
}

.legal-hero h1 {
	font-size: 2.2rem;
	font-weight: 700;
	margin: 0 0 0.8rem;
	color: #fff !important;
}

.legal-hero p {
	font-size: 1rem;
	color: #aaa !important;
	line-height: 1.6;
	margin: 0 0 1rem;
}

.legal-meta {
	font-size: 0.85rem;
	color: #888;
}

.legal-meta strong {
	color: #c77800;
}

/* =============================================
   BODY
   ============================================= */
.legal-body {
	max-width: 860px;
	margin: 0 auto;
	padding: 2rem 1.5rem 4rem;
}

/* =============================================
   INDICE
   ============================================= */
.legal-toc {
	background: #f9f7f4;
	border: 1px solid #e4e0d8;
	border-left: 4px solid #c77800;
	border-radius: 4px;
	padding: 1.5rem;
	margin-bottom: 3rem;
}

.toc-title {
	font-weight: 700;
	font-size: 0.85rem;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	color: #888;
	margin-bottom: 0.8rem;
}

.legal-toc ol {
	margin: 0;
	padding-left: 1.2rem;
}

.legal-toc li {
	padding: 0.3rem 0;
	font-size: 0.9rem;
}

.legal-toc a {
	color: #c77800 !important;
	text-decoration: none;
}

.legal-toc a:hover {
	text-decoration: underline;
}

/* =============================================
   SEZIONI
   ============================================= */
.legal-page section {
	margin-bottom: 3rem;
	scroll-margin-top: 80px;
}

.legal-page section h2 {
	font-size: 1.4rem !important;
	font-weight: 700 !important;
	color: #111 !important;
	margin-bottom: 1.2rem !important;
	padding-bottom: 0.7rem;
	border-bottom: 2px solid #e4e0d8;
	display: flex;
	align-items: center;
	gap: 0.8rem;
}

.sec-num {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 28px;
	height: 28px;
	min-width: 28px;
	background: #c77800;
	color: #fff;
	border-radius: 50%;
	font-size: 0.85rem;
	font-weight: 700;
}

.legal-page section h3 {
	font-size: 1.05rem !important;
	font-weight: 600 !important;
	color: #222 !important;
	margin: 1.5rem 0 0.6rem !important;
}

.legal-page section p {
	font-size: 0.95rem;
	line-height: 1.75;
	margin-bottom: 1rem;
	color: #444;
}

.legal-page section ul,
.legal-page section ol {
	padding-left: 1.3rem;
	margin-bottom: 1rem;
}

.legal-page section li {
	font-size: 0.95rem;
	line-height: 1.7;
	color: #444;
	margin-bottom: 0.3rem;
}

.legal-page section a {
	color: #c77800 !important;
}

/* =============================================
   INFO BOX (dati titolare)
   ============================================= */
.info-box {
	background: #f9f7f4;
	border: 1px solid #e4e0d8;
	border-radius: 6px;
	padding: 1.2rem;
	margin: 1rem 0;
}

.info-row {
	display: flex;
	gap: 1rem;
	padding: 0.5rem 0;
	border-bottom: 1px solid #f0ece6;
	font-size: 0.9rem;
	align-items: flex-start;
}

.info-row:last-child {
	border-bottom: none;
}

.info-label {
	font-weight: 600;
	color: #888;
	min-width: 110px;
	font-size: 0.82rem;
	text-transform: uppercase;
	letter-spacing: 0.3px;
	padding-top: 1px;
}

/* =============================================
   CARD FINALITÀ
   ============================================= */
.purpose-card {
	display: flex;
	gap: 1rem;
	align-items: flex-start;
	background: #fff;
	border: 1px solid #e4e0d8;
	border-radius: 6px;
	padding: 1.2rem;
	margin-bottom: 1rem;
}

.purpose-icon {
	font-size: 1.4rem;
	flex-shrink: 0;
	width: 40px;
	height: 40px;
	background: #f9f7f4;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
}

.purpose-card h3 {
	font-size: 1rem !important;
	margin: 0 0 0.4rem !important;
}

.purpose-card p {
	font-size: 0.88rem !important;
	margin: 0 0 0.5rem !important;
	color: #555 !important;
}

.legal-basis {
	font-size: 0.78rem;
	background: #fdf9f4;
	border: 1px solid #f0dfc0;
	color: #a05900;
	padding: 0.25rem 0.6rem;
	border-radius: 3px;
	display: inline-block;
}

/* =============================================
   TABELLA
   ============================================= */
.legal-table {
	width: 100%;
	border-collapse: collapse;
	font-size: 0.88rem;
	margin: 1rem 0;
	overflow-x: auto;
	display: block;
}

.legal-table thead {
	display: table-header-group;
}

.legal-table tbody {
	display: table-row-group;
}

.legal-table th {
	background: #1c1c1c !important;
	color: #fff !important;
	padding: 0.7rem 1rem;
	text-align: left;
	font-weight: 600;
	font-size: 0.82rem;
}

.legal-table td {
	padding: 0.7rem 1rem;
	border-bottom: 1px solid #f0ece6;
	color: #444;
	vertical-align: middle;
}

.legal-table tr:last-child td {
	border-bottom: none;
}

.legal-table tr:nth-child(even) td {
	background: #fafaf8;
}

/* =============================================
   COOKIE CARDS
   ============================================= */
.cookie-group {
	margin-bottom: 2rem;
}

.cookie-group-header {
	display: flex;
	align-items: center;
	gap: 0.8rem;
	margin-bottom: 1rem;
}

.cookie-badge {
	display: inline-block;
	font-size: 0.78rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	padding: 0.3rem 0.8rem;
	border-radius: 3px;
}

.cookie-badge.tecnico {
	background: #e8f5e9;
	color: #2e7d32;
}

.cookie-badge.analitico {
	background: #fff3e0;
	color: #e65100;
}

.cookie-group-note {
	font-size: 0.82rem;
	color: #888;
}

.cookie-card {
	background: #fff;
	border: 1px solid #e4e0d8;
	border-radius: 6px;
	padding: 1.2rem;
	margin-bottom: 0.8rem;
}

.cookie-name {
	font-weight: 700;
	font-size: 0.95rem;
	color: #111;
	margin-bottom: 0.8rem;
	display: flex;
	align-items: center;
	gap: 0.6rem;
	flex-wrap: wrap;
}

.gtm-id {
	font-size: 0.75rem;
	background: #f0f4ff;
	color: #3949ab;
	padding: 0.2rem 0.5rem;
	border-radius: 3px;
	font-weight: 600;
}

.cookie-detail {
	font-size: 0.88rem;
	color: #555;
	margin-bottom: 0.4rem;
	line-height: 1.5;
}

.cookie-detail span {
	font-weight: 600;
	color: #333;
	margin-right: 0.3rem;
}

.cookie-links {
	margin-top: 0.8rem;
	display: flex;
	gap: 1rem;
	flex-wrap: wrap;
}

.cookie-links a {
	font-size: 0.82rem;
	color: #c77800 !important;
	text-decoration: none;
}

.cookie-links a:hover {
	text-decoration: underline;
}

/* Badge tabella cookie */
.badge-t {
	background: #e8f5e9;
	color: #2e7d32;
	font-size: 0.72rem;
	font-weight: 700;
	padding: 0.2rem 0.5rem;
	border-radius: 3px;
	white-space: nowrap;
}

.badge-a {
	background: #fff3e0;
	color: #e65100;
	font-size: 0.72rem;
	font-weight: 700;
	padding: 0.2rem 0.5rem;
	border-radius: 3px;
	white-space: nowrap;
}

/* =============================================
   GRIGLIA DIRITTI
   ============================================= */
.rights-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 1rem;
	margin: 1.5rem 0;
}

.right-item {
	background: #fff;
	border: 1px solid #e4e0d8;
	border-radius: 6px;
	padding: 1rem;
	border-top: 3px solid #c77800;
}

.right-item strong {
	display: block;
	font-size: 0.9rem;
	color: #111;
	margin-bottom: 0.4rem;
}

.right-item p {
	font-size: 0.82rem !important;
	color: #666 !important;
	margin: 0 !important;
	line-height: 1.5 !important;
}

/* =============================================
   BROWSER GRID
   ============================================= */
.browser-grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 0.8rem;
	margin: 1rem 0;
}

.browser-link {
	display: block;
	background: #f9f7f4;
	border: 1px solid #e4e0d8;
	border-radius: 4px;
	padding: 0.7rem 1rem;
	font-size: 0.88rem;
	color: #c77800 !important;
	text-decoration: none;
	transition: background 0.2s;
}

.browser-link:hover {
	background: #fdf9f4;
}

/* =============================================
   HIGHLIGHT BOX
   ============================================= */
.highlight-box {
	background: #fdf9f4;
	border: 1px solid #f0dfc0;
	border-left: 4px solid #c77800;
	border-radius: 0 4px 4px 0;
	padding: 1rem 1.2rem;
}

.highlight-box p {
	margin: 0 !important;
	font-size: 0.9rem !important;
	color: #555 !important;
}

/* =============================================
   CONTACT CTA
   ============================================= */
.contact-cta {
	background: #1c1c1c;
	color: #ccc;
	border-radius: 6px;
	padding: 1.5rem;
}

.contact-cta p {
	margin: 0 0 0.5rem !important;
	font-size: 0.9rem !important;
	color: #ccc !important;
}

.contact-cta p:last-child {
	margin: 0 !important;
}

.contact-cta a {
	color: #c77800 !important;
}

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 700px) {
	.legal-hero h1 { font-size: 1.6rem !important; }
	.legal-hero { padding: 2rem 1.2rem; }
	.rights-grid { grid-template-columns: 1fr 1fr; }
	.browser-grid { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
	.rights-grid { grid-template-columns: 1fr; }
	.info-row { flex-direction: column; gap: 0.2rem; }
	.info-label { min-width: auto; }
}

/* =============================================
   CHI SIAMO — Stili specifici
   ============================================= */

/* === CHI SIAMO — stili aggiuntivi (non in legal-pages.css) === */

.cs-hero .legal-hero-inner p { font-size: 1.1rem; }

.cs-stats {
  display: flex;
  gap: 2rem;
  margin-top: 2rem;
  flex-wrap: wrap;
}

.cs-stat {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.cs-stat strong {
  font-size: 1.6rem;
  font-weight: 700;
  color: #c77800;
  line-height: 1;
}

.cs-stat span {
  font-size: 0.82rem;
  color: #888;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.cs-intro {
  border-left: 4px solid #c77800;
  padding: 1.5rem 2rem;
  background: #fdf9f4;
  border-radius: 0 6px 6px 0;
  margin-bottom: 1rem;
}

.cs-lead {
  font-size: 1.1rem !important;
  line-height: 1.7 !important;
  color: #333 !important;
  font-weight: 500;
}

.cs-profile {
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
  background: #fff;
  border: 1px solid #e4e0d8;
  border-radius: 8px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}

.cs-avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: #c77800;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  font-weight: 700;
  flex-shrink: 0;
}

.cs-profile-info h3 {
  font-size: 1.3rem !important;
  font-weight: 700 !important;
  color: #111 !important;
  margin: 0 0 0.6rem !important;
}

.cs-tags {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
  margin-bottom: 0.8rem;
}

.cs-tag {
  background: #f9f7f4;
  border: 1px solid #e4e0d8;
  color: #555;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.2rem 0.6rem;
  border-radius: 3px;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.cs-quote {
  border-left: 4px solid #c77800;
  margin: 2rem 0;
  padding: 1rem 1.5rem;
  background: #1c1c1c;
  border-radius: 0 6px 6px 0;
}

.cs-quote p, .cs-quote {
  font-style: italic;
  font-size: 1.2rem !important;
  color: #f0f0f0 !important;
  line-height: 1.5;
  margin: 0 !important;
}

.cs-quote cite {
  display: block;
  font-size: 0.85rem;
  color: #c77800;
  font-style: normal;
  margin-top: 0.6rem;
  font-weight: 600;
}

.cs-episodes {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 1.5rem;
}

.cs-episode {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  background: #fff;
  border: 1px solid #e4e0d8;
  border-radius: 6px;
  padding: 1.2rem;
}

.cs-ep-icon {
  font-size: 1.4rem;
  width: 44px;
  height: 44px;
  background: #f9f7f4;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.cs-episode h4 {
  font-size: 1rem;
  font-weight: 700;
  color: #111;
  margin: 0 0 0.5rem;
}

.cs-episode p {
  font-size: 0.9rem !important;
  color: #555 !important;
  margin: 0 !important;
  line-height: 1.6 !important;
}

.cs-books {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.cs-book {
  background: #fff;
  border: 1px solid #e4e0d8;
  border-radius: 6px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.cs-book-spine {
  height: 6px;
  background: #c77800;
}

.cs-book-info {
  padding: 1.2rem;
}

.cs-book-info h4 {
  font-size: 1rem;
  font-weight: 700;
  color: #111;
  margin: 0 0 0.3rem;
}

.cs-book-sub {
  font-size: 0.8rem !important;
  color: #888 !important;
  font-style: italic;
  margin: 0 0 0.8rem !important;
}

.cs-book-info p:last-child {
  font-size: 0.88rem !important;
  color: #555 !important;
  margin: 0 !important;
  line-height: 1.6 !important;
}

.cs-coverage-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 1.5rem;
}

.cs-cov-item {
  background: #fff;
  border: 1px solid #e4e0d8;
  border-radius: 6px;
  padding: 1.2rem;
  border-top: 3px solid #c77800;
}

.cs-cov-icon {
  font-size: 1.4rem;
  margin-bottom: 0.6rem;
}

.cs-cov-item h4 {
  font-size: 0.95rem;
  font-weight: 700;
  color: #111;
  margin: 0 0 0.4rem;
}

.cs-cov-item p {
  font-size: 0.83rem !important;
  color: #666 !important;
  margin: 0 !important;
  line-height: 1.5 !important;
}

@media (max-width: 700px) {
  .cs-books { grid-template-columns: 1fr; }
  .cs-coverage-grid { grid-template-columns: 1fr 1fr; }
  .cs-profile { flex-direction: column; }
  .cs-stats { gap: 1.2rem; }
}

@media (max-width: 480px) {
  .cs-coverage-grid { grid-template-columns: 1fr; }
}
/* =============================================
   NASCONDI TITOLO ASTRA DEFAULT
   Si applica su tutte le pagine con .legal-page
   ============================================= */
.legal-page .entry-title,
.legal-page .page-title,
.legal-page .ast-archive-title,
.page-template-page-contatti .entry-title,
.page-template-page-contatti .page-title {
	display: none !important;
}

/* Rimuovi anche la banda bianca vuota sopra */
.legal-page .ast-container > .site-content,
.ast-page-builder-template .entry-header {
	padding-top: 0 !important;
	margin-top: 0 !important;
}

.legal-page .entry-header {
	display: none !important;
}
/* =============================================
   CHI SIAMO — HERO CON FOTO
   ============================================= */
.cs-hero-inner {
	display: flex;
	align-items: center;
	gap: 3rem;
}

.cs-hero-text {
	flex: 1;
}

.cs-hero-photo {
	flex-shrink: 0;
	text-align: center;
}

.cs-hero-photo img {
	width: 180px;
	height: 180px;
	border-radius: 50%;
	object-fit: cover;
	object-position: top center;
	border: 4px solid #c77800;
	display: block;
	margin: 0 auto;
}

.cs-hero-photo-caption {
	margin-top: 0.8rem;
	font-size: 0.88rem;
	font-weight: 700;
	color: #fff;
}

.cs-hero-photo-caption span {
	display: block;
	font-size: 0.75rem;
	color: #888;
	font-weight: 400;
	margin-top: 0.2rem;
}

@media (max-width: 700px) {
	.cs-hero-inner {
		flex-direction: column-reverse;
		gap: 1.5rem;
	}

	.cs-hero-photo img {
		width: 120px;
		height: 120px;
	}
}
/* =============================================
   CS-BOOK FEATURED — Storia di Collepasso
   ============================================= */
.cs-book-featured {
	border: 1px solid #1c1c1c;
}

.cs-book-featured .cs-book-info {
	position: relative;
}

.cs-book-badge {
	display: inline-block;
	background: #c77800;
	color: #fff;
	font-size: 0.72rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	padding: 0.25rem 0.7rem;
	border-radius: 3px;
	margin-bottom: 0.6rem;
}

.cs-book-link {
	display: inline-block;
	margin-top: 1rem;
	color: #c77800 !important;
	font-weight: 600;
	font-size: 0.9rem;
	text-decoration: none;
	border-bottom: 1px solid #c77800;
	padding-bottom: 1px;
	transition: opacity 0.2s;
}

.cs-book-link:hover {
	opacity: 0.75;
}
