/*!
 * Studio Legale Iorio - Print Stylesheet
 * @package StudioLegaleIorio
 * @version 1.0.0
 */

@page {
  margin: 1.5cm;
}

body {
  font-family: Garamond, Georgia, 'Times New Roman', serif;
  font-size: 11pt;
  line-height: 1.5;
  color: #000;
  background: #fff;
  padding: 0;
  margin: 0;
}

/* Nascondi elementi non stampabili */
.ps-site-header,
.ps-site-footer,
.ps-sticky-cta,
.ps-menu-toggle,
.ps-topbar,
.ps-topbar-social,
.wp-block-navigation,
.skip-link,
.ps-menu-toggle-bar,
button:not(.wp-block-button__link),
.no-print {
  display: none !important;
}

/* Titoli */
h1, h2, h3, h4, h5, h6 {
  color: #000;
  page-break-after: avoid;
  page-break-inside: avoid;
  font-family: Georgia, 'Times New Roman', serif;
}
h1 { font-size: 18pt; margin: 0 0 12pt; }
h2 { font-size: 15pt; margin: 18pt 0 10pt; }
h3 { font-size: 13pt; margin: 14pt 0 8pt; }

/* Paragrafi */
p { margin: 0 0 8pt; orphans: 3; widows: 3; }

/* Link: mostra URL */
a {
  color: #000;
  text-decoration: underline;
}
a[href^="http"]::after {
  content: " (" attr(href) ")";
  font-size: 0.85em;
  color: #555;
  word-break: break-all;
}
a[href^="tel"]::after,
a[href^="mailto"]::after,
a[href^="#"]::after { content: ""; }

/* Immagini */
img {
  max-width: 100% !important;
  height: auto;
  page-break-inside: avoid;
}

/* Tabelle */
table {
  width: 100%;
  border-collapse: collapse;
  page-break-inside: avoid;
}
th, td {
  border: 1px solid #ccc;
  padding: 6pt 8pt;
  text-align: left;
}

/* Liste */
ul, ol { padding-left: 1.5em; margin: 0 0 8pt; }
li { margin-bottom: 4pt; }

/* Forza visibilità su animazioni */
.ps-visible,
.ps-service-card,
.ps-problem-card,
.ps-howto-step,
.ps-why-item,
.ps-hero,
.ps-cta-section,
.ps-faq-item,
*[class*="ps-"] {
  opacity: 1 !important;
  transform: none !important;
  box-shadow: none !important;
  animation: none !important;
  transition: none !important;
}

/* Card: bordo invece di ombra */
.ps-service-card,
.ps-problem-card,
.ps-why-item {
  border: 1px solid #ccc;
  page-break-inside: avoid;
  padding: 10pt;
  margin-bottom: 10pt;
}

/* FAQ: mostra sempre le risposte */
details[open] > *:not(summary),
details > summary ~ * {
  display: block !important;
}
details > summary {
  font-weight: bold;
  cursor: default;
  list-style: none;
}
details > summary::-webkit-details-marker { display: none; }
details > summary::after { content: ""; }

/* Sticky CTA mai su carta */
.ps-sticky-cta { display: none !important; }

/* Footer disclaimer in stampa: mostralo se serve */
.ps-footer-disclaimer {
  display: block !important;
  border-top: 1px solid #000;
  padding-top: 10pt;
  margin-top: 20pt;
  font-size: 9pt;
}