@import url("https://fonts.googleapis.com/css2?family=Newsreader:ital,opsz,wght@0,6..72,400..700;1,6..72,400..600&family=Titillium+Web:wght@400;600;700&display=swap");


/* ==========================================================================
   1. Tokens
   ========================================================================== */

:root {
  --lg-paper: #ffffff;
  --lg-sky: #e8eff4;              /* light tint of the blue, for hovers */
  --lg-line: #dde2e7;
  --lg-field: #8f99a3;            /* form borders, 3:1 against white */

  --lg-ink: #1b1f23;
  --lg-ink-story: #2b3036;
  --lg-ink-soft: #565e67;

  --lg-adriatic: #1d4f70;         /* the site's own blue */
  --lg-adriatic-deep: #143a53;
  --lg-footer-text: #d9e3eb;

  --lg-font-news: "Newsreader", "Iowan Old Style", Georgia, "Times New Roman", serif;
  --lg-font-ui: "Titillium Web", "Segoe UI", "Helvetica Neue", Arial, sans-serif;

  --lg-container: 1240px;
  --lg-gutter: clamp(16px, 3vw, 28px);
  --lg-sidebar-narrow: 180px;     /* holds the 170px modules */
  --lg-sidebar-wide: 330px;       /* holds the 321px banners and widgets */
  --lg-radius: 3px;
}


/* ==========================================================================
   2. Base
   Every page also carries an inline "* { margin:0; padding:0 }", so the
   spacing that matters is set again here.
   ========================================================================== */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--lg-font-ui);
  font-size: 1rem;
  line-height: 1.55;
  color: var(--lg-ink);
  background-color: var(--lg-paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img {
  max-width: 100%;
  height: auto;
  border: 0;
  vertical-align: middle;
}

a {
  color: var(--lg-adriatic);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

p {
  margin: 0 0 0.9em;
}

p:last-child {
  margin-bottom: 0;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

h1, h2, h3, h4 {
  margin: 0 0 0.4em;
  font-family: var(--lg-font-news);
  font-optical-sizing: auto;
  font-weight: 600;
  line-height: 1.2;
  color: var(--lg-ink);
}

input,
button,
select,
textarea {
  font: inherit;
}

::selection {
  color: #ffffff;
  background: var(--lg-adriatic);
}


/* ==========================================================================
   3. Template leftovers and dead embeds
   ========================================================================== */

/* Artisteer corner and edge pieces, empty spacers */
.art-sheet-cc,
.art-block-tl, .art-block-tr, .art-block-bl, .art-block-br,
.art-block-tc, .art-block-bc, .art-block-cl, .art-block-cr, .art-block-cc,
.art-footer-background,
.art-nav .l,
.art-nav .r,
.art-button-wrapper > .l,
.art-button-wrapper > .r,
.article_separator,
.art-page-footer,
.art-postheadericons img,
#adv-link:empty {
  display: none !important;
}

.cleared,
.clr,
.gn_clear {
  display: block;
  clear: both;
  height: 0;
  overflow: hidden;
}

/* Flash banners: no current browser can play them */
object[classid],
embed[type="application/x-shockwave-flash"] {
  display: none !important;
}

/* Sidebar boxes that can only ever be empty: Flash, the old AdSense code,
   the retired Facebook like box, and banner groups with nothing in them */
.art-block:has(embed[type="application/x-shockwave-flash"]),
.art-block:has(object[classid]),
.art-block:has(script[src*="googlesyndication"]),
.art-block:has(iframe[src*="facebook.com/plugins"]),
.art-block:has(.bannergroup:empty) {
  display: none;
}


/* ==========================================================================
   4. Page frame
   ========================================================================== */

.art-sheet {
  max-width: var(--lg-container);
  margin-inline: auto;
  padding-inline: var(--lg-gutter);
}

/* Full-width colour bands from inside the centred sheet */
.art-nav,
.art-footer {
  box-shadow: 0 0 0 100vmax var(--lg-band);
  clip-path: inset(0 -100vmax);
}


/* ==========================================================================
   5. Masthead and section menu
   ========================================================================== */

.art-header {
  padding: 1.25rem 0 1rem;
  text-align: center;
}

#testata .moduletable p {
  margin: 0;
}

#testata img {
  display: block;
  width: min(990px, 100%);
  height: auto;
  margin-inline: auto;
}

.art-nav {
  --lg-band: var(--lg-adriatic);
  margin-bottom: 1.25rem;
  background-color: var(--lg-adriatic);
}

