/*
Theme Name: ASII — Associazione Ingegneri Ischia
Theme URI: https://ing.assingischia.it/
Author: Studio Bunz
Author URI: https://assingischia.it/
Description: Tema custom per l'Associazione Ingegneri Ischia. Design editoriale-istituzionale con Tailwind CSS, Inter + JetBrains Mono. Layout responsive, dark mode compatibile, Gutenberg-friendly.
Version: 1.0.0
Requires at least: 6.5
Tested up to: 6.9
Requires PHP: 8.1
License: Proprietary
Text Domain: asii
Tags: blog, news, custom-colors, custom-menu, threaded-comments, translation-ready
*/

/* Theme: ASII (style.css intenzionalmente sintetico — il grosso dello stile viene da Tailwind via CDN, vedi functions.php) */

:root {
  --asii-emerald-50:  #ecfdf5;
  --asii-emerald-600: #059669;
  --asii-emerald-700: #047857;
  --asii-emerald-800: #065f46;
  --asii-amber-500:   #f59e0b;
  --asii-stone-50:    #fafaf9;
  --asii-stone-100:   #f5f5f4;
  --asii-stone-200:   #e7e5e4;
  --asii-stone-700:   #44403c;
  --asii-stone-900:   #1c1917;
}

body { font-family: 'Inter', system-ui, -apple-system, "Segoe UI", sans-serif; }
.font-mono, code, pre, kbd { font-family: 'JetBrains Mono', ui-monospace, monospace; }
h1, h2, h3, h4, h5, h6 { letter-spacing: -0.02em; }

/* Tipografia editoriale per contenuti articolo */
.asii-prose {
  color: var(--asii-stone-700);
  font-size: 1.05rem;
  line-height: 1.75;
}
.asii-prose h2 {
  font-size: 1.75rem;
  font-weight: 700;
  margin: 2.5rem 0 1rem;
  color: var(--asii-stone-900);
}
.asii-prose h3 {
  font-size: 1.35rem;
  font-weight: 700;
  margin: 2rem 0 .75rem;
  color: var(--asii-stone-900);
}
.asii-prose p { margin: 0 0 1.25rem; }
.asii-prose a {
  color: var(--asii-emerald-700);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
.asii-prose a:hover { text-decoration-thickness: 2px; }
.asii-prose ul, .asii-prose ol { margin: 0 0 1.25rem 1.5rem; }
.asii-prose ul { list-style: disc; }
.asii-prose ol { list-style: decimal; }
.asii-prose li { margin: .25rem 0; }
.asii-prose blockquote {
  border-left: 4px solid var(--asii-emerald-600);
  padding: .5rem 0 .5rem 1.25rem;
  font-style: italic;
  color: var(--asii-stone-900);
  margin: 1.5rem 0;
}
.asii-prose img, .asii-prose figure { margin: 1.5rem 0; max-width: 100%; height: auto; }
.asii-prose figcaption {
  font-size: .85rem;
  color: #78716c;
  text-align: center;
  margin-top: .5rem;
}
.asii-prose code {
  background: var(--asii-stone-100);
  padding: 1px 6px;
  border-radius: 4px;
  font-size: .9em;
}

/* WP core compat */
.alignleft  { float: left;  margin: .5rem 1.5rem 1rem 0; }
.alignright { float: right; margin: .5rem 0 1rem 1.5rem; }
.aligncenter { display: block; margin: 1rem auto; }
.alignwide  { max-width: 100%; }
.alignfull  { max-width: 100vw; margin-left: calc(50% - 50vw); margin-right: calc(50% - 50vw); }
.screen-reader-text {
  position: absolute !important;
  clip: rect(1px,1px,1px,1px);
  width: 1px; height: 1px; overflow: hidden;
}

/* Skip link */
.skip-link {
  position: absolute; left: -999em; top: 1rem;
  background: var(--asii-stone-900); color: #fff;
  padding: .5rem 1rem; z-index: 100;
}
.skip-link:focus { left: 1rem; }

/* Admin bar offset */
.admin-bar header.asii-header { top: 32px; }
@media (max-width: 782px) {
  .admin-bar header.asii-header { top: 46px; }
}

/* Animation utility */
@keyframes asii-fade-in-up {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}
.asii-reveal { animation: asii-fade-in-up .6s cubic-bezier(.2,.8,.2,1) both; }