.art-menu {
  display: flex;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.art-menu::-webkit-scrollbar {
  display: none;
}

.art-menu > li {
  flex: none;
}

.art-menu > li > a {
  position: relative;
  display: block;
  padding: 0.8rem 1.1rem;
  font-family: var(--lg-font-ui);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: #ffffff;
  text-decoration: none;
}

.art-menu > li > a:hover,
.art-menu > li > a:focus-visible {
  background-color: var(--lg-adriatic-deep);
  text-decoration: none;
}

/* The section you are in */
.art-menu > li.active > a::after,
.art-menu > li#current > a::after {
  content: "";
  position: absolute;
  left: 1.1rem;
  right: 1.1rem;
  bottom: 0;
  height: 3px;
  background-color: #ffffff;
}

.art-menu > li:first-child > a {
  padding-left: 0;
}

.art-menu > li:first-child.active > a::after,
.art-menu > li:first-child#current > a::after {
  left: 0;
}


/* ==========================================================================
   6. Banner sliders
   Each slider keeps the height it was given, so the rotating banners still
   work if the old script runs, and only the first banner shows if it doesn't.
   ========================================================================== */

.art-nostyle {
  display: flex;
  justify-content: center;
  margin-bottom: 1.75rem;
}

.mod_bannerslider {
  position: relative;
  max-width: 100% !important;
  margin-inline: auto;
  overflow: hidden;
}

.mod_bannerslider img,
.banneritem img {
  display: block;
  margin-inline: auto;
}

/* The site's three slider sizes scale in proportion on narrow screens, so
   exactly one banner fills the frame at any width */
.mod_bannerslider[style*="width:990px;height:60px"] {
  height: auto !important;
  aspect-ratio: 990 / 60;
}

.mod_bannerslider[style*="width:321px;height:321px"] {
  height: auto !important;
  aspect-ratio: 1;
}

.mod_bannerslider[style*="width:170px;height:150px"] {
  height: auto !important;
  aspect-ratio: 170 / 150;
}

.mod_bannerslider[style*="width:990px;height:60px"] img {
  width: 100%;
}


/* ==========================================================================
   7. Three-column layout
   Stories, then a narrow and a wide sidebar. Below 1100px the sidebars sit
   side by side under the stories; on phones everything is one column.
   ========================================================================== */

.art-content-layout-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) var(--lg-sidebar-narrow) var(--lg-sidebar-wide);
  gap: 2rem;
  align-items: start;
}

.art-layout-cell {
  min-width: 0;
}

@media (max-width: 1099px) {
  .art-content-layout-row {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 2rem 1.75rem;
  }

  .art-content {
    grid-column: 1 / -1;
  }
}

@media (max-width: 640px) {
  .art-content-layout-row {
    grid-template-columns: minmax(0, 1fr);
  }
}


/* ==========================================================================
   8. Story list
   ========================================================================== */

/* The front page wraps stories in layout tables; let them flow as blocks */
table.blog,
table.blog :is(tbody, tr, td, table) {
  display: block;
  width: auto !important;
}

.art-post {
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--lg-line);
}

.art-postheader {
  margin: 0 0 0.35rem;
  font-size: clamp(1.25rem, 1.1rem + 0.5vw, 1.4rem);
  font-weight: 600;
  line-height: 1.22;
  text-wrap: balance;
}

.art-postheader a {
  color: var(--lg-ink);
}

.art-postheader a:hover {
  color: var(--lg-adriatic);
}

.art-postmetadataheader {
  margin-bottom: 0.55rem;
  font-family: var(--lg-font-ui);
  font-size: 0.8125rem;
  font-variant-numeric: tabular-nums;
  color: var(--lg-ink-soft);
}

.art-article {
  font-family: var(--lg-font-news);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--lg-ink-story);
}

/* Text pasted with "Arial, 11.1px" baked in reads like the rest */
.art-article [style*="font-family"],
.art-article [style*="font-size"] {
  font-family: inherit !important;
  font-size: inherit !important;
}

.art-article strong {
  font-weight: 600;
}

.jcomments-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1rem;
  margin-top: 0.7rem;
  font-family: var(--lg-font-ui);
  font-size: 0.875rem;
}

.jcomments-links .readmore-link {
  font-weight: 600;
}

.jcomments-links .comments-link {
  color: var(--lg-ink-soft);
}

/* The lead story at the top of a section front */
table.blog > tbody > tr:first-child .art-post {
  padding-top: 0.25rem;
  padding-bottom: 1.5rem;
}

table.blog > tbody > tr:first-child .art-postheader {
  font-size: clamp(1.75rem, 1.2rem + 2.1vw, 2.5rem);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.005em;
}

table.blog > tbody > tr:first-child .art-article {
  font-size: 1.1875rem;
}

/* "Altri articoli..." */
.art-postcontent > div > strong:only-child {
  display: block;
  margin-bottom: 0.5rem;
  font-family: var(--lg-font-ui);
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--lg-adriatic);
}

.art-postcontent > ul > li {
  padding: 0.55rem 0;
  border-top: 1px solid var(--lg-line);
}

.art-postcontent > ul > li:first-child {
  border-top: 0;
  padding-top: 0;
}

a.blogsection {
  font-family: var(--lg-font-news);
  font-size: 1.0625rem;
  line-height: 1.35;
  color: var(--lg-ink);
}

a.blogsection:hover {
  color: var(--lg-adriatic);
}

/* Page numbers. The "<<" "<" ">" characters between them are hidden. */
#navigation {
  font-family: var(--lg-font-ui);
}

#navigation p:first-child {
  margin-bottom: 0.6rem;
  font-size: 0;
  line-height: 0;
}

#navigation .pagenav {
  display: inline-block;
  min-width: 2.25rem;
  margin: 0 0.35rem 0.35rem 0;
  padding: 0.35rem 0.65rem;
  font-size: 0.9375rem;
  line-height: 1.4;
  text-align: center;
  border-radius: var(--lg-radius);
}

#navigation a.pagenav {
  color: var(--lg-adriatic);
  border: 1px solid var(--lg-line);
}

#navigation a.pagenav:hover {
  background-color: var(--lg-sky);
  border-color: var(--lg-sky);
  text-decoration: none;
}

#navigation span.pagenav {
  font-weight: 700;
  color: var(--lg-ink-soft);
  border: 1px solid transparent;
}

#navigation p + p {
  font-size: 0.8125rem;
  color: var(--lg-ink-soft);
}


/* ==========================================================================
   9. Sidebar boxes
   ========================================================================== */

.art-block {
  margin-bottom: 1.75rem;
}

.art-blockheader,
.art-blockcontent .dropdown dd:first-of-type > div {
  margin-bottom: 0.75rem;
  padding-top: 0.45rem;
  border-top: 3px solid var(--lg-adriatic);
}

.art-blockheader .t,
.art-blockcontent .dropdown dd:first-of-type > div {
  font-family: var(--lg-font-ui);
  font-size: 0.9375rem;
  font-weight: 700 !important;
  letter-spacing: 0.01em;
  text-align: left !important;
  color: var(--lg-adriatic);
}

.art-blockcontent {
  font-size: 0.9375rem;
  line-height: 1.5;
}

.art-blockcontent p {
  margin-bottom: 0.6rem;
}

.art-blockcontent iframe {
  display: block;
  max-width: 100%;
  margin-inline: auto;
}

.art-blockcontent table {
  width: 100%;
  border-collapse: collapse;
}

.art-blockcontent td {
  padding: 0.25rem;
}

/* "Cultura Pescara" scroller shown as a plain list of the first five */
.lof-articlessroller,
.lof-main-wapper,
.lof-row {
  width: auto !important;
  height: auto !important;
  overflow: visible !important;
}

.lof-container,
.lof-main-wapper,
.lof-main-item {
  position: static !important;
  top: auto !important;
  left: auto !important;
  float: none !important;
  width: auto !important;
  margin: 0 !important;
  opacity: 1 !important;
  visibility: visible !important;
  transform: none !important;
}

.lof-previous,
.lof-next,
.lof-image-link,
.lof-main-item:nth-child(n+6) {
  display: none !important;
}

.lof-main-item {
  padding: 0.6rem 0 !important;
  font-size: 0.875rem;
  line-height: 1.45;
  color: var(--lg-ink-soft);
  border-top: 1px solid var(--lg-line);
}

.lof-main-item:first-of-type {
  padding-top: 0 !important;
  border-top: 0;
}

.lof-title {
  display: block;
  margin-bottom: 0.2rem;
  font-family: var(--lg-font-news);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.25;
  color: var(--lg-ink);
}

/* "Appuntamenti" box */
.globalnews {
  margin: 0 !important;
}

.globalnews .gn_static_1 {
  height: auto;
  padding: 0;
  overflow: visible;
  font-size: 0.875rem;
  color: var(--lg-ink-soft);
  background: none;
  border: 0;
}

.globalnews .gn_static_1 > a:first-child {
  display: inline-block;
  margin-bottom: 0.15rem;
  font-family: var(--lg-font-news);
  font-size: 1.0625rem;
  font-weight: 600;
  line-height: 1.3;
  color: var(--lg-ink);
}

/* Article archive: shown open, since its trigger is empty */
.art-blockcontent .dropdown dt {
  display: none;
}

.art-blockcontent .dropdown dd {
  position: static !important;
  display: block !important;
  height: auto !important;
  overflow: visible !important;
  opacity: 1 !important;
}

.art-blockcontent .dropdown ul {
  width: auto;
  background: none;
  border: 0;
}

.art-blockcontent .dropdown li a {
  display: block;
  padding: 0.3rem 0;
  font-size: 0.9375rem;
}

/* RSS headline lists */
.srfrList li > span {
  display: none;
}

.srfrList li {
  padding: 0.55rem 0;
  font-family: var(--lg-font-news);
  font-size: 0.9375rem;
  line-height: 1.35;
  color: var(--lg-ink);
  border-top: 1px solid var(--lg-line);
}

.srfrList li:first-child {
  padding-top: 0;
  border-top: 0;
}

.srfrFeedDetails {
  margin-top: 0.2rem;
  font-family: var(--lg-font-ui);
  font-size: 0.75rem;
  color: var(--lg-ink-soft);
}

.srfrFeedSource {
  padding: 0 !important;
  background: none !important;
}


/* ==========================================================================
   10. Forms and buttons (newsletter, login, search, comments)
   ========================================================================== */

input[type="text"],
input[type="email"],
input[type="password"],
input[type="search"],
textarea,
select {
  width: 100%;
  max-width: 100%;
  margin: 0.2rem 0 0.5rem;
  padding: 0.55rem 0.7rem;
  font-family: var(--lg-font-ui);
  font-size: 0.9375rem;
  color: var(--lg-ink);
  background-color: var(--lg-paper);
  border: 1px solid var(--lg-field);
  border-radius: var(--lg-radius);
}

textarea {
  min-height: 7rem;
  resize: vertical;
}

input:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: var(--lg-adriatic);
  box-shadow: 0 0 0 3px rgba(29, 79, 112, 0.2);
}

input[type="checkbox"],
input[type="radio"] {
  margin: 0 0.4rem 0 0;
  vertical-align: middle;
  accent-color: var(--lg-adriatic);
}

.art-button,
input.button,
button[type="submit"],
input[type="submit"] {
  display: inline-block;
  margin-top: 0.35rem;
  padding: 0.55rem 1.15rem;
  font-family: var(--lg-font-ui);
  font-size: 0.9375rem;
  font-weight: 600;
  color: #ffffff;
  background-color: var(--lg-adriatic);
  border: 0;
  border-radius: var(--lg-radius);
  cursor: pointer;
  transition: background-color 0.15s ease;
}

.art-button:hover,
input.button:hover,
button[type="submit"]:hover,
input[type="submit"]:hover {
  background-color: var(--lg-adriatic-deep);
}

#form-login fieldset {
  margin: 0;
  padding: 0;
  border: 0;
}

#form-login p {
  margin-bottom: 0.35rem;
}

#form-login label {
  font-size: 0.875rem;
  color: var(--lg-ink-soft);
}

#form-login-remember {
  display: flex;
  flex-direction: row-reverse;
  justify-content: flex-end;
  align-items: center;
}

#form-login ul {
  margin-top: 0.8rem;
}

#form-login li a {
  display: inline-block;
  padding: 0.15rem 0;
  font-size: 0.875rem;
}


/* ==========================================================================
   11. Footer
   ========================================================================== */

.art-footer {
  --lg-band: var(--lg-adriatic-deep);
  margin-top: 2.5rem;
  padding: 1.75rem 0;
  color: var(--lg-footer-text);
  background-color: var(--lg-adriatic-deep);
}

.art-footer-inner {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  font-size: 0.875rem;
  line-height: 1.6;
}

.art-rss-tag-icon img {
  display: block;
  width: 24px;
  height: 24px;
}

.art-footer a {
  color: #ffffff;
}


/* ==========================================================================
   12. Focus and motion
   ========================================================================== */

:focus-visible {
  outline: 2px solid var(--lg-adriatic);
  outline-offset: 2px;
}

.art-nav :focus-visible,
.art-footer :focus-visible {
  outline-color: #ffffff;
  outline-offset: -2px;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}